Skip to content

Fixed codecov failed tests setup #3303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test-integrations-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
test-ai-pinned:
name: AI (pinned)
timeout-minutes: 30
Expand Down Expand Up @@ -140,6 +141,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
check_required_tests:
name: All AI tests passed
needs: test-ai-pinned
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-integrations-aws-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
check_required_tests:
name: All AWS Lambda tests passed
needs: test-aws_lambda-pinned
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-integrations-cloud-computing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
test-cloud_computing-pinned:
name: Cloud Computing (pinned)
timeout-minutes: 30
Expand Down Expand Up @@ -132,6 +133,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
check_required_tests:
name: All Cloud Computing tests passed
needs: test-cloud_computing-pinned
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-integrations-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
check_required_tests:
name: All Common tests passed
needs: test-common-pinned
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-integrations-data-processing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
test-data_processing-pinned:
name: Data Processing (pinned)
timeout-minutes: 30
Expand Down Expand Up @@ -152,6 +153,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
check_required_tests:
name: All Data Processing tests passed
needs: test-data_processing-pinned
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-integrations-databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
test-databases-pinned:
name: Databases (pinned)
timeout-minutes: 30
Expand Down Expand Up @@ -186,6 +187,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
check_required_tests:
name: All Databases tests passed
needs: test-databases-pinned
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-integrations-graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
test-graphql-pinned:
name: GraphQL (pinned)
timeout-minutes: 30
Expand Down Expand Up @@ -132,6 +133,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
check_required_tests:
name: All GraphQL tests passed
needs: test-graphql-pinned
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-integrations-miscellaneous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
test-miscellaneous-pinned:
name: Miscellaneous (pinned)
timeout-minutes: 30
Expand Down Expand Up @@ -140,6 +141,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
check_required_tests:
name: All Miscellaneous tests passed
needs: test-miscellaneous-pinned
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-integrations-networking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
test-networking-pinned:
name: Networking (pinned)
timeout-minutes: 30
Expand Down Expand Up @@ -132,6 +133,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
check_required_tests:
name: All Networking tests passed
needs: test-networking-pinned
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-integrations-web-frameworks-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
test-web_frameworks_1-pinned:
name: Web Frameworks 1 (pinned)
timeout-minutes: 30
Expand Down Expand Up @@ -168,6 +169,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
check_required_tests:
name: All Web Frameworks 1 tests passed
needs: test-web_frameworks_1-pinned
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-integrations-web-frameworks-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
test-web_frameworks_2-pinned:
name: Web Frameworks 2 (pinned)
timeout-minutes: 30
Expand Down Expand Up @@ -172,6 +173,7 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
check_required_tests:
name: All Web Frameworks 2 tests passed
needs: test-web_frameworks_2-pinned
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[pytest]
addopts = -vvv -rfEs -s --durations=5 --cov=tests --cov=sentry_sdk --cov-branch --cov-report= --tb=short --junitxml=.junitxml-{envname}
addopts = -vvv -rfEs -s --durations=5 --cov=tests --cov=sentry_sdk --cov-branch --cov-report= --tb=short --junitxml=.junitxml
asyncio_mode = strict
markers =
tests_internal_exceptions: Handle internal exceptions just as the SDK does, to test it. (Otherwise internal exceptions are recorded and reraised.)
Expand Down
3 changes: 2 additions & 1 deletion scripts/split-tox-gh-actions/templates/test_group.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@
if: {% raw %}${{ !cancelled() }}{% endraw %}
uses: codecov/test-results-action@v1
with:
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}
files: .junitxml
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ commands =
; Running `pytest` as an executable suffers from an import error
; when loading tests in scenarios. In particular, django fails to
; load the settings from the test module.
python -m pytest {env:TESTPATH} {posargs}
python -m pytest {env:TESTPATH} -o junit_suite_name={envname} {posargs}

[testenv:linters]
commands =
Expand Down
Loading