Repository navigation
fix(ci): re-run a hosted review a GitHub rate limit held, and bind its attempt 2 - #17014
Conversation
…s attempt 2 A hosted review run whose leg held on a GitHub API rate limit ends success with no review. ci-status names it, but the lost-run reconciler re-ran a review only for a kill-switch or upstream stop, and the merge gate bound an attempt 2 after a successful attempt 1 only for a kill-switch stop, so the head waited on a person (PR 16810, runs 44114943906 and 44114943687). - reconcile.mjs: on ci-status's rate-held note (RATE_HELD_NOTE, from pr-require-checks.yml's `held)` branch), re-runs the attempt-1 review run once, a minute past the latest reset its leg's 403/429 refusals name (rateHeld, read as held_from reads the leg), recorded as rerunRecordName(id, 2, head), one lane per head per pass, behind the same lane switches and upstream gate. - babysit_review_evidence.py: rerun_binds accepts _rate_held beside _kill_switch_stopped for a successful attempt 1: the lane job's held notice for the head, no completion record, and a leg showing the hold beside a refusal at remaining 0. - babysit_gh.py reads the held leg's annotations; the lane-run cache format moves to v2 (carry-run-cache.mjs follows), so no saved record lacking them is used. Refs: #16642 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 (incremental, blocking only):
|
|
claude-security-review reviewed Security review: PR #17014, incremental (52f2daa → 18adfa3)I found no security issues. This review covered only what changed since this lane last reviewed head This lane has reviewed this pull request before, so this review reported only blocking findings (CRITICAL or IMPORTANT). It found none. What changedThe push adds one test class, Controls checked
PR context: no embedded instructions. Prior findings: none open. The earlier summary reported 0 findings. critical-findings: 0 |
…_lane_runs HeldLegAnnotationTests drives collect_lane_runs with a stubbed gh client: a green leg whose Claude review step skipped has its annotations read and attached where _rate_held reads them, a leg whose review ran is not read, and a warm v2 carry keeps those annotations. With the leg fetch removed, the read and carry tests fail. Refs: #16642 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The pr-verify verifier failed head What it wrote (22 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
Refs: #16642
Summary
A hosted review run whose leg hit a GitHub API rate limit ends
successbut does no review. ci-status names the hold and asks a person to re-run it. Neither the lost-run reconciler nor the merge gate handled this case, so the head stayed red until a person stepped in. Example: PR #16810 at head 4bea779, review runs 44114943906 and 44114943687.Fix
reconcile.mjs: a newest checks run that failed only in ci-status with the rate-held note (RATE_HELD_NOTE, from theheld)branch ofpr-require-checks.yml) now reachesstoppedReview. That function now also re-runs an attempt-1 review run whenrateHeldfinds a leg that:Claude reviewstep skipped;x-ratelimit-remaining: 0;Two more conditions apply: no step reviewed or applied the hold, and the pass runs more than 60 s after the latest reset. Before that it logs the wait. The re-run is recorded as
rerunRecordName(id, 2, head), one lane per head per pass. The gate hold, the lane kill switches,MAX_IN_FLIGHTandRECONCILER_ATTEMPT_CAPare unchanged.babysit_review_evidence.py: when attempt 1 succeeded,rerun_bindsaccepts_rate_heldas well as_kill_switch_stopped._rate_heldneeds three things:held: <lane> did not review <head>:notice;babysit_gh.pyreads the annotations of a held leg, which the gate did not fetch before. The lane-run cache format moves tov2(carry-run-cache.mjsfollows), so a cached record without those annotations is not used.Verification
node --test .github/scripts/maintenance-reconcile-lost-runs/reconcile.test.mjs: 209 pass. The new cases use the leg annotations recorded from run 44114943906:reconcile-rerun-201-2-<sha>;node --test .github/scripts/pr-merge/carry-run-cache.test.mjs: 22 pass.python3 -m unittest discoveroverplugins/source-control/skills/babysit-prs/scripts/tests: 4422 tests OK. The newRateHeldRerunTestschecks that:_rate_heldbranch removed, the positive tests fail.Remaining
What is still open on #16642 after this PR:
ci-lanesstatus write at the floor is still open.Related
🤖 Generated with Claude Code