Repository navigation
Name What Watches the Checks When wait Returns 50 at Once - #3262
Conversation
Nothing reads an answer to an uncounted-verdict headline, so wait returns 50 within a second on every call on that head. Where a check on the head can still move its merge, wait now says so and names a bounded gh pr checks --watch to watch it with, so the quick return no longer reads as a terminal answer. Refs #3246 Co-Authored-By: Claude Opus 5.5 <[email protected]>
held_checks_open decides whether a held wait polls on, so it also fired on a DIRTY, BEHIND, or UNKNOWN merge and on an empty rollup, and it printed the rules-read note under a wait that holds nothing. A check still settling is the only thing a watch waits for, so the note now reads checks_settling, and cases with every check passed, stuck, or absent pin that no watch is named. Refs #3246 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved issues were identified.
No open issues 🎉
What changed in this PR
Updates pr_review.py wait to explain exit 50 when checks are still settling.
Changes:
- Adds bounded
gh pr checks --watchguidance. - Documents the behavior.
- Adds coverage for running, completed, stuck, and absent checks.
| File | Description |
|---|---|
tests/test_pr_review.py |
Tests watch guidance and exclusions. |
scripts/README.md |
Documents exit-50 behavior. |
scripts/pr_review.py |
Prints watch guidance for settling checks. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3262 +/- ##
==========================================
Coverage ? 65.42%
==========================================
Files ? 17
Lines ? 9989
Branches ? 0
==========================================
Hits ? 6535
Misses ? 3454
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…and File-Naming Check to Main (#3266) ## Summary Promotes eight pull requests from develop. Three are `pr_review.py` reader fixes from this round, one answers this promotion's first review, and four are from other sessions. - #3261: each heading, thematic-break, and fence shape in `pr_review.py` has one primitive that every reader composes from. A no-break space after a heading's hashes no longer opens a heading, and a tab-spaced thematic break or setext underline closes its block. - #3262: when `wait` returns `50` at once on an uncounted-verdict head while a check has not concluded, it names a bounded `gh pr checks --watch` to watch the checks with. - #3264: `CODE_SPAN` reads code spans, raw inline HTML, and autolinks left to right, as GitHub binds them, so a backtick inside an earlier HTML comment, tag, or autolink opens no span. A line of only blockquote markers now ends a paragraph. - #3256: `pr_review.py wait` reads a superseded run's failed aggregator as superseded rather than as a verdict on the head. - #3258: a `driftNote` can exempt a tool-fixed script name from the file-naming check. - #3253: an audit check for file naming, including secret-file stem casing. - #3249: the Linux quick start names the no-sudo Debian case. - #3267: splits the over-long and two-instruction sentences that this promotion's first Copilot round found in #3249's paragraph. Closes #3241 Closes #3246 Closes #3235 Closes #3252 Closes #3254 Closes #3141 Closes #2551 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
pr_review.py waitreturns exit50within a second on every call on a head whose round opens on an uncounted non-clean verdict, since nothing reads an answer to that headline (#3246). So once the headline is answered,waitcannot be used to wait for checks still running on that head.waitnow prints a note after the50status. The note names a boundedtimeout 1800 gh pr checks <n> --repo <owner>/<repo> --watchto watch the checks with, thenstatus.checks_settling, which leaves out a stuck check and reads no branch rules. The local review ruled outheld_checks_open, which is about whether a held wait polls on: it fired on a DIRTY, BEHIND, or UNKNOWN merge and on an empty rollup, and it printed an unrelated rules-read note.scripts/README.mdexit-50paragraph says the same.Tests cover a running check, which names the watch and fails with the change reverted. They also cover every check passed, a stuck check, and no checks, each naming no watch, and both
held_checks_openand amergeStateStatus != "CLEAN"gate fail them.Refs #3246
🤖 Generated with Claude Code