Skip to content

Promote Develop to Main - #897

Merged
ptr727 merged 1 commit into
mainfrom
develop
Aug 21, 2026
Merged

ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Aug 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Promote Copilot review-status recognition for the Needs a closer look verdict shape.

Included Work

Tracking

Related to #895.

Summary by CodeRabbit

  • Bug Fixes

    • Updated review validation to recognize the “Needs a closer look” verdict.
    • Review results using this verdict are now accepted as complete coverage.
  • Tests

    • Added coverage for needs-attention review results.
    • Updated validation checks to include the expanded set of supported review headings.

Recognize the Copilot `Needs a closer look` verdict when the review
includes the stable fleet marker and nested details. Add regression
coverage for shape recognition, full coverage, and the status exit code.

Related to #895.
Copilot AI lite review requested due to automatic review settings August 21, 2026 20:25
@coderabbitai

coderabbitai Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9f24704c-dd18-47c8-a4f5-5dd68f6a9550

📥 Commits

Reviewing files that changed from the base of the PR and between 0d0e511 and dc0564c.

📒 Files selected for processing (2)
  • scripts/pr_review.py
  • scripts/tests/test_pr_review.py

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The reviewer-output validator now recognizes ### Needs a closer look as a vetted heading. Tests add a matching review fixture and verify full coverage, heading inventory, nested details, and successful CLI exit behavior.

Changes

Reviewer heading validation

Layer / File(s) Summary
Recognize the new reviewer heading
scripts/pr_review.py
The vetted heading documentation and VETTED_HEADINGS list now include ### Needs a closer look.
Validate needs-attention coverage
scripts/tests/test_pr_review.py
Tests add a matching fixture, update the heading inventory to nine, validate full coverage, and include the fixture in successful CLI exit checks.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to dc056

This PR makes a small, localized update to recognize the Needs a closer look review verdict, with accompanying test changes. No actionable merge-blocking risk remains at the current head.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the stated primary objective to promote develop to main.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 2 files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch develop

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

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Recognize Copilot “Needs a closer look” review verdict

🐞 Bug fix 🧪 Tests 🕐 20-40 Minutes

Grey Divider

AI Description

• Add “Needs a closer look” to the vetted Copilot verdict heading inventory.
• Add regression fixtures/tests ensuring full coverage parsing and shape recognition.
• Ensure status continues to exit 0 for valid full-review bodies including nested details.
Diagram

graph TD
  GH["GitHub PR reviews"] --> PR["scripts/pr_review.py"] --> INV["Verdict inventory"] --> OK{"Coverage/shape ok?"} --> OUT["status output / exit code"]
  TST["scripts/tests/test_pr_review.py"] --> PR
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Loosen verdict parsing (accept any “### …” heading)
  • ➕ No inventory maintenance when Copilot introduces new verdict headings
  • ➕ Reduces risk of false failures due to wording drift
  • ➖ Loses the safety property that the script fails loudly on unexpected shapes
  • ➖ Increases chance of silently mis-parsing bodies that look similar but differ materially
2. Key recognition primarily off the stable fleet marker
  • ➕ More robust to heading text/emoji changes
  • ➕ Aligns parsing with the intended stable signal for coverage/findings
  • ➖ Doesn’t help for bodies missing or partially rendering the marker
  • ➖ Still needs some heading/section parsing to validate nested details sections

Recommendation: Keep the explicit vetted-inventory approach and extend it for “Needs a closer look”, as done here. This preserves the script’s primary value: detecting previously unseen Copilot output shapes early, while the added regression test ensures the specific nested-details + stable-marker variant remains supported.

Files changed (2) +25 / -3

Bug fix (1) +2 / -1
pr_review.pyWhitelist “Needs a closer look” Copilot verdict heading +2/-1

Whitelist “Needs a closer look” Copilot verdict heading

• Updates the vetted heading inventory to include the “Needs a closer look” verdict. Adjusts the documented heading count to reflect the expanded recognized shape set.

scripts/pr_review.py

Tests (1) +23 / -2
test_pr_review.pyAdd closer-look fixture and regression coverage for shape + status +23/-2

Add closer-look fixture and regression coverage for shape + status

• Introduces a representative “Needs a closer look” review body including the stable fleet marker and nested details. Adds a regression test ensuring the heading is recognized and that digest/status report full coverage with shapes OK, and includes the new body in the status exit-code success set.

scripts/tests/test_pr_review.py

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can tweak Display preferences with a live preview to see your comment before it ships

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

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

The change is narrowly scoped to vetted-shape recognition and is covered by targeted regression tests exercising the new heading form end-to-end.

Pull request overview

This PR updates the scripts/pr_review.py review-shape inventory so status/wait recognize Copilot reviews whose top-level verdict heading is Needs a closer look, preventing them from being classified as UNRECOGNIZED_REVIEWER_OUTPUT when the stable <!-- fleet-review: ... --> marker and nested <details> content are present.

Changes:

  • Add ### Needs a closer look to the vetted heading inventory in scripts/pr_review.py.
  • Add a regression fixture and tests ensuring the “Needs a closer look” heading + marker + nested details are accepted and still yield coverage=full / shapes=ok.
  • Update the measured-inventory documentation text to reflect the additional vetted heading.
File summaries
File Description
scripts/pr_review.py Extends VETTED_HEADINGS to include Needs a closer look, keeping shape recognition aligned with observed Copilot output.
scripts/tests/test_pr_review.py Adds a closer_look() fixture and regression tests covering the new heading shape and ensuring the status gate still closes on full coverage.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ptr727
ptr727 merged commit 5e1aef5 into main Aug 21, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants