Repository navigation
Read Copilot's Emoji-Prefixed Review Effort Line in pr_review.py - #2579
Conversation
EFFORT_LINE now accepts a run of non-ASCII characters before the bold label, so a revised overview body opening that line on an emoji reports its effort level instead of effort=unknown. The run excludes whitespace so it cannot overlap the whitespace matched either side of it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The revised overview body states its effort line after its last collapsed section, so overview_v2_revised now takes an effort line and the emoji test runs through it, and its docstring no longer says the revision drops that line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe effort-line parser now accepts labels preceded by an optional non-ASCII, non-whitespace marker and whitespace. The revised-overview fixture and tests cover prefixed explicit and default effort labels, recognized overview shape, and prose that mentions the label. ChangesEffort label parsing
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Merge Risk: ⚪ Minimal · up to The change addresses emoji-prefixed effort labels and adds coverage for the revised overview format. No actionable merge-blocking risk is evident; merge after normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 review issues remain.
0 open findings
What changed in this PR
Updates review-effort parsing to recognize emoji-prefixed Copilot overview lines while preserving existing behavior.
Changes:
- Expands effort-line matching for non-ASCII prefixes.
- Adds fixtures and regression tests for explicit, inherited, spaced, unspaced, and prose cases.
| File | Summary |
|---|---|
tests/test_pr_review.py |
Adds emoji-prefixed effort fixtures and regression coverage. |
scripts/pr_review.py |
Expands effort-line parsing. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2579 +/- ##
========================================
Coverage 58.85% 58.85%
========================================
Files 16 16
Lines 8181 8181
========================================
Hits 4815 4815
Misses 3366 3366
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:
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
…Line (#2580) ## Summary Promotes two changes from `develop`. - [#2579](#2579): `EFFORT_LINE` in `scripts/pr_review.py` accepts a run of non-ASCII characters before `**Review effort`, so Copilot's revised overview body, which opens that line on an emoji, reports its effort level instead of `effort=unknown`. The run excludes whitespace so the pattern stays linear. `overview_v2_revised` takes an optional effort line, and a new test builds the emoji line from an escape and asserts the explicit and inherited levels, the digest field, and that an ASCII word before the label still reads as prose. - [#2578](#2578), merged to `develop` by another lane, rides along. The Windows `dotnet` report row now reads `dotnet --list-sdks` and names, in a note, the newest SDK above the managed `Microsoft.DotNet.SDK.10` package's installed version, since Visual Studio and other winget packages install into the same `dotnet` root. The status still compares the managed package alone, as that is the copy `-Upgrade` acts on. `host-setup/windows/README.md` documents the note, and `tests/test_install_tools.py` covers it. Fixes #2487 Fixes #694 ## Verification - #2579 took two recorded local strict-review passes. The first found that the fixture used the earlier v2 shape, which the second commit fixed, and the second raised nothing. - #2578's own verification, local strict-review rounds, and native Windows run are in its pull request body. - Copilot's round on #2579 recommended approval with no open finding, and the digest read `effort=lite effort_source=explicit` from that round's own emoji-prefixed line. CodeRabbit, prompted once, generated no actionable comment. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
EFFORT_LINEinscripts/pr_review.pynow accepts a run of non-ASCII characters before**Review effort. Copilot's revised overview body opens that line on an emoji, sostatusandwaitprintedeffort=unknown effort_source=unknownover a body stating the level outright. The run excludes whitespace, so it cannot overlap the\s*either side of it and the pattern stays linear.An ASCII word before the label still reads as prose about the line rather than the line itself.
Tests
overview_v2_revisedtakes an optionaleffortline, placed after its last collapsed section where the revision states it, and its docstring no longer says the revision drops that line. Existing callers get the same body as before.test_the_effort_line_reads_when_it_opens_on_an_emojibuilds the emoji line from an escape, so the fixture stays ASCII. It assertslite/explicitwith and without a space after the emoji,max/defaultfor an inherited level, no unrecognized shape,effort=lite effort_source=explicitin the digest, andunknownfor an ASCII word before the label. With the regex change reverted, three of its assertions fail.The
commentslabel is on this pull request for the one comment line stating why the emoji run excludes whitespace.Local review
Two local strict-review passes ran. The first raised one finding, that the fixture used the earlier v2 shape and the revised fixture's docstring still said the effort line was dropped, which the second commit fixes. The second pass, over the current head, raised nothing.
Closes on promotion: #2487
🤖 Generated with Claude Code
Summary by CodeRabbit