Repository navigation
fix(source-control): read a missing canary workflow as no canary, not unreadable - #14067
Conversation
… unreadable The post-merge check listed post-merge-detect-silent-revert.yml push runs unconditionally. In a repository without that workflow (pr-pipeline-sandbox) the listing answers 404, the verdict was unreadable, and the pr-merge lane refused every unattended merge. A canary run listing that answers 404, with the workflow file absent on the default branch (_default_branch_text), now means the repository has no canary: _listed_runs returns no canary runs (None), _judge verifies a merge without a canary run, and _verifying_runs_unchanged skips the canary listing. A 404 while the file is present, a failed file read, a 403, a 5xx and a capped or partial listing stay unreadable. The full-run reads are unchanged. Closes #14059 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8CrqV9crjukceRMFxz3
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…sted_runs Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015te8CrqV9crjukceRMFxz3
|
claude-security-review reviewed Security review: PR #14067 (head
|
|
claude-review reviewed claude-review incremental review of Code review: no findingsWhat changed. One line, in What I checked by reading the code:
I ran no type checker or tests, because this lane has no shell. Scope. This is a blocking-only review, because the lane already reviewed an earlier head. There were no earlier inline findings to carry forward. The PR's trusted-path file ( Spend. None added. I found no embedded instructions in the inputs. |
|
PR body contract — issue linkage This PR body does not yet satisfy the issue-linkage contract:
Edit the body and this comment updates itself on the next run. |
Summary
The post-merge check listed
post-merge-detect-silent-revert.ymlpush runs unconditionally. In a repository without that workflow (pr-pipeline-sandbox), the listing answers 404 and the verdict isunreadable. As a result the pr-merge lane refused every unattended merge there (run 42448013205). This PR implements option 1 from the issue, which the owner approved.Closes #14059
Change (
babysit_postmerge.py)_canary_absent: a failed canary run listing means "this repository has no canary" only when both of these hold:.github/workflows/post-merge-detect-silent-revert.ymlis absent on the default branch. This is checked with the existing_default_branch_text, which maps a 404 on a file read toNone._listed_runsreturnsNonefor the canary runs in that case._judgehandlescanary_runs is Nonethis way:canary-run-pending;_verifying_runs_unchangedskips the canary listing in that case.FULL_RUN_WORKFLOWreads are unchanged.Why the 404 is confirmed with a file read
Why
_judgechanged tooTreating the 404 as readable but leaving
canary-run-pendingin place would leave every lane merge unverified forever. Unverified merges count againstmerge.max-in-flight(in_flight), so after one merge the lane would block again. "No canary signal" therefore means no canary run is required.Tests
test_babysit_postmerge.pyNoCanaryWorkflow:canary-run-pending;--remediate, a canary 404 makes no writes.test_babysit_lane_room.pyPendingRunsUnchanged(the_verifying_runs_unchangedpath):unreadable: post-merge-detect-silent-revert.yml push runs created >=...: gh: Not Found (HTTP 404).python3 -m unittest discoveroverplugins/source-control/skills/babysit-prs/scripts/tests: 4193 tests, OK (17 skipped).🤖 Generated with Claude Code
https://claude.ai/code/session_015te8CrqV9crjukceRMFxz3