Skip to content

Commit da8332a

Browse files
ci: Check strictly for success (#4589)
Previously, some statuses other than success (e.g. cancelled) were considered passing for the `check_required_tests` job. See, for example, [this job run](https://github.com/getsentry/sentry-python/actions/runs/16342793741/job/46172510569?pr=4572), where several tests timed out, ending with cancelled status, but the final check passed. We can instead check directly against the `success` status, to strictly enforce that all tests must pass.
1 parent 89e624a commit da8332a

13 files changed

+13
-13
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,6 @@ jobs:
188188
runs-on: ubuntu-22.04
189189
steps:
190190
- name: Check for failures
191-
if: contains(needs.test-ai-pinned.result, 'failure') || contains(needs.test-ai-pinned.result, 'skipped')
191+
if: needs.test-ai-pinned.result != 'success'
192192
run: |
193193
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,6 @@ jobs:
188188
runs-on: ubuntu-22.04
189189
steps:
190190
- name: Check for failures
191-
if: contains(needs.test-cloud-pinned.result, 'failure') || contains(needs.test-cloud-pinned.result, 'skipped')
191+
if: needs.test-cloud-pinned.result != 'success'
192192
run: |
193193
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ jobs:
8989
runs-on: ubuntu-22.04
9090
steps:
9191
- name: Check for failures
92-
if: contains(needs.test-common-pinned.result, 'failure') || contains(needs.test-common-pinned.result, 'skipped')
92+
if: needs.test-common-pinned.result != 'success'
9393
run: |
9494
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,6 @@ jobs:
228228
runs-on: ubuntu-22.04
229229
steps:
230230
- name: Check for failures
231-
if: contains(needs.test-dbs-pinned.result, 'failure') || contains(needs.test-dbs-pinned.result, 'skipped')
231+
if: needs.test-dbs-pinned.result != 'success'
232232
run: |
233233
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ jobs:
101101
runs-on: ubuntu-22.04
102102
steps:
103103
- name: Check for failures
104-
if: contains(needs.test-flags-pinned.result, 'failure') || contains(needs.test-flags-pinned.result, 'skipped')
104+
if: needs.test-flags-pinned.result != 'success'
105105
run: |
106106
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ jobs:
8989
runs-on: ubuntu-22.04
9090
steps:
9191
- name: Check for failures
92-
if: contains(needs.test-gevent-pinned.result, 'failure') || contains(needs.test-gevent-pinned.result, 'skipped')
92+
if: needs.test-gevent-pinned.result != 'success'
9393
run: |
9494
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ jobs:
101101
runs-on: ubuntu-22.04
102102
steps:
103103
- name: Check for failures
104-
if: contains(needs.test-graphql-pinned.result, 'failure') || contains(needs.test-graphql-pinned.result, 'skipped')
104+
if: needs.test-graphql-pinned.result != 'success'
105105
run: |
106106
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,6 @@ jobs:
109109
runs-on: ubuntu-22.04
110110
steps:
111111
- name: Check for failures
112-
if: contains(needs.test-misc-pinned.result, 'failure') || contains(needs.test-misc-pinned.result, 'skipped')
112+
if: needs.test-misc-pinned.result != 'success'
113113
run: |
114114
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,6 @@ jobs:
164164
runs-on: ubuntu-22.04
165165
steps:
166166
- name: Check for failures
167-
if: contains(needs.test-network-pinned.result, 'failure') || contains(needs.test-network-pinned.result, 'skipped')
167+
if: needs.test-network-pinned.result != 'success'
168168
run: |
169169
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,6 @@ jobs:
218218
runs-on: ubuntu-22.04
219219
steps:
220220
- name: Check for failures
221-
if: contains(needs.test-tasks-pinned.result, 'failure') || contains(needs.test-tasks-pinned.result, 'skipped')
221+
if: needs.test-tasks-pinned.result != 'success'
222222
run: |
223223
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

0 commit comments

Comments
 (0)