Repository navigation
ci: shepherd reconcile wakes on the required checks only and coalesces bursts (Part of #4935) - #4936
Merged
Merged
Conversation
…s bursts (Part of #4935) The reconcile triggered on 25 workflows: 204 runs a day, 99 cancelled and 30 skipped. A pending pass cancelled by a newer one (one pending run per concurrency group) also dropped the PRs of its head until the 20-minute cron, because a workflow_run pass only reconciled that head's PRs. Now it triggers on the workflows behind main's required checks plus the Full Suite Gate (6), ignores runs on main at the trigger instead of skipping them in the job, and every pass reconciles all labelled PRs, so a burst coalesces into one pass and nothing waits for the cron. The cron and manual runs are unchanged. shepherd_gh.REQUIRED_CHECKS mirrors the ruleset; a test keeps the trigger list in step with it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 11, 2026 21:37
squid-protocol
enabled auto-merge (squash)
October 11, 2026 21:37
Contributor
This was referenced Oct 12, 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 #4935 (the shepherd reconcile member; Main Watch and the double-run heavy jobs stay open there).
Problem
shepherd-reconcile.ymltriggered on 25 workflows: 204 runs in 24h, 41% of all CI runs, with 99 cancelled and 30 skipped.workflow_runpass only reconciled the triggering head's PRs (--head-sha), so when PR A's pending pass was cancelled by PR B's newer completion, PR A waited for the 20-minute cron.Change
det,full-suite,ground-truth,mypy-audit,ruff-audit→ Det Sweep, Smoke Tests, Mainframe Ground Truth, Mypy Audit, Ruff Audit) plus the Full Suite Gate thatshepherd:matrixwaits on. GitHub's auto-merge itself waits on the required checks. Digests and reruns for other checks come from the next pass on the same head, or from the cron.branches-ignore: [main]on the trigger: runs on main create no reconcile run at all, rather than a skipped one.shepherd_gh.REQUIRED_CHECKSmirrors the ruleset. A new test derives the expected trigger list from the workflow files that define those checks, so adding a required check without waking the shepherd fails CI. Another test makes sure passes are never head-only again.docs/ci.mdis updated.Expected: about 65 reconcile runs a day instead of 204, with no PR waiting on the cron after a dropped pass. I'll compare the 24h counts and label-merge latency after it merges.
Evidence:
test_shepherd_gh.py+test_ci_shepherd.py76 pass (2 new; the workflow security lint still passes).pr_gates --fast5/5. Owner-approved workflow edit (2026-10-11).🤖 Generated with Claude Code