fix: trim semantic review input for broad PRs - #1505
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (5)
📝 WalkthroughWalkthroughThe semantic quality gate's input view construction is refactored to select only "review candidate" changed facts using predicate-based filtering instead of including all changed facts. ChangesSemantic view review-candidate refactor
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1505 +/- ##
=======================================
Coverage 73.72% 73.72%
=======================================
Files 780 780
Lines 74140 74170 +30
=======================================
+ Hits 54659 54683 +24
- Misses 15420 15425 +5
- Partials 4061 4062 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@c8ee0a71de058ae3c3c93f391ed9dc8cc7dbb13a🧩 Skill updatenpx skills add larksuite/cli#fix/semantic-review-input-projection -y -g |
585271e to
e96c3a0
Compare
e96c3a0 to
c8ee0a7
Compare
Summary
Fix semantic review degradation on broad but small PRs by sending only reviewable semantic candidates to the review prompt, instead of passing verbose changed facts such as full output schemas. This keeps the request size bounded while preserving deterministic gate coverage and semantic review behavior.
Changes
default_outputfacts and verbose output field lists into semantic review.Test Plan
go test ./internal/qualitygate/semantic ./internal/qualitygate/cmd/semantic-review -count=1go test ./internal/qualitygate/... -count=1git diff --checkRelated Issues
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests