Skip to content

Bump vitest to 5.0.3 so test runs stop leaking /tmp dirs - #1479

Merged
danielgwilson merged 2 commits into
mainfrom
chore/vitest-503
Oct 2, 2026
Merged

danielgwilson merged 2 commits into
mainfrom
chore/vitest-503

Conversation

@danielgwilson

Copy link
Copy Markdown
Owner

vitest 5.0.2 creates /tmp/<21-char id>/ssr for each run and never removes it. The leaked dir is the core Vitest._tmpDir; only the project dir is cleared on close. Each run leaves about 11 MB of transformed modules. On the shared box, 7,131 of these dirs held 78 GB between 09-30 and 10-02. vitest 5.0.3 removes the dir on close (vitest-dev/vitest#11248).

The change bumps the catalog range in pnpm-workspace.yaml from ^5.0.2 to ^5.0.3 and updates the lockfile to match. The three package.json files keep catalog:.

Checks

  • tests/run/pricing.test.ts with a private TMPDIR: one <id> dir left on 5.0.2, none on 5.0.3.
  • format:check, typecheck, knip: pass.
  • tui vitest: 90 passed.
  • observer vitest: the same 5 artifact-smoke tests fail here and on main, because they need a built dist/. CI builds first.

Not verified

  • The full root suite locally. CI runs it.

🤖 Generated with Claude Code

vitest 5.0.2 creates /tmp/<21-char id>/ssr for each run and never removes
it (the core Vitest._tmpDir; only the project dir is cleared on close).
Each run left about 11 MB of transformed modules. 7,131 such dirs filled
78 GB on the shared box between 09-30 and 10-02. 5.0.3 removes the dir on
close (vitest-dev/vitest#11248).

Checked: tests/run/pricing.test.ts under a private TMPDIR leaves one
<id> dir on 5.0.2 and none on 5.0.3. format:check, typecheck, knip, tui
vitest (90 passed) pass. observer vitest fails the same 5 artifact-smoke
tests on main and here, because they need a built dist/.

Not checked locally: the full root suite; CI runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
humanish Ignored Ignored Preview Oct 2, 2026 11:02pm UTC

Request Review

@danielgwilson
danielgwilson merged commit 9114d16 into main Oct 2, 2026
10 checks passed
@danielgwilson
danielgwilson deleted the chore/vitest-503 branch October 2, 2026 23:09
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