Repository navigation
fix(pr-pipeline): stop counting stale verifier notes as untaken threads - #10727
Conversation
The address-feedback select step escalated feedback-untaken-threads when the only unresolved threads were pr-verify fail notes from an older head. Its failing status failed ci-status, so pr-verify never ran, and no pass could arrive to resolve those notes through the pass-only round. Leave the notes that staleVerifyNotes returns out of the untaken-thread check, and report the stop resolved when nothing else is open, so report-stop-status clears the status. The notes stay unresolved, so the merge still waits on them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e-note-not-untaken
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-review reviewed No findings. I read the full diff, the PR context, and the surrounding code in
No hold: the change has no billing effect and no security impact. |
|
claude-security-review reviewed No security issues found. critical-findings: 0 I read the whole diff and the code it depends on. What changed. In Checks against the trust-control and merge-hold lenses
|
Post-merge mutation testingKilled 0, survived 0, timeout 0, no coverage 0, invalid 0, not run 7.
The run's summary has the full report. |
No related issue: lane deadlock found on PR 10583
Summary
The pr-unblock address-feedback lane could deadlock a pull request. When the only unresolved threads were pr-verify fail notes from an older head, its select step stopped on
feedback-untaken-threadsand set a failingpr-unblock/address-feedbackstatus. That status failsci-status, sopr-require-checksconcludes failure, and pr-verify, which runs only after that workflow succeeds (.github/workflows/pr-verify.yml), never runs. The pass that would resolve the stale notes (the pass-only round inaddress-feedback.mjsmain) could therefore never arrive. Seen on #10583.Fix
select, the untaken-thread check now leaves out the threadsstaleVerifyNotes(threads, headSha)returns. Everything else is unchanged:keepThreads, the pass-only round, and how other threads are judged.selectskipsnot-applicablewithresolved: true. Basis:report-stop-statusclears a failing status only whenstop-resolvedis true (.github/workflows/pr-unblock.yml, thereport-stop-statusjob condition), andci-statusfails while the newestpr-unblock/*status on the head is failure (pr-require-checks.yml). Returningresolved: falsewould leave the existing failure on a head that already has one, so the deadlock would continue.mainruleset setsrequired_review_thread_resolution: true.Verification
address-feedback.test.mjs. "stale verifier notes alone are no untaken thread" failed before the fix (escalatewhereskip/not-applicable/truewas expected) and passes after it. The two guard tests passed before and after, and each one fails against a mutant that over-widens the exclusion (every thread excluded when any note is stale; every fail note treated as stale).node --testpasses on every.github/scripts/pr-unblock/*.test.mjsand on.github/scripts/pr-merge/merge-holds.test.mjs(address-feedback: 140 pass, 0 fail).Related
N/A
🤖 Generated with Claude Code