test(review): auto_review round-trip and precedence matrix - #3683
Conversation
Consolidated pure tests for review.auto_review parse/serialize round-trip, malformed-config warnings, evaluateAutoReviewSkipReason precedence, and decideReviewEligibility alignment. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3683 +/- ##
=======================================
Coverage 93.34% 93.34%
=======================================
Files 315 315
Lines 32129 32129
Branches 11780 11780
=======================================
Hits 29991 29991
Misses 1507 1507
Partials 631 631 🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-06 03:51:45 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 5 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Closes #2071
Summary
Add consolidated
test/unit/auto-review-config-matrix.test.tscovering the #2071 deliverables:reviewConfigToJsonomit-when-default + per-field / all-knobs round-tripauto_reviewconfig (non-mapping, non-list globs, negative ints) ⇒ warn + defaultsevaluateAutoReviewSkipReasonpredicate-precedence matrix (draft > author > title > base > commit threshold)decideReviewEligibilityalignment withignore_authors(incl.skipReason: nullon eligible paths)Test-only; no
src/changes.Scope
CONTRIBUTING.md.Validation
git diff --checknpm run typechecknpx vitest run test/unit/auto-review-config-matrix.test.ts(21/21 pass)Safety
UI Evidence
N/A — test-only.
Notes
Locks #1954
review.auto_reviewknob behavior in one matrix file instead of scattering assertions acrossfocus-manifest.test.ts. Prior closed #3682 retargeted here because #2096 is closed and no longer satisfies the linked-issue gate.Made with Cursor