Repository navigation
weekly: bound the bump CI wait and do not wait on a queued pr_agent - #636
Merged
Merged
Conversation
`gh pr checks --watch` returns only when every check has finished, and a check that stays queued never finishes. coder-llm is off on the release box (the owner, 2026-10-30), so its `pr_agent` check can sit queued for ever: the Sunday release would wait on a review bot, not on CI. `checks_green` polls instead and decides per check, from the bucket GitHub itself assigns: - a `fail` (or `cancel` - a cancelled run is not a pass) holds the bump, exactly as before; - a `pending` check whose name matches $WEEKLY_QUEUED_OK (default: pr_agent) is not waited for; - everything else is still waited for, and the whole wait is bounded by $WEEKLY_CHECKS_TIMEOUT (default 2700 s), so a stuck CI holds that bump and never the release. Each poll is appended to logs/bump-<pr>-checks.log, which is where the old --watch output went, and the failing or still-queued check names now reach bumps.json's "why" instead of a bare "CI failed". Checked with a stub `gh` over fixture buckets, the real filter code unchanged: all-green 0, pr_agent queued + rest green 0, another check queued 1 (after the bound), a failing check 1 at once, a cancelled check 1, skipping buckets 0, $WEEKLY_QUEUED_OK override 0. No new option to skip the bumps stage: the stages argument already does that (`weekly.sh <workdir> build test package release`).
This was referenced Oct 31, 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.
Why
scripts/weekly.shstep bumps finishes each verified bump PR with--watchreturns only when every check has finished. A check that stays queued never finishes, soone permanently queued check hangs the whole Sunday release (build/package/release never start).
That is the state of the box right now: coder-llm is OFF (owner, 2026-10-30), and its
pr_agentcheck is the one that stays queued. It is not a release-blocking signal — the bump itself is verified
locally first (checkout → pins → build → ctest → the bump's own check), and CI's real content checks are
build,CodeQL,hw_gateand the pin guards.What changes
One new helper,
checks_green <pr>, and one call site changed. It pollsgh pr checks --json name,bucketevery 30 s and decides per check from the bucket GitHub assigns:
fail,cancelpending, name matches$WEEKLY_QUEUED_OK(defaultpr_agent)pending, anything else$WEEKLY_CHECKS_TIMEOUT(default 2700 s)pass,skippingSo a queued review bot cannot hold the release, and a stuck CI holds that bump (recorded as
heldinbumps.json, the rest of the release continues) instead of the whole run.Two smaller things while in there:
logs/bump-<pr>-checks.log, the same file--watchused to write, so theartifact does not disappear;
whyfield ofbumps.json(checks failed: hw_gate) instead of the bareCI failedthe old code recorded.No
WEEKLY_SKIP_BUMPSoption:weekly.shalready takes stages as arguments, soweekly.sh <workdir> build test package releaseis the existing way to skip bumps. Adding an env var forthe same thing would be a second way to say one thing.
Not merged, not tagged
Opened for the orchestrator to review and squash-merge; the Sunday release runs from whatever
mainholdswhen it starts. Nothing was pushed to
main.Testing
bash -n scripts/weekly.shclean,tools/copyright.py --checkrc=0.The filter is the new logic, so it was exercised with a stub
ghthat prints a fixture on stdout,the function text copied out of the script unchanged:
pr_agentqueued, rest greenpr_agentqueued +CodeQLgreenhw_gatequeued, rest greenchecks still hw_gate after 2s)hw_gatefailchecks failed: hw_gate)CodeQL2skipping, rest greenhw_gatecancelWEEKLY_QUEUED_OK=hw_gatewithhw_gatequeuedNot run: an end-to-end release-path bumps stage against a real bump PR (there are none open on the
engine right now, so this change is preventive; the rehearsal path used this Sunday is
WEEKLY_DRY_RUN=1,which never reached the
--watchline at all).