Skip to content

Narrow pr_review.py wait's Exit 44 to Required Checks - #2727

Merged
ptr727 merged 3 commits into
developfrom
feature/auto-2724
Oct 10, 2026
Merged

ptr727 merged 3 commits into
developfrom
feature/auto-2724

Conversation

@ptr727

@ptr727 ptr727 commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Summary

scripts/pr_review.py wait took exit 44 (status=CHECKS_NOT_MERGEABLE) on any stuck check while the merge read BLOCKED. A merge blocked by an unresolved thread or a missing approval, carrying a failed check nothing requires, therefore still exited 44. The full query already reads isRequired on every rollup member, so the 44 arm now counts only a stuck check marked required, and still requires BLOCKED.

  • The 44 line names each required stuck check, since the digest block above it prints optional stuck checks too.
  • The module docstring, the code comment above the arm, and the scripts/README.md paragraphs state the isRequired reading instead of the call-cost rationale.
  • A test pins that a stuck optional check on a BLOCKED merge exits 0 and a stuck required one exits 44. Another pins that the 44 line names only the required check. The CLEAN-merge test is renamed to the BLOCKED half of the condition it pins.

The change rewrites the code comment above the 44 arm, which the issue asks for, so it carries the comments label.

Closes on promotion: #2724

🤖 Generated with Claude Code

ptr727 and others added 3 commits October 10, 2026 05:12
wait took exit 44 on any stuck check while the merge read BLOCKED, so a
merge blocked by a thread or a missing approval and carrying a failed
check nothing requires still exited 44. The full query already reads
isRequired on every rollup member, so the 44 arm now counts only a stuck
check marked required. The README paragraph and the comment above the
arm state that reading instead of the call-cost rationale, and a test
pins both the optional and the required case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The block above the 44 line prints every stuck check, optional ones
included, so the line now names the required ones. The CLEAN-merge test
is renamed to the half of the condition it pins, and the README
sentences this change wrote are split to the sentence-length bound.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The comment no longer claims a second cause always exists, and the message reads for one required stuck check or several.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 10, 2026 12:17
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Oct 10, 2026
@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 32763968-6636-442b-8210-b4f125e1fed8

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved issues were identified, and the behavior is covered by tests and documentation.

0 open findings

What changed in this PR

Narrows pr_review.py wait exit 44 to blocked merges with required stuck checks.

Changes:

  • Filters exit 44 using isRequired.
  • Reports only required stuck checks.
  • Updates documentation and regression tests.
File Description
tests/​test_pr_review.py Adds coverage for required and optional checks.
scripts/​README.md Documents the refined behavior.
scripts/​pr_review.py Updates exit logic and messaging.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@5bfab68). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #2727   +/-   ##
==========================================
  Coverage           ?   59.80%           
==========================================
  Files              ?       16           
  Lines              ?     8362           
  Branches           ?        0           
==========================================
  Hits               ?     5001           
  Misses             ?     3361           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 59.80% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727
ptr727 merged commit e62aea1 into develop Oct 10, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/auto-2724 branch October 10, 2026 12:23
ptr727 added a commit that referenced this pull request Oct 10, 2026
… Corrections to Main (#2740)

## Summary

Promotes 20 changes from `develop` to `main`:

- #2737: Flag a Lone Semicolon After an Explanatory Colon in the Prose
Gate
- #2734: Share pr_review.py wait's Liveness Readings and Open the Held
Poll on Its Snapshot
- #2732: Share One Bounded Backoff Loop Between pr_review.py wait's Two
Polls
- #2729: Document pr_review.py wait's Immediate 44 and check_nodes's
Node Keys
- #2727: Narrow pr_review.py wait's Exit 44 to Required Checks
- #2722: Poll an Attested Head's Checks in pr_review.py wait
- #2720: Name the Command That Enumerates Open Feature Pull Requests in
backlog-burndown
- #2718: Point the Skills Refresh Cadence at host-setup.md
- #2716: Fall Back to os.defpath for PATH in Two Test Harnesses
- #2714: State the Pip Form's Root-Config Type-Check Command in
python-codestyle
- #2712: State the Build Profile's CI Type Check as the Validator Runs
It
- #2709: Bring the Fleet-Map workflow-ci-contract Entry and G9 Gap Up to
the Skill Description
- #2707: Bring the Line-Endings Reference and a Test Docstring to the
Corrected Wording
- #2705: Drop the Stale Utilities driftNote From the Registry
- #2703: Remove the Inert SC2016 Directives in configure.sh and Correct
the shell-codestyle Claim
- #2701: Report Whether the Fleet Skills Plugin Is Installed and Enabled
in the Live Channel
- #2699: Align the Audit Report Template Dimensions With AUDIT.md
Section 4
- #2697: Harden the Source-Pinning Assertions in test_pr_review.py
- #2695: Name the Off-Grammar --branch Outcome in AUDIT.md
- #2693: Count Every Unresolved Review Thread in pr_review.py

Closes #1396
Closes #2731
Closes #2723
Closes #2725
Closes #2724
Closes #2685
Closes #1308
Closes #2191
Closes #1862
Closes #2711
Closes #2025
Closes #1243
Closes #1237
Closes #1115
Closes #1156
Closes #1757
Closes #1593
Closes #1732
Closes #1509
Closes #1404

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants