You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(ci): add concurrency control to all workflows (#200)
Per the org-wide CI concurrency hardening brief — adds a top-level
`concurrency:` block to every workflow under `.github/workflows/`.
Goal: cancel superseded PR runs aggressively while never cancelling
runs on `main`, tags, or scheduled events. Expected impact: 30-40%
reduction in CI compute and clearing of the persistent runner queue
backlog (spar had 21+ jobs queued at brief time, oldest 23h old).
Variants applied:
- `ci.yml` → **default** (group: workflow + head_ref/ref;
cancel-in-progress conditional on pull_request event)
- `proofs.yml` → **default** (Lean runs are multi-hour on cold
cache; cancelling superseded PR commits is the highest-leverage
saving; main runs still protected)
- `bench-nightly.yml` → **scheduled** (per-run group via
`github.run_id`; never cancel — each scheduled run is independent
baseline data)
- `fuzz-nightly.yml` → **scheduled** (same — corpus + crash data
must accumulate)
- `release.yml` → **release** (group: release-${ref}; never cancel
— cancelling mid-publish leaves SLSA attestations + registry
pushes inconsistent)
Verification per the brief:
- yaml.safe_load passes on all 5 files
- Diff stays strictly inside `.github/workflows/` (no job restructure,
no runner changes, no cache changes — all out of scope per brief)
After merge, push a no-op follow-up to any open PR; the earlier run
must show as Cancelled within ~30s. Post-merge main run must NOT
be cancelled.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments