Skip to content

Commit d852af3

Browse files
sbryngelsonclaude
andcommitted
Restore workflow-level concurrency for full run cancellation
New pushes should cancel all stale jobs to free limited runners. Per-job concurrency was overly granular — old Phoenix/Github jobs kept running even when a new push made them irrelevant. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8d7f492 commit d852af3

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
workflow_dispatch:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
lint-gate:
1115
name: Lint Gate
@@ -64,9 +68,6 @@ jobs:
6468
name: Github
6569
if: needs.file-changes.outputs.checkall == 'true'
6670
needs: [lint-gate, file-changes]
67-
concurrency:
68-
group: github-${{ github.ref }}-${{ matrix.os }}-${{ matrix.mpi }}-${{ matrix.debug }}-${{ matrix.intel }}
69-
cancel-in-progress: true
7071
strategy:
7172
matrix:
7273
os: ['ubuntu', 'macos']
@@ -143,9 +144,6 @@ jobs:
143144
name: "${{ matrix.cluster_name }} (${{ matrix.device }}${{ matrix.interface != 'none' && format('-{0}', matrix.interface) || '' }})"
144145
if: github.repository == 'MFlowCode/MFC' && needs.file-changes.outputs.checkall == 'true'
145146
needs: [lint-gate, file-changes]
146-
concurrency:
147-
group: self-${{ github.ref }}-${{ matrix.cluster }}-${{ matrix.device }}-${{ matrix.interface }}
148-
cancel-in-progress: true
149147
continue-on-error: false
150148
timeout-minutes: 480
151149
strategy:
@@ -212,9 +210,6 @@ jobs:
212210
name: "Benchmark | ${{ matrix.name }} (${{ matrix.device }}${{ matrix.interface != 'none' && format('-{0}', matrix.interface) || '' }})"
213211
if: github.repository == 'MFlowCode/MFC' && needs.file-changes.outputs.checkall == 'true'
214212
needs: [lint-gate, file-changes]
215-
concurrency:
216-
group: bench-${{ github.ref }}-${{ matrix.cluster }}-${{ matrix.device }}-${{ matrix.interface }}
217-
cancel-in-progress: true
218213
continue-on-error: false
219214
timeout-minutes: 480
220215
strategy:

0 commit comments

Comments
 (0)