Repository navigation
fix(pr-pipeline): wait out a near reset on the merge-group queued PR read - #17433
Conversation
…read Check Plugins' "Resolve the queued pull request" step read the pull request with one gh api call. A rate limit failed it at once, and the bump, fragment, release and vendor gates then refused, which ejected the merge group (5 groups at the 06:41Z exhaustion on 2026-11-19). - The read goes through retry_call --read with QUEUED_PR_WAIT_SECONDS, so a rate limit whose reset is at most WAIT_BUDGET_SECONDS.queuedPr (900 s) away is waited out and read again. - check-plugins' timeout rises from 9 to 24 minutes to hold the wait. - rate-guard.test.mjs pins the step's literal and the timeout to the key; ci-queued-pr.test.sh covers a reset inside and past the budget. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed Code review: PR #17433, wait out a near rate-limit reset on the merge-group queued PR readNo blocking or advisory findings. I read all 6 changed files in full in What I checked
Criteria
Spend (not a hold): during a rate limit, Loosened-check verdict: fail (default; the prompt has no Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: no security issues foundI read all six changed files in full. This PR changes how Check Plugins' merge-group What I checked
Spend (not a finding, not a hold): the timeout rise from 9 to 24 minutes lets one check-plugins job run up to 15 minutes longer on a standard critical-findings: 0 |
Keep both waits #17433 and this branch add: WAIT_BUDGET_SECONDS carries ciStatusVerify and queuedPr, rate-guard.test.mjs keeps both timeout tests, and the outage-posture paragraph names both readers. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
Refs: #17382
Summary
In a merge group, Check Plugins'
Resolve the queued pull requeststep (queued_pr) read the pull request with a singlegh apicall. When that call hit a rate limit, the step failed immediately. The bump, fragment, release and vendor gates all readQUEUED_PR, so each then refused ("The queued pull request could not be resolved"), and the group was ejected. At the GITHUB_TOKEN exhaustion at 06:41Z on 2026-11-19, the vendor gate's refusal ejected 5 merge groups (lessons-ledger row L852).Fix
retry_call --readhelper in.github/scripts/pr-merge/retry-call.bash, withQUEUED_PR_WAIT_SECONDS. A rate limit whose reset is at mostWAIT_BUDGET_SECONDS.queuedPr(900 s, a new key inrate-guard.mjs) away is waited out, then the read is sent again. A reset further out fails the step at once with one read sent, as before. Each try writes to its own file, so the body of a refused read never reaches the answer.check-plugins'timeout-minutesgoes from 9 to 24 to hold the wait. With the merge queue's 30-minute check response timeout, 15 minutes is the most a wait can take, the same bound fix(source-control): wait out the read floor's reset in the merge-queue verify read #17382 uses forciStatusVerify.babysit_verify_evidence.py) and fix(pr-pipeline): wait out a near reset instead of dropping a Refine dispatch #17411's is the JS latch, so neither can be called from this bash step. Expect a one-line conflict on theWAIT_BUDGET_SECONDSline with fix(source-control): wait out the read floor's reset in the merge-queue verify read #17382. Whichever PR lands second rebases.Verification
bash scripts/ci-queued-pr.test.sh: 9 pass. Two new cases were written first and failed before the fix: a reset 1 s away is waited out (two reads, one sleep, correct outputs); a reset 3600 s away fails with one read and no sleep.node --test .github/actions/log-api-budget/rate-guard.test.mjs: 164 pass. A new test pins the step'sQUEUED_PR_WAIT_SECONDSand the job's timeout (9 min + the wait) toWAIT_BUDGET_SECONDS.queuedPr.scripts/check-changelog-fragments.sh --checkand--check-required origin/mainpass. shellcheck is clean.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj