Skip to content

Commit cc27c4b

Browse files
committed
fix(ci): do not cancel push-to-main coverage baseline runs
The coverage gate's `concurrency.cancel-in-progress: true` was cancelling the push-to-main runs that compute and SAVE the baseline cache. A rapid run of merges cancelled each baseline run before it could save, so the cache was never populated and every PR's gate stayed "informational - no baseline" forever. Only cancel superseded PR runs; let every push-to-main run finish and save its baseline. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WvXMHHbYGddVPpmQR2XmK1
1 parent 4236724 commit cc27c4b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/coverage.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ on:
2828

2929
concurrency:
3030
group: ${{ github.workflow }}-${{ github.ref }}
31-
cancel-in-progress: true
31+
# Only cancel a SUPERSEDED PR run (a newer commit on the same PR). NEVER
32+
# cancel a push-to-main run: those compute and SAVE the baseline cache, and a
33+
# rapid run of merges would otherwise cancel each baseline run before it
34+
# saved, leaving the gate permanently without a baseline to compare against.
35+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
3236

3337
permissions:
3438
contents: read

0 commit comments

Comments
 (0)