Repository navigation
ci: watchdog retires a stale merge-ready conflict status - #10219
Conversation
…el is removed or the PR is a draft (#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! |
|
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 1 minute. View limit details
Comment |
|
Independent exact-head review: REPAIR_REQUIRED for [P2] Revalidate the PR's current request state before retiring its conflict failure — Observed isolated mock: initial list is same-repo/unlabeled, current PR fixture is same head/non-draft/labeled/dirty, statuses returns the bot conflict failure. Expected zero success writes; observed one success write, with no Passed, directly observed
Binding and limits
Ownership and dependency order This head does not contain #10209: these are sibling changes to the same workflow, with intended order #10209 then #10219, as the PR body states. Reuse the delayed-active-run counterexample as a composition discriminator rather than rerunning the old proof. Current read found #10209 has advanced from reviewed Owner's next action: repair #10219's stale-admission retirement in this candidate; obtain the separate current-head disposition for #10209; then reconcile/rebase #10219 after the accepted prerequisite and review the resulting combined tree against both race cases. No composed-tree or merge clearance is claimed. |
The list snapshot can be stale: re-read the PR and retire only while the same head still makes no merge-ready request. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
|
Repaired the P2 in 056b946. Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
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 1c42116 (main 2d1d629 merged in; #10209 has landed). Angles: (1) correctness of retirement (only the actions bot's newest Findings and resolutions: Steven's P2 (stale snapshot could overwrite a fresh failure with success) is repaired in 056b946 with the re-read guard and a regression test; Graphite's split CI.md sentence is repaired and its thread resolved; the merge with #10209 kept both behaviors and the audit-row outcome handling from #10209. A change between the final re-read and the status write is not excluded; no atomicity is claimed. Bot output from Gemini, CodeRabbit and the github-actions advisory was quota or advisory only and is not counted as review. Proof: Generated by Claude Code |
…ict status (#10136) Lookup errors in retire_stale now report 'retire failed' instead of reading as no failure; a failure on a head shared with a merge-ready PR is kept. Clarifies the CI.md skip wording. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the new shared-head guard depends on the initial open-PR list being complete; pagination or filtering gaps could permit retirement despite another request on the same SHA.
- Confirm the shared-head guard depends on the initial PR list being complete and on its draft/label fields being current, so a concurrently added labeled PR using the same SHA may not be visible before retirement.
Refuted
- The retirement helper needs to be generalized into a shared policy module before this focused fix.; refuted because: Only one workflow consumes the helper, the behavior is deliberately narrow, and extracting policy across workflows would enlarge the change and introduce broader coupling without reducing the current defect's scope.
Parked follow-ups
- A renewed merge-ready request after the final PR read can still be overwritten by the retirement POST; the next sweep restores the failure.
- The workflow-specific helper remains embedded in the scheduled step rather than a shared script, keeping the change local but duplicating status-policy knowledge already held by the label-time notice workflow.
Evidence gaps
- The changed workflow behavior is not fully proven in the available packet because cargo-test is late and ripr failed.
|
Review of record update, head c771cb9 (supersedes the 1c42116 record for the changed behavior). Changed since the earlier record: Proof on this exact head: Generated by Claude Code |
Requested by Steven · project thread
Summary
merge-ready conflictstatus posted by this repository's actions bot stayed red on a head after the author removedmerge-readyor converted the PR to a draft, because the sweep only looked at labeled, non-draft PRs. For a same-repo draft or unlabeled PR whose head still carries that bot failure, the sweep now posts a success status ("merge-ready is not requested on this PR").Source-of-truth Links
Governing issue or accepted claim: #10136 (leftover, follow-up requested in the project thread)
Acceptance delta (one sentence): a removed label or draft conversion no longer leaves a stale failing
merge-ready conflictstatus.Proof
10 watchdog tests and
cargo xtask precommitpass locally on this head before the merge with main. Live check after merge: dispatch the watchdog and read a head's statuses.Generated by Claude Code