Skip to content

ci(tests): run Vitest on base as well as head - #655

Merged
mergify[bot] merged 3 commits into
mainfrom
ci/tests-vitest-base-comparison
Nov 21, 2026
Merged

mergify[bot] merged 3 commits into
mainfrom
ci/tests-vitest-base-comparison

Conversation

@ashleyshaw

Copy link
Copy Markdown
Member

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:

  • Base: npx jest --config jest.config.js. Jest's testMatch only covers **/tests/**/*.test.js and **/scripts/**/*.test.js, so no TypeScript suite ever ran on base.
  • Head: 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/ and tests/performance/, all of which already failed on main at 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: the vitest job runs npx vitest run for both head and base. The TARGET branch 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, so scripts/validation/compare-jest-failures.cjs reads the same JSON shape on both sides, as it already did for head.
  • CHANGELOG.md: entry under [Unreleased] → Changed.

Testing

  • npx vitest run --reporter=json on main (815a3bb): 413 suites, 1060 passed, 0 failed. That's the report this change makes the base side produce.
  • The workflow YAML parses.
  • This PR's own No new test failures run is the end-to-end check, since it now compares Vitest against Vitest.

Notes

  • Jest stays installed and jest.config.js is untouched. Removing Jest entirely is a separate clean-up.
  • npm run test:unit already uses Vitest, so local and CI runs now agree.

Generated by Claude Code

@vercel

vercel Bot commented Nov 20, 2026

Copy link
Copy Markdown

Deployment failed for project thisonetimeonacidcom with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/lightspeedwp?upgradeToPro=build-rate-limit

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0e37c86 and e74dbd8.

Files selected for processing: 2

  • .github/workflows/tests.yml
  • CHANGELOG.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions

Copy link
Copy Markdown

Drift Detection ✅

✅ No drift detected. Configuration is canonical.

Canonical governance files are correctly centralized in lightspeedwp/.github.

@github-actions

Copy link
Copy Markdown

✅ Workflow Syntax Validation

All workflows in .github/workflows/ have been validated for YAML syntax.

Result: All workflows passed validation

@github-actions

Copy link
Copy Markdown

✅ PR Template Routing

Branch prefix: ci
Template selected: pr_ci.md
Type: CI/CD PR


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.

@github-actions

Copy link
Copy Markdown

📋 Changelog Quality Validation

Metric Count
✅ Passing 1
❌ Failing 0
🆕 New failures in this PR 0
📦 Pre-existing failures 0

Status

✅ Validation PASSED - No new failures introduced by this PR.

No action required.

@github-actions github-actions Bot added area:ci Build and CI pipelines area:documentation labels Nov 20, 2026
@ashleyshaw
ashleyshaw marked this pull request as ready for review November 20, 2026 11:52
@mergify

mergify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Queue requested — the merge queue status continues in this comment ↓.

Copy link
Copy Markdown
Member Author

All GitHub checks pass on dc73499, including No new test failures, which now compares Vitest on the base (Vitest (base)) against Vitest on the head (Vitest (head)). The only red status is Vercel: api-deployments-free-per-day is the account's daily limit of 100 free deployments and isn't related to this diff.


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
@ashleyshaw
ashleyshaw force-pushed the ci/tests-vitest-base-comparison branch from dc73499 to ffb44b5 Compare November 21, 2026 02:16
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
thisonetimeonacidcom Ready Ready Preview Nov 21, 2026 11:23am UTC

@github-actions

Copy link
Copy Markdown

Drift Detection ✅

✅ No drift detected. Configuration is canonical.

Canonical governance files are correctly centralized in lightspeedwp/.github.

@github-actions

Copy link
Copy Markdown

✅ Workflow Syntax Validation

All workflows in .github/workflows/ have been validated for YAML syntax.

Result: All workflows passed validation

@ashleyshaw

Copy link
Copy Markdown
Member Author

@Mergifyio queue

@github-actions

Copy link
Copy Markdown

Drift Detection ✅

✅ No drift detected. Configuration is canonical.

Canonical governance files are correctly centralized in lightspeedwp/.github.

@github-actions

Copy link
Copy Markdown

✅ Workflow Syntax Validation

All workflows in .github/workflows/ have been validated for YAML syntax.

Result: All workflows passed validation

@mergify

mergify Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

🛑 Queue command cancelled

Queue requested — the merge queue status continues in this comment ↓.

@github-actions

Copy link
Copy Markdown

Drift Detection ✅

✅ No drift detected. Configuration is canonical.

Canonical governance files are correctly centralized in lightspeedwp/.github.

@mergify mergify Bot added the queued label Nov 21, 2026
@github-actions

Copy link
Copy Markdown

✅ Workflow Syntax Validation

All workflows in .github/workflows/ have been validated for YAML syntax.

Result: All workflows passed validation

@mergify mergify Bot removed the queued label Nov 21, 2026
@ashleyshaw

Copy link
Copy Markdown
Member Author

@Mergifyio rebase

@mergify

mergify Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

rebase

✅ Branch has been successfully rebased

@ashleyshaw

Copy link
Copy Markdown
Member Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into main as ed400c1 at 11:25 UTC

Less than a minute in the queue, with no time running CI.

So far

  • ✅ Entered the queue Sat 21 Nov, 11:25 · rule default · triggered by @ashleyshaw with the @mergifyio queue command
  • ✅ Checks skipped · PR is already up-to-date
  • ✅ Merged 11:25 · ed400c1

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 21, 2026
@mergify
mergify Bot merged commit ed400c1 into main Nov 21, 2026
38 of 41 checks passed
@mergify
mergify Bot deleted the ci/tests-vitest-base-comparison branch November 21, 2026 11:25
@mergify mergify Bot removed the queued label Nov 21, 2026
@linear-code

linear-code Bot commented Nov 21, 2026

Copy link
Copy Markdown

GIT-2784

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants