test: add pre-push gate regression coverage#67
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 (3)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis PR adds a comprehensive Vitest-based regression test suite for the pre-push hook that exercises the hook with stubbed commands, verifies gate failure scenarios (Gates 1–8), and confirms quick mode skips Gate 8. The hook now explicitly reports test failures. Documentation is updated to reflect these changes. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
Release Preflight
If you tag this commit as |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@ROADMAP.md`:
- Line 4: The ROADMAP has inconsistent active-item counts: the header line
containing "**Last reconciled:** ... 25 active standalone items" must be
reconciled with the later sentence that currently reads "32 active items";
locate the paragraph containing the "32 active items" phrase (search for "active
items" or that exact text) and update it to match the reconciled count (change
"32" to "25" or otherwise adjust the number to the true current count), then
scan the document for any other occurrences of "active items" or "active
standalone items" and make all counts consistent.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: b9aeb944-9867-4ab2-a2c5-70fba61c2e2f
📒 Files selected for processing (5)
CHANGELOG.mdROADMAP.mddocs/ROADMAP/COMPLETED.mdscripts/hooks/pre-pushtest/unit/scripts/pre-push-hook.test.js
|
@coderabbitai review please 🥕 |
|
✅ Actions performedReview triggered.
|
Release Preflight
If you tag this commit as |
Summary
scripts/hooks/pre-pushso the checked-in hook header, quick-mode messaging, and Gate 1-8 failure labels cannot drift silentlyROADMAP.md,docs/ROADMAP/COMPLETED.md, andCHANGELOG.mdsoB168moves from active to done in the same sliceTest plan
npx vitest run test/unit/scripts/pre-push-hook.test.jsnpx markdownlint ROADMAP.md CHANGELOG.md docs/ROADMAP/COMPLETED.mdgit push -u origin feature/b168-pre-push-gate-regression(full IRONCLAD pre-push firewall; 283 files / 4989 tests)Summary by CodeRabbit
Tests
Chores
Documentation