FORGE-79: skip superseded queued main-push CI runs #739
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!739
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "FORGE-79-skip-superseded-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Kanbanger: FORGE-79 (CI backlog request from FORGE-67)
Why
Main pushes share the
forgegraph-ci-refs/heads/mainconcurrency group and run one at a time, so every merge queued another full CI run behind the last. At 06:33Z on 2026-10-12, 15 main runs were queued holding ~117 jobs while the node pool sat at 12/12 busy. Those queued jobs also count as "waiting" in Forgejo's job search, which keeps the Cloudflare pool relaunching containers that have nothing to claim.What
supersededjob first, onruns-on: cloudflare— the same main-head check as deploy.yml's guard. If main has moved pastgithub.shawhen a push run starts,current=false.needs: superseded+if: needs.superseded.outputs.current == 'true'.cikeeps the literalif: always(), needssuperseded, and on a superseded run exits its verdict early withsuperseded=true: no ForgeGraph report, no failure.cancel-in-progress. PRs and failed head lookups always run; a failed guard job leaves the jobs skipped, which failsci(fail closed).Tests
ci-aggregate.test.tsandforgegraph-ci-runner-placement.test.ts: guard placement and logic, every job gated, superseded verdict, empty-guard verdict fails. 9/9 pass locally.🤖 Generated with Claude Code