-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add back in integration tests, remove debug param
- Loading branch information
1 parent
8f1e676
commit c5824d1
Showing
1 changed file
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,6 +124,39 @@ jobs: | |
# run integration test suite | ||
#---------------------------------------------- | ||
|
||
- name: Run integration tests | ||
if: ${{ contains(fromJSON('["3.10"]'), matrix.python-version) }} | ||
env: | ||
SYNAPSE_ACCESS_TOKEN: ${{ secrets.SYNAPSE_ACCESS_TOKEN }} | ||
SERVICE_ACCOUNT_CREDS: ${{ secrets.SERVICE_ACCOUNT_CREDS }} | ||
OTEL_EXPORTER_OTLP_HEADERS: "signoz-ingestion-key=${{ secrets.TELEMETRY_API_TOKEN }}" | ||
DEPLOYMENT_ENVIRONMENT: ${{ vars.DEPLOYMENT_ENVIRONMENT }} | ||
OTEL_EXPORTER_OTLP_ENDPOINT: ${{ vars.OTEL_EXPORTER_OTLP_ENDPOINT }} | ||
TRACING_EXPORT_FORMAT: ${{ vars.TRACING_EXPORT_FORMAT }} | ||
LOGGING_EXPORT_FORMAT: ${{ vars.LOGGING_EXPORT_FORMAT }} | ||
TRACING_SERVICE_NAME: ${{ vars.TRACING_SERVICE_NAME }} | ||
LOGGING_SERVICE_NAME: ${{ vars.LOGGING_SERVICE_NAME }} | ||
SERVICE_INSTANCE_ID: ${{ github.head_ref || github.ref_name }} | ||
run: > | ||
poetry run pytest --durations=0 --cov-append --cov-report=term --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov=schematic/ | ||
-m "not (rule_benchmark or single_process_execution)" --reruns 4 -n 8 --ignore=tests/unit | ||
- name: Run integration tests single process | ||
if: ${{ contains(fromJSON('["3.10"]'), matrix.python-version) }} | ||
env: | ||
SYNAPSE_ACCESS_TOKEN: ${{ secrets.SYNAPSE_ACCESS_TOKEN }} | ||
SERVICE_ACCOUNT_CREDS: ${{ secrets.SERVICE_ACCOUNT_CREDS }} | ||
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=Bearer ${{ steps.retrieve-telemetry-access-token.outputs.TELEMETRY_ACCESS_TOKEN }}" | ||
DEPLOYMENT_ENVIRONMENT: ${{ vars.DEPLOYMENT_ENVIRONMENT }} | ||
OTEL_EXPORTER_OTLP_ENDPOINT: ${{ vars.OTEL_EXPORTER_OTLP_ENDPOINT }} | ||
TRACING_EXPORT_FORMAT: ${{ vars.TRACING_EXPORT_FORMAT }} | ||
LOGGING_EXPORT_FORMAT: ${{ vars.LOGGING_EXPORT_FORMAT }} | ||
TRACING_SERVICE_NAME: ${{ vars.TRACING_SERVICE_NAME }} | ||
LOGGING_SERVICE_NAME: ${{ vars.LOGGING_SERVICE_NAME }} | ||
run: > | ||
poetry run pytest --durations=0 --cov-append --cov-report=term --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov=schematic/ | ||
-m "single_process_execution" --reruns 4 --ignore=tests/unit | ||
- name: Upload pytest test results | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -169,6 +202,5 @@ jobs: | |
uses: SonarSource/[email protected] | ||
if: ${{ always() }} | ||
env: | ||
RUNNER_DEBUG: 1 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |