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
{{ message }}
Repository navigation
ci.yml: superseded runs on next/hotfixes are never cancelled and starve the org's hosted runners #583
priority: highNeeds attention soon — not blocking, but don't let it sitstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
The ci.yml template sets cancel-in-progress: true, but its group gets a unique -${{ github.run_id }} suffix whenever the ref is the default branch, next or hotfixes (or the PR head is next/hotfixes):
So every push to next runs the full matrix to the end, even when a newer push to next has already started its own run. Feature branches cancel as expected.
What it caused on 2026-11-26: slothlet had 60 CI runs in progress at once, started between 02:44 and 02:54 UTC by back-to-back merges into next (#952, #953) plus a few branches. Their test and coverage matrices took every GitHub-hosted job slot the org has. From about 03:17 UTC no other CLDMV repo could start a hosted job: lib-sqlite-wasm, vitest-runner and fix-headers pushes and even issue workflows sat queued for 40+ minutes. GitHub status was green and billing was fine. slothlet is also $747 of the month's $1,183 Actions usage (free because it's public, but the slots are shared).
Fix:
Cancel superseded runs on next and hotfixes too. The newest commit on the branch is the one that ships, and its run covers everything before it.
If a job really must run once per commit (the post-merge lint/format autofix, the badge push), move it to its own job or workflow with its own non-cancelling group, so the expensive test and coverage matrix can still be cancelled.
Keep the default branch (master) uncancelled, since each push there is a release.
Consider a max-parallel cap on the build-and-test matrix (or an input for it), so one heavy repo can't take every hosted slot even within a single run.
The template change then needs syncing to every repo's ci.yml (slothlet first).
Correction on the cause: only 2 of slothlet's in-progress runs were on next (#952, #953). Most were pushes to about 22 separate feature branches between 02:20 and 02:50 UTC, each a "Merge next and the PRs queued ahead of this one into " commit. Each branch is its own concurrency group and already cancels its own older runs, so cancelling superseded runs on next wouldn't have prevented this. 22 full matrices simply ran in parallel.
The next cancellation is still worth doing, but the fix that matters is limiting how much one repo can start at once: a max-parallel cap on the build-and-test matrix, and not re-merging next into many branches in one go (or doing it without triggering a full CI run on each).
priority: highNeeds attention soon — not blocking, but don't let it sitstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
Activity
Shinrai commentedon Nov 26, 2026
Correction on the cause: only 2 of slothlet's in-progress runs were on
next(#952, #953). Most were pushes to about 22 separate feature branches between 02:20 and 02:50 UTC, each a "Merge next and the PRs queued ahead of this one into " commit. Each branch is its own concurrency group and already cancels its own older runs, so cancelling superseded runs onnextwouldn't have prevented this. 22 full matrices simply ran in parallel.The
nextcancellation is still worth doing, but the fix that matters is limiting how much one repo can start at once: amax-parallelcap on the build-and-test matrix, and not re-mergingnextinto many branches in one go (or doing it without triggering a full CI run on each).fix(ci): cancel superseded runs on next and hotfixes, cap the Node ma…
cldmv-bot commentedon Nov 26, 2026
Marked
status: implemented— resolved by #586, merged intonext. This issue closes automatically when that work ships to the default branch.release: v4.46.0 - add extra_build_os for a build check on other…
ci: cancel superseded CI runs on next and hotfixes (#142)
ci: cancel superseded CI runs on next and hotfixes (#87)
ci: cancel superseded CI runs on next and hotfixes (#119)
ci: cancel superseded CI runs on next and hotfixes (#122)
ci: cancel superseded CI runs on next and hotfixes (#117)
ci: cancel superseded CI runs on next and hotfixes (#131)
ci: cancel superseded CI runs on next and hotfixes (#57)
ci: cancel superseded CI runs on next and hotfixes (#138)
ci: cancel superseded CI runs on next and hotfixes (#108)
ci: cancel superseded CI runs on next and hotfixes (#13)
ci: cancel superseded CI runs on next and hotfixes (#57)
ci: cancel superseded CI runs on next and hotfixes (#88)
ci: cancel superseded CI runs on next and hotfixes (#220)
ci: cancel superseded CI runs on next and hotfixes (#281)