Repository navigation
ci: PRs first -- post-merge checks run on the latest main when runners are idle (#4825) - #4843
Merged
Merged
Conversation
…s are idle (#4825) After every merge, main's push-triggered workflows started at once and took the free plan's ~20 runners away from PRs waiting on their checks. - Read-only check workflows with a push-to-main trigger (cics-crucible, estate-crucible, fact-crosscheck, java-compile, ports-compile, unicode-gauntlet, smoke-test, tree-sitter-accuracy-audit) now set cancel-in-progress: true, so a superseded main run is cancelled. Writing workflows (history, evidence, docs, publish, archetype) are untouched. - full-suite-gate drops its main push trigger; it keeps the v* release-tag push, schedule and workflow_dispatch. - post-merge.yml (every 20 min + dispatch) reads main's head SHA, defers while any PR job is queued, and otherwise dispatches full-suite-gate on main once per SHA (skipped if a run for that SHA already exists). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
…tches the OS matrix) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
Contributor
squid-protocol
marked this pull request as ready for review
October 10, 2026 13:38
This was referenced Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #4825. After every merge, main's push-triggered workflows start at once and take the free plan's ~20 runners from PRs waiting on their checks. GitHub has no job priority, so this PR makes main's heavy checks wait instead.
Changes
cancel-in-progress: truefor push events too, incics-crucible,estate-crucible,fact-crosscheck,java-compile,ports-compile,unicode-gauntlet,smoke-test,tree-sitter-accuracy-audit. Each was checked by reading its steps: none runsgit push,git commit,create-pull-request,gh pr merge, a release, or a gh-pages write (the matches were checkout fetches or comments). Writing workflows (evidence-refresh,evidence-pages,*-history,archetype-validation,deploy-docs,publish,mainframe-ground-truth,call-resolution-history,graph-comparison-history) are untouched.full-suite-gate.yml: thepush: branches: [main]trigger and its paths are removed. Thepush: tags: v*trigger stays so release tags are still gated, andscheduleandworkflow_dispatchstay.post-merge.yml(new): runs every 20 minutes and on dispatch. It reads main's head SHA. IfPR jobs waiting for a runner(queued PR runs, plus queued jobs inside in-progress PR runs) is greater than 0, it defers. Otherwise it dispatchesfull-suite-gate.ymlon main once per SHA, skipping if any run already exists for that SHA. Permissions:actions: write,contents: read. The workflow list is one line (WORKFLOWS), so more heavy checks can be added later.Candidates for a later move from
pushto dispatch (not moved here, to start conservative):smoke-test(main push grid),tree-sitter-accuracy-audit(about 1 min per merge),ports-compile,java-compile,unicode-gauntlet,cics-crucible,estate-crucible,fact-crosscheck.Testing
yaml.safe_load).python tests/tools/workflow_inputs.py: every path-filtered workflow triggers on what it reads (exit 0).bash -non the dispatcher'srun:block: OK.pr_gates.py --fast: 5/5 pass.pr_gates.py --ratchets: 7 pass, 0 fail, 0 skipped.ghagainst squid-protocol/gitgalaxy, at main97200bb:With that marker, the dispatcher will not re-run main at
97200bb, which already has a push run.Open questions
main-watch.ymlreports onlypushandscheduleevents, so a failure in a post-merge dispatched run is not reported. The fix is one line inmain-watch.yml(addworkflow_dispatchto its event check). It was left out because this PR scopes its edits to triggers and the new file.in_progressas well would hold post-merge checks back for much longer.🤖 Generated with Claude Code
https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV