Skip to content

Commit 349e6a5

Browse files
ci: Address warden review feedback
- Add requirements*.txt to path filters so dependency changes trigger CI - Gate job now also fails if the changes detection job itself fails, preventing untested code from passing CI when change detection errors Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 51f78f1 commit 349e6a5

18 files changed

+65
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- '**/*.toml'
3838
- '**/*.ini'
3939
- 'Makefile'
40+
- 'requirements*.txt'
4041
- '.github/workflows/**'
4142
4243
lint:

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- '**/*.toml'
4646
- '**/*.ini'
4747
- 'Makefile'
48+
- 'requirements*.txt'
4849
- '.github/workflows/**'
4950
test-agents:
5051
needs: changes
@@ -111,6 +112,8 @@ jobs:
111112
runs-on: ubuntu-22.04
112113
steps:
113114
- name: Check for failures
114-
if: needs.test-agents.result != 'success' && needs.test-agents.result != 'skipped'
115+
if: |
116+
needs.changes.result == 'failure' ||
117+
(needs.test-agents.result != 'success' && needs.test-agents.result != 'skipped')
115118
run: |
116119
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- '**/*.toml'
4646
- '**/*.ini'
4747
- 'Makefile'
48+
- 'requirements*.txt'
4849
- '.github/workflows/**'
4950
test-ai_workflow:
5051
needs: changes
@@ -115,6 +116,8 @@ jobs:
115116
runs-on: ubuntu-22.04
116117
steps:
117118
- name: Check for failures
118-
if: needs.test-ai_workflow.result != 'success' && needs.test-ai_workflow.result != 'skipped'
119+
if: |
120+
needs.changes.result == 'failure' ||
121+
(needs.test-ai_workflow.result != 'success' && needs.test-ai_workflow.result != 'skipped')
119122
run: |
120123
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- '**/*.toml'
4646
- '**/*.ini'
4747
- 'Makefile'
48+
- 'requirements*.txt'
4849
- '.github/workflows/**'
4950
test-ai:
5051
needs: changes
@@ -131,6 +132,8 @@ jobs:
131132
runs-on: ubuntu-22.04
132133
steps:
133134
- name: Check for failures
134-
if: needs.test-ai.result != 'success' && needs.test-ai.result != 'skipped'
135+
if: |
136+
needs.changes.result == 'failure' ||
137+
(needs.test-ai.result != 'success' && needs.test-ai.result != 'skipped')
135138
run: |
136139
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
@@ -45,6 +45,7 @@ jobs:
4545
- '**/*.toml'
4646
- '**/*.ini'
4747
- 'Makefile'
48+
- 'requirements*.txt'
4849
- '.github/workflows/**'
4950
test-cloud:
5051
needs: changes
@@ -127,6 +128,8 @@ jobs:
127128
runs-on: ubuntu-22.04
128129
steps:
129130
- name: Check for failures
130-
if: needs.test-cloud.result != 'success' && needs.test-cloud.result != 'skipped'
131+
if: |
132+
needs.changes.result == 'failure' ||
133+
(needs.test-cloud.result != 'success' && needs.test-cloud.result != 'skipped')
131134
run: |
132135
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
@@ -45,6 +45,7 @@ jobs:
4545
- '**/*.toml'
4646
- '**/*.ini'
4747
- 'Makefile'
48+
- 'requirements*.txt'
4849
- '.github/workflows/**'
4950
test-common:
5051
needs: changes
@@ -107,6 +108,8 @@ jobs:
107108
runs-on: ubuntu-22.04
108109
steps:
109110
- name: Check for failures
110-
if: needs.test-common.result != 'success' && needs.test-common.result != 'skipped'
111+
if: |
112+
needs.changes.result == 'failure' ||
113+
(needs.test-common.result != 'success' && needs.test-common.result != 'skipped')
111114
run: |
112115
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
@@ -45,6 +45,7 @@ jobs:
4545
- '**/*.toml'
4646
- '**/*.ini'
4747
- 'Makefile'
48+
- 'requirements*.txt'
4849
- '.github/workflows/**'
4950
test-dbs:
5051
needs: changes
@@ -147,6 +148,8 @@ jobs:
147148
runs-on: ubuntu-22.04
148149
steps:
149150
- name: Check for failures
150-
if: needs.test-dbs.result != 'success' && needs.test-dbs.result != 'skipped'
151+
if: |
152+
needs.changes.result == 'failure' ||
153+
(needs.test-dbs.result != 'success' && needs.test-dbs.result != 'skipped')
151154
run: |
152155
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- '**/*.toml'
4646
- '**/*.ini'
4747
- 'Makefile'
48+
- 'requirements*.txt'
4849
- '.github/workflows/**'
4950
test-flags:
5051
needs: changes
@@ -119,6 +120,8 @@ jobs:
119120
runs-on: ubuntu-22.04
120121
steps:
121122
- name: Check for failures
122-
if: needs.test-flags.result != 'success' && needs.test-flags.result != 'skipped'
123+
if: |
124+
needs.changes.result == 'failure' ||
125+
(needs.test-flags.result != 'success' && needs.test-flags.result != 'skipped')
123126
run: |
124127
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- '**/*.toml'
4646
- '**/*.ini'
4747
- 'Makefile'
48+
- 'requirements*.txt'
4849
- '.github/workflows/**'
4950
test-gevent:
5051
needs: changes
@@ -107,6 +108,8 @@ jobs:
107108
runs-on: ubuntu-22.04
108109
steps:
109110
- name: Check for failures
110-
if: needs.test-gevent.result != 'success' && needs.test-gevent.result != 'skipped'
111+
if: |
112+
needs.changes.result == 'failure' ||
113+
(needs.test-gevent.result != 'success' && needs.test-gevent.result != 'skipped')
111114
run: |
112115
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
@@ -45,6 +45,7 @@ jobs:
4545
- '**/*.toml'
4646
- '**/*.ini'
4747
- 'Makefile'
48+
- 'requirements*.txt'
4849
- '.github/workflows/**'
4950
test-graphql:
5051
needs: changes
@@ -119,6 +120,8 @@ jobs:
119120
runs-on: ubuntu-22.04
120121
steps:
121122
- name: Check for failures
122-
if: needs.test-graphql.result != 'success' && needs.test-graphql.result != 'skipped'
123+
if: |
124+
needs.changes.result == 'failure' ||
125+
(needs.test-graphql.result != 'success' && needs.test-graphql.result != 'skipped')
123126
run: |
124127
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1

0 commit comments

Comments
 (0)