Repository navigation
fix(pr-pipeline): let ci-status wait for a review still running - #12996
Conversation
ci-status's review-lanes step failed red whenever a review was still running, then waited 2 to 6 minutes for rerun-ci-status to re-run the whole job, and its message invited manual re-runs. On a full run the step now polls each waiting lane once a minute for up to 8 minutes, one read per waiting lane, then judges both lanes as before. At the cap it fails as before and says the automatic re-run is coming. rerun-ci-status now leaves alone a ci-status that passed with its review step ending after both lanes finished. Refs: #12447 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
Codex Review SummaryThis 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-security-review reviewed Security review: PR #12996, changes since
|
|
claude-review reviewed Incremental code review: b568cee..9561493 (#12996)I read every hunk of all 4 files changed since the last review:
For context I also read three other places: the pin test around reconcile.test.mjs L2473-L2494, What changed. This push fixes my last advisory finding. When a lane has no run on the head, the error no longer reuses What I checked:
No findings. One small wording point, not counted: the comment at reconcile.mjs L460-L461 still says each error "names the wait". That is no longer true of the missing-run error. Earlier findings: all three of this lane's earlier inline threads were resolved by the owner, each with a stated fix. This push implements the fix the latest thread asked for. 2 earlier rounds had findings; the cap is 3, so the cap did not apply. Other:
|
…ited pass A base-branch edit is a full run, so its review-lanes step waits as other full runs do, by the workflow's own contract-only predicate. A test pins the common case: ci-status already completed a waited pass before rerun-ci-status ran, with no poll. Refs: #12447 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
… reconciler The lost-run reconciler re-runs a ci-status whose only failure is a review still running or missing, by the exact error text. The review step now names its wait in that text, so the reconciler's patterns accept the new tail and the older one, which runs from before the change still carry. Refs: #12447 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
|
The pr-verify verifier failed head What it wrote (25 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
…completed A lane with no run on the head is no longer polled: the push creates its review runs before ci-status starts, so one missing then rarely comes, and waiting held a runner for the full cap (pr-verify's cost note on c1152d2). Each poll now reads only the waiting run by id. Refs: #12447 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
A lane with no run is not waited for, so its error no longer reports the time spent waiting on the other lane. The lost-run reconciler accepts the new tail beside the older ones. Refs: #12447 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
Refs: #12447
Summary
ci-status's review-lanes step failed red whenever a review lane was still running. The step then waited 2 to 6 minutes for
rerun-ci-statusto re-run the whole job, and its message ("ci-status re-runs when the review finishes") led sessions to re-run it by hand. Extra attempts were 24% of runs on 2026-11-02 and 39% on 2026-11-03. The design record is on #12447.Fix
pr-require-checks.yml, review-lanes step:REVIEW_POLL_SECONDS) for up to 480 s (REVIEW_WAIT_SECONDS), ending 120 s before gh_read's deadline, and reads that run by id once a poll. A lane with no run is not waited for: the push creates its review runs before ci-status starts, so one missing then rarely comes, and waiting would hold a runner for nothing.labeled,unlabeled,edited) do not wait.pr-feedback-dispatch.ymlrerun-ci-status: a ci-status that passed with its review-lanes step ending after both lanes finished is left alone. It is read again after a poll, at one jobs read.docs/conventions/pr-pipeline/README.md"Review-lane holds" describes the new order.The merge precondition is unchanged: both lanes must still review this head before a merge. The judgment logic is untouched, a running required check blocks enqueue just as a red one does, and merge_group runs never ran this step.
Runner cost
Verification
scripts/ci-review-lanes.test.sh: 244/244. New cases:scripts/ci-rerun-ci-status.test.sh: 279/279. New cases:scripts/check-affected.sh --base origin/main --no-fetch: 12 passed, 3 skipped.Remaining
Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD