Repository navigation
Block a Cancelled Compile Leg and Confine Inline Lint Matches to the Column - #264
Conversation
|
A recorded local strict-review pass covers head |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 49 minutes. View limit details
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #264 +/- ##
===========================================
- Coverage 84.17% 84.12% -0.06%
===========================================
Files 3 3
Lines 613 611 -2
===========================================
- Hits 516 514 -2
Misses 97 97
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:
|
There was a problem hiding this comment.
🟢 Approval recommended
All reviewed changes have no unresolved findings and the supplied assessments unanimously support approval.
No open issues 🎉
What changed in this PR
This pull request hardens compile-lint diagnostic attribution and prevents cancelled template compile jobs from satisfying the required workflow check.
Changes:
- Require
template-compile-testto conclude withsuccessorskipped. - Restrict inline diagnostic matches to the expression span containing the diagnostic column.
- Add regression coverage for multiple inline expressions on one generated line.
| File | Description |
|---|---|
tools/compile-lint/src/compile_lint/lint.py |
Restricts inline findings to the matching expression span. |
tests/compile_lint/test_lint.py |
Verifies diagnostics are not attributed to unrelated inline expressions. |
.github/workflows/test-pull-request.yml |
Blocks cancelled or otherwise unsuccessful compile-test results. |
Review effort: Lite
Fixes two findings the hosted review raised on the develop -> main promotion pull request.
check-workflow-statusblocks anytemplate-compile-testresult other thansuccessorskipped. A cancelled leg, which the new lint step can produce, otherwise passed the required check.args:entry's. A warning elsewhere on a line that also carries a lambda's expression is no longer attributed to that lambda. The new test fails without the fix.Verified against a fresh CoreS3 build: each inlined line still lands on its YAML entry, and the same lines at a column outside the expression are set aside. Unit tests, ruff, pyright, actionlint and the prose gate pass.
🤖 Generated with Claude Code