Skip to content

chore: bump vitest to 4.0.18 to fix CD forks pool timeout - #3444

Merged
eduardoformiga merged 1 commit into
devfrom
fix/vitest-pool-timeout-cd
Aug 11, 2026
Merged

eduardoformiga merged 1 commit into
devfrom
fix/vitest-pool-timeout-cd

Conversation

@eduardoformiga

@eduardoformiga eduardoformiga commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

Summary

  • CD run 31517199301 failed on @faststore/core#test with [vitest-pool]: Timeout starting forks runner — all 75 files / 584 tests passed; the run exited non-zero due to 2 unhandled Vitest pool errors.
  • Root cause: Vitest 4.0.7 uses a 5s worker start timeout (fixed in ≥4.0.9 via vitest#9027 / vitest#8968). Under CD load (turbo + jsdom projects), forks can exceed that window.
  • Bump catalog vitest / @vitest/coverage-v8 to 4.0.18 and point @faststore/api at catalog: for a single shared version.

Test plan

  • pnpm turbo run test --filter=@faststore/core --filter=@faststore/diagnostics --filter=@faststore/api (core: 75 passed on vitest 4.0.18)
  • Confirm CD publishes after merge to dev

Made with Cursor

Summary by CodeRabbit

  • Chores
    • Updated the Vitest development dependency reference for more consistent workspace package management.

Vitest 4.0.7 times out starting fork workers under CI load (5s
limit), which made @faststore/core#test fail the CD run even though
all assertions passed. 4.0.9+ raises the worker start timeout; align
the catalog (and @faststore/api) on 4.0.18.
@eduardoformiga
eduardoformiga requested a review from a team as a code owner August 11, 2026 22:39
@eduardoformiga
eduardoformiga requested review from hellofanny and renatamottam and removed request for a team August 11, 2026 22:39
@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The API package now references vitest through the workspace catalog instead of an explicit version range.

Changes

Dependency catalog update

Layer / File(s) Summary
Vitest catalog resolution
packages/api/package.json
The vitest development dependency now uses the catalog: workspace reference.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: emersonlaurentino

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly states the Vitest upgrade target and the CD fork pool timeout it addresses.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/vitest-pool-timeout-cd

Comment @coderabbitai help to get the list of available commands.

@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@eduardoformiga eduardoformiga changed the title chore(deps): bump vitest to 4.0.18 to fix CD forks pool timeout chore: bump vitest to 4.0.18 to fix CD forks pool timeout Aug 11, 2026
@sonar-workflows

Copy link
Copy Markdown

@eduardoformiga
eduardoformiga merged commit 2306797 into dev Aug 11, 2026
11 of 12 checks passed
@eduardoformiga
eduardoformiga deleted the fix/vitest-pool-timeout-cd branch August 11, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant