Skip to content

Commit d3fc697

Browse files
authored
Fixed failed tests setup (#3303)
1 parent 57db56c commit d3fc697

14 files changed

+24
-3
lines changed

.github/workflows/test-integrations-ai.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
uses: codecov/test-results-action@v1
8080
with:
8181
token: ${{ secrets.CODECOV_TOKEN }}
82+
files: .junitxml
8283
test-ai-pinned:
8384
name: AI (pinned)
8485
timeout-minutes: 30
@@ -140,6 +141,7 @@ jobs:
140141
uses: codecov/test-results-action@v1
141142
with:
142143
token: ${{ secrets.CODECOV_TOKEN }}
144+
files: .junitxml
143145
check_required_tests:
144146
name: All AI tests passed
145147
needs: test-ai-pinned

.github/workflows/test-integrations-aws-lambda.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
uses: codecov/test-results-action@v1
9999
with:
100100
token: ${{ secrets.CODECOV_TOKEN }}
101+
files: .junitxml
101102
check_required_tests:
102103
name: All AWS Lambda tests passed
103104
needs: test-aws_lambda-pinned

.github/workflows/test-integrations-cloud-computing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
uses: codecov/test-results-action@v1
7676
with:
7777
token: ${{ secrets.CODECOV_TOKEN }}
78+
files: .junitxml
7879
test-cloud_computing-pinned:
7980
name: Cloud Computing (pinned)
8081
timeout-minutes: 30
@@ -132,6 +133,7 @@ jobs:
132133
uses: codecov/test-results-action@v1
133134
with:
134135
token: ${{ secrets.CODECOV_TOKEN }}
136+
files: .junitxml
135137
check_required_tests:
136138
name: All Cloud Computing tests passed
137139
needs: test-cloud_computing-pinned

.github/workflows/test-integrations-common.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
uses: codecov/test-results-action@v1
6464
with:
6565
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: .junitxml
6667
check_required_tests:
6768
name: All Common tests passed
6869
needs: test-common-pinned

.github/workflows/test-integrations-data-processing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
uses: codecov/test-results-action@v1
8686
with:
8787
token: ${{ secrets.CODECOV_TOKEN }}
88+
files: .junitxml
8889
test-data_processing-pinned:
8990
name: Data Processing (pinned)
9091
timeout-minutes: 30
@@ -152,6 +153,7 @@ jobs:
152153
uses: codecov/test-results-action@v1
153154
with:
154155
token: ${{ secrets.CODECOV_TOKEN }}
156+
files: .junitxml
155157
check_required_tests:
156158
name: All Data Processing tests passed
157159
needs: test-data_processing-pinned

.github/workflows/test-integrations-databases.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ jobs:
102102
uses: codecov/test-results-action@v1
103103
with:
104104
token: ${{ secrets.CODECOV_TOKEN }}
105+
files: .junitxml
105106
test-databases-pinned:
106107
name: Databases (pinned)
107108
timeout-minutes: 30
@@ -186,6 +187,7 @@ jobs:
186187
uses: codecov/test-results-action@v1
187188
with:
188189
token: ${{ secrets.CODECOV_TOKEN }}
190+
files: .junitxml
189191
check_required_tests:
190192
name: All Databases tests passed
191193
needs: test-databases-pinned

.github/workflows/test-integrations-graphql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
uses: codecov/test-results-action@v1
7676
with:
7777
token: ${{ secrets.CODECOV_TOKEN }}
78+
files: .junitxml
7879
test-graphql-pinned:
7980
name: GraphQL (pinned)
8081
timeout-minutes: 30
@@ -132,6 +133,7 @@ jobs:
132133
uses: codecov/test-results-action@v1
133134
with:
134135
token: ${{ secrets.CODECOV_TOKEN }}
136+
files: .junitxml
135137
check_required_tests:
136138
name: All GraphQL tests passed
137139
needs: test-graphql-pinned

.github/workflows/test-integrations-miscellaneous.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
uses: codecov/test-results-action@v1
8080
with:
8181
token: ${{ secrets.CODECOV_TOKEN }}
82+
files: .junitxml
8283
test-miscellaneous-pinned:
8384
name: Miscellaneous (pinned)
8485
timeout-minutes: 30
@@ -140,6 +141,7 @@ jobs:
140141
uses: codecov/test-results-action@v1
141142
with:
142143
token: ${{ secrets.CODECOV_TOKEN }}
144+
files: .junitxml
143145
check_required_tests:
144146
name: All Miscellaneous tests passed
145147
needs: test-miscellaneous-pinned

.github/workflows/test-integrations-networking.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
uses: codecov/test-results-action@v1
7676
with:
7777
token: ${{ secrets.CODECOV_TOKEN }}
78+
files: .junitxml
7879
test-networking-pinned:
7980
name: Networking (pinned)
8081
timeout-minutes: 30
@@ -132,6 +133,7 @@ jobs:
132133
uses: codecov/test-results-action@v1
133134
with:
134135
token: ${{ secrets.CODECOV_TOKEN }}
136+
files: .junitxml
135137
check_required_tests:
136138
name: All Networking tests passed
137139
needs: test-networking-pinned

.github/workflows/test-integrations-web-frameworks-1.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
uses: codecov/test-results-action@v1
9494
with:
9595
token: ${{ secrets.CODECOV_TOKEN }}
96+
files: .junitxml
9697
test-web_frameworks_1-pinned:
9798
name: Web Frameworks 1 (pinned)
9899
timeout-minutes: 30
@@ -168,6 +169,7 @@ jobs:
168169
uses: codecov/test-results-action@v1
169170
with:
170171
token: ${{ secrets.CODECOV_TOKEN }}
172+
files: .junitxml
171173
check_required_tests:
172174
name: All Web Frameworks 1 tests passed
173175
needs: test-web_frameworks_1-pinned

.github/workflows/test-integrations-web-frameworks-2.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
uses: codecov/test-results-action@v1
9696
with:
9797
token: ${{ secrets.CODECOV_TOKEN }}
98+
files: .junitxml
9899
test-web_frameworks_2-pinned:
99100
name: Web Frameworks 2 (pinned)
100101
timeout-minutes: 30
@@ -172,6 +173,7 @@ jobs:
172173
uses: codecov/test-results-action@v1
173174
with:
174175
token: ${{ secrets.CODECOV_TOKEN }}
176+
files: .junitxml
175177
check_required_tests:
176178
name: All Web Frameworks 2 tests passed
177179
needs: test-web_frameworks_2-pinned

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[pytest]
2-
addopts = -vvv -rfEs -s --durations=5 --cov=tests --cov=sentry_sdk --cov-branch --cov-report= --tb=short --junitxml=.junitxml-{envname}
2+
addopts = -vvv -rfEs -s --durations=5 --cov=tests --cov=sentry_sdk --cov-branch --cov-report= --tb=short --junitxml=.junitxml
33
asyncio_mode = strict
44
markers =
55
tests_internal_exceptions: Handle internal exceptions just as the SDK does, to test it. (Otherwise internal exceptions are recorded and reraised.)

scripts/split-tox-gh-actions/templates/test_group.jinja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,5 @@
9595
if: {% raw %}${{ !cancelled() }}{% endraw %}
9696
uses: codecov/test-results-action@v1
9797
with:
98-
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}
98+
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}
99+
files: .junitxml

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ commands =
741741
; Running `pytest` as an executable suffers from an import error
742742
; when loading tests in scenarios. In particular, django fails to
743743
; load the settings from the test module.
744-
python -m pytest {env:TESTPATH} {posargs}
744+
python -m pytest {env:TESTPATH} -o junit_suite_name={envname} {posargs}
745745

746746
[testenv:linters]
747747
commands =

0 commit comments

Comments
 (0)