Repository navigation
ci(tests): run Vitest on base as well as head - #655
Conversation
|
Deployment failed for project thisonetimeonacidcom with the following error: Learn More: https://vercel.com/lightspeedwp?upgradeToPro=build-rate-limit |
|
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 53 minutes. View limit details
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. 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. |
Drift Detection ✅✅ No drift detected. Configuration is canonical. Canonical governance files are correctly centralized in lightspeedwp/.github. |
|
✅ Workflow Syntax Validation All workflows in Result: All workflows passed validation |
✅ PR Template RoutingBranch prefix: This PR's template has been automatically routed based on the canonical branching strategy defined in lightspeedwp/.github. 📋 Template routing rules:
✨ Automatic routing ensures all PRs follow the organization-wide governance structure. |
📋 Changelog Quality Validation
Status✅ Validation PASSED - No new failures introduced by this PR. No action required. |
|
Queue requested — the merge queue status continues in this comment ↓. |
|
All GitHub checks pass on Generated by Claude Code |
The comparison job ran Jest on the PR base and Vitest on the head. Jest's testMatch only covers *.test.js, so TypeScript suites never ran on base and every failure in them was reported as new on each PR (e.g. 66 "new" failures on #652 that already existed on main). main now passes the full Vitest suite (1060 passed, 0 failed locally), so the Jest baseline the cutover comment relied on is no longer needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CADHZdpaiuKYHLz2mX9por
dc73499 to
ffb44b5
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Drift Detection ✅✅ No drift detected. Configuration is canonical. Canonical governance files are correctly centralized in lightspeedwp/.github. |
|
✅ Workflow Syntax Validation All workflows in Result: All workflows passed validation |
|
@Mergifyio queue |
Drift Detection ✅✅ No drift detected. Configuration is canonical. Canonical governance files are correctly centralized in lightspeedwp/.github. |
|
✅ Workflow Syntax Validation All workflows in Result: All workflows passed validation |
🛑 Queue command cancelledQueue requested — the merge queue status continues in this comment ↓. |
Drift Detection ✅✅ No drift detected. Configuration is canonical. Canonical governance files are correctly centralized in lightspeedwp/.github. |
|
✅ Workflow Syntax Validation All workflows in Result: All workflows passed validation |
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
|
@Mergifyio queue |
✅ Merged into
|
Summary
The No new test failures job compares test results on the PR head against the PR base, but it ran a different runner on each side:
npx jest --config jest.config.js. Jest'stestMatchonly covers**/tests/**/*.test.jsand**/scripts/**/*.test.js, so no TypeScript suite ever ran on base.npx vitest run, which runs every suite.Any failure in a TypeScript suite was therefore reported as "new" on every PR, whether or not the PR touched it. On lightspeedwp/ThisOneTimeOnAcidCom#652 it reported 66 new failures in
tests/session/andtests/performance/, all of which already failed onmainat the time.The workflow comment said base had to stay on Jest because it still used
jest.mock(). That no longer holds:main(815a3bb) passes the full Vitest suite.Changes
.github/workflows/tests.yml: thevitestjob runsnpx vitest runfor bothheadandbase. TheTARGETbranch in the script and the outdated cutover comment are removed. The report file name (jest-report.json), the artifact names and the comparison step are unchanged, soscripts/validation/compare-jest-failures.cjsreads the same JSON shape on both sides, as it already did for head.CHANGELOG.md: entry under[Unreleased]→Changed.Testing
npx vitest run --reporter=jsononmain(815a3bb): 413 suites, 1060 passed, 0 failed. That's the report this change makes the base side produce.Notes
jest.config.jsis untouched. Removing Jest entirely is a separate clean-up.npm run test:unitalready uses Vitest, so local and CI runs now agree.Generated by Claude Code