Skip to content

Commit 5e15230

Browse files
committed
Fix failure check
1 parent 3f0eaeb commit 5e15230

12 files changed

+48
-12
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ jobs:
177177
if: always()
178178
runs-on: ubuntu-20.04
179179
steps:
180+
- name: Auto-pass for path filtering
181+
if: needs.test-ai-pinned.result == ''
182+
run: echo "Test suite was skipped because nothing in /sentry_sdk or /tests changed"
180183
- name: Check for failures
181-
if: contains(needs.test-ai-pinned.result, 'failure') || contains(needs.test-ai-pinned.result, 'skipped')
184+
if: needs.test-ai-pinned.result != '' && (contains(needs.test-ai-pinned.result, 'failure') || contains(needs.test-ai-pinned.result, 'skipped'))
182185
run: |
183186
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ jobs:
124124
if: always()
125125
runs-on: ubuntu-20.04
126126
steps:
127+
- name: Auto-pass for path filtering
128+
if: needs.test-aws-pinned.result == ''
129+
run: echo "Test suite was skipped because nothing in /sentry_sdk or /tests changed"
127130
- name: Check for failures
128-
if: contains(needs.test-aws-pinned.result, 'failure') || contains(needs.test-aws-pinned.result, 'skipped')
131+
if: needs.test-aws-pinned.result != '' && (contains(needs.test-aws-pinned.result, 'failure') || contains(needs.test-aws-pinned.result, 'skipped'))
129132
run: |
130133
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ jobs:
169169
if: always()
170170
runs-on: ubuntu-20.04
171171
steps:
172+
- name: Auto-pass for path filtering
173+
if: needs.test-cloud-pinned.result == ''
174+
run: echo "Test suite was skipped because nothing in /sentry_sdk or /tests changed"
172175
- name: Check for failures
173-
if: contains(needs.test-cloud-pinned.result, 'failure') || contains(needs.test-cloud-pinned.result, 'skipped')
176+
if: needs.test-cloud-pinned.result != '' && (contains(needs.test-cloud-pinned.result, 'failure') || contains(needs.test-cloud-pinned.result, 'skipped'))
174177
run: |
175178
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ jobs:
8989
if: always()
9090
runs-on: ubuntu-20.04
9191
steps:
92+
- name: Auto-pass for path filtering
93+
if: needs.test-common-pinned.result == ''
94+
run: echo "Test suite was skipped because nothing in /sentry_sdk or /tests changed"
9295
- name: Check for failures
93-
if: contains(needs.test-common-pinned.result, 'failure') || contains(needs.test-common-pinned.result, 'skipped')
96+
if: needs.test-common-pinned.result != '' && (contains(needs.test-common-pinned.result, 'failure') || contains(needs.test-common-pinned.result, 'skipped'))
9497
run: |
9598
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,10 @@ jobs:
223223
if: always()
224224
runs-on: ubuntu-20.04
225225
steps:
226+
- name: Auto-pass for path filtering
227+
if: needs.test-dbs-pinned.result == ''
228+
run: echo "Test suite was skipped because nothing in /sentry_sdk or /tests changed"
226229
- name: Check for failures
227-
if: contains(needs.test-dbs-pinned.result, 'failure') || contains(needs.test-dbs-pinned.result, 'skipped')
230+
if: needs.test-dbs-pinned.result != '' && (contains(needs.test-dbs-pinned.result, 'failure') || contains(needs.test-dbs-pinned.result, 'skipped'))
228231
run: |
229232
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ jobs:
169169
if: always()
170170
runs-on: ubuntu-20.04
171171
steps:
172+
- name: Auto-pass for path filtering
173+
if: needs.test-graphql-pinned.result == ''
174+
run: echo "Test suite was skipped because nothing in /sentry_sdk or /tests changed"
172175
- name: Check for failures
173-
if: contains(needs.test-graphql-pinned.result, 'failure') || contains(needs.test-graphql-pinned.result, 'skipped')
176+
if: needs.test-graphql-pinned.result != '' && (contains(needs.test-graphql-pinned.result, 'failure') || contains(needs.test-graphql-pinned.result, 'skipped'))
174177
run: |
175178
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ jobs:
193193
if: always()
194194
runs-on: ubuntu-20.04
195195
steps:
196+
- name: Auto-pass for path filtering
197+
if: needs.test-misc-pinned.result == ''
198+
run: echo "Test suite was skipped because nothing in /sentry_sdk or /tests changed"
196199
- name: Check for failures
197-
if: contains(needs.test-misc-pinned.result, 'failure') || contains(needs.test-misc-pinned.result, 'skipped')
200+
if: needs.test-misc-pinned.result != '' && (contains(needs.test-misc-pinned.result, 'failure') || contains(needs.test-misc-pinned.result, 'skipped'))
198201
run: |
199202
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ jobs:
169169
if: always()
170170
runs-on: ubuntu-20.04
171171
steps:
172+
- name: Auto-pass for path filtering
173+
if: needs.test-network-pinned.result == ''
174+
run: echo "Test suite was skipped because nothing in /sentry_sdk or /tests changed"
172175
- name: Check for failures
173-
if: contains(needs.test-network-pinned.result, 'failure') || contains(needs.test-network-pinned.result, 'skipped')
176+
if: needs.test-network-pinned.result != '' && (contains(needs.test-network-pinned.result, 'failure') || contains(needs.test-network-pinned.result, 'skipped'))
174177
run: |
175178
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ jobs:
205205
if: always()
206206
runs-on: ubuntu-20.04
207207
steps:
208+
- name: Auto-pass for path filtering
209+
if: needs.test-tasks-pinned.result == ''
210+
run: echo "Test suite was skipped because nothing in /sentry_sdk or /tests changed"
208211
- name: Check for failures
209-
if: contains(needs.test-tasks-pinned.result, 'failure') || contains(needs.test-tasks-pinned.result, 'skipped')
212+
if: needs.test-tasks-pinned.result != '' && (contains(needs.test-tasks-pinned.result, 'failure') || contains(needs.test-tasks-pinned.result, 'skipped'))
210213
run: |
211214
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ jobs:
205205
if: always()
206206
runs-on: ubuntu-20.04
207207
steps:
208+
- name: Auto-pass for path filtering
209+
if: needs.test-web_1-pinned.result == ''
210+
run: echo "Test suite was skipped because nothing in /sentry_sdk or /tests changed"
208211
- name: Check for failures
209-
if: contains(needs.test-web_1-pinned.result, 'failure') || contains(needs.test-web_1-pinned.result, 'skipped')
212+
if: needs.test-web_1-pinned.result != '' && (contains(needs.test-web_1-pinned.result, 'failure') || contains(needs.test-web_1-pinned.result, 'skipped'))
210213
run: |
211214
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

0 commit comments

Comments
 (0)