Repository navigation
ci: watchdog re-reads a head whose mergeability is still being computed - #10186
Conversation
…ed (#10136) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Review of record, head 554e138 Angles: correctness and security, read against the diff (a small change to a workflow already reviewed in #10142).
Local: 8 watchdog tests, Generated by Claude Code |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 40 minutes. View limit details
Comment |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the test does not directly assert that exactly two pull reads occurred or that the final disposition was based on dirty.
- Confirm the PR claims a three-read retry policy, but the added test covers only the unknown-to-dirty second-read path, not exhaustion after three unknown responses.
- Confirm persistent unknown mergeability falls back to the pre-existing no-report behavior after three reads, but that branch is not directly tested by the new regression.
Refuted
- The retry loop could make the watchdog wait indefinitely or exceed its job budget.; refuted because: The loop is bounded to three reads and two five-second sleeps, adding at most ten seconds per same-repository merge-ready PR.
- The test introduces a timing or flakiness problem because it sleeps in the workflow.; refuted because: The test creates an executable fake sleep that exits immediately, so the retry scenario is deterministic and does not incur real delays.
- The policy budget increase from 95 to 100 is inconsistent with the source change.; refuted because: The only added workflow command is the looped live read, and the allowlist entry is updated to 100. actionlint passed, while zizmor evidence was unavailable.
- The test duplicates workflow production logic in a way that weakens the architectural boundary.; refuted because: The fake
ghserver models GitHub's observable response sequence; production polling and reporting remain independently exercised through the workflow block. - The retry adds excessive runtime or violates the workflow run-block budget.; refuted because: The PR permits up to three five-second waits and the allowlist budget explicitly changes from 95 to 100; the prior review assessed the delay against the job timeout.
Parked follow-ups
- The workflow waits after the third unknown read even though no further read follows, adding five seconds without changing the outcome.
Requested by Steven · project thread
Summary
mergeable_statetounknownwhenever the base moves, and the first read of a quiet PR isunknown. On a busy main that is nearly every sweep, so the dirty labeled PRs (fix(rust): fence qualified receiver initializers and annotations #8833, fix(infection): a rebound or mutated parameter name does not credit the observed input at the equality boundary (#9197) #9243, fix(typescript): ternary-condition comparison edit needs an input the two comparisons treat differently (#9437) #9783, fix(typescript): recognise chai class throws, anchored assert.match, substring rejects regex and counted removed calls #9667) were skipped by two manual sweeps right after merge.unknownafter that is left for the next interval.unknown, retry seesdirty, one comment and one failing status. Sabotage (a single read) fails it. Run-block budget 95 to 100; changelog fragment.Source-of-truth Links
Governing issue or accepted claim: #10136
Acceptance delta (one sentence): the watchdog reports a conflicting labeled PR even when its mergeability had to be computed on the first read.
Proof
8 watchdog tests, the readiness contract tests and
cargo xtask precommitpass locally on 554e138. Live check after merge: dispatch the watchdog and confirm #8833 and #9243 get the comment and status.Generated by Claude Code