Skip to content

chore(showcase/scripts): bump vitest 3 → 4.1.3 to fix birpc onTaskUpdate timeout#4087

Merged
jpr5 merged 1 commit into
mainfrom
chore/showcase-scripts-vitest-4
Apr 19, 2026
Merged

chore(showcase/scripts): bump vitest 3 → 4.1.3 to fix birpc onTaskUpdate timeout#4087
jpr5 merged 1 commit into
mainfrom
chore/showcase-scripts-vitest-4

Conversation

@jpr5

@jpr5 jpr5 commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Problem

showcase/scripts test runs intermittently fail with birpc onTaskUpdate timeouts, caused by an upstream bug in vitest 3.x's subprocess reporter transport (vitest-dev/vitest#8164). Fix landed upstream in #8297, shipped in v4.0.0-beta.4+.

Why this is safe

  • Blast radius is this one package. Root package.json already declares "vitest": "^4.1.3". The only holdout was showcase/scripts/package.json at "vitest": "^3.0.0". All 10 subprocess-spawning test files in the monorepo live in showcase/scripts/__tests__/ — zero elsewhere — so this is the only package actually affected by the bug.
  • Zero vitest API breaks in the diff. Spot-checked: no vi.mock, no expect.extend, no .concurrent, no snapshots, no coverage config, no custom reporters. Only vi.spyOn (unchanged in v4) and standard describe/it/expect.
  • Pool config unchanged. pool: 'forks' + fileParallelism behave identically in v3 and v4.
  • Lockfile diff is minimal. Only showcase/scripts import resolution changes + a new @vitest/[email protected] snapshot. No other package was edited; no other package's resolution changed. vitest 3.2.4 and 2.1.9 continue to resolve side-by-side for the packages that still pin them.

Verification

3 consecutive pnpm nx run @copilotkit/showcase-scripts:test --skip-nx-cache runs on Node 20.20.2:

Run Result Wall time Tests
1 green 34.45s 1061/1061
2 green 29.64s 1061/1061
3 green 29.46s 1061/1061

Zero onTaskUpdate errors, zero unhandled exceptions across all three runs.

Test plan

  • CI unit(20.x) green — this has been the red one on recent PRs due to this exact bug
  • CI unit(22.x) green
  • CI unit(24.x) green

Relationship to #4081

Complementary, not overlapping. #4081 splits / isolates the showcase-scripts test suite as a workaround at the Nx/pool-config layer. This PR fixes the root cause in the test runner itself. Once this merges, the onTaskUpdate failures #4081 has been chasing should clear; #4081 can then rebase on a clean main and its remaining work (the split/isolation improvements) can be evaluated on its own merits rather than as a bug workaround.

@vercel

vercel Bot commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Apr 19, 2026 2:13am
research-canvas Ready Ready Preview, Comment Apr 19, 2026 2:13am
travel Ready Ready Preview, Comment Apr 19, 2026 2:13am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
chat-with-your-data Skipped Skipped Apr 19, 2026 2:13am
form-filling Skipped Skipped Apr 19, 2026 2:13am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

Fixes upstream birpc onTaskUpdate timeout (vitest-dev/vitest#8164, fixed
by #8297, v4-only). Root package.json already on ^4.1.3; this aligns
showcase/scripts, which held the only remaining ^3.0.0 pin and was
therefore the only package affected by the bug.

Local verification: 3 consecutive `pnpm nx run
@copilotkit/showcase-scripts:test --skip-nx-cache` runs on Node 20.20.2,
all green, 1061/1061 passing, zero onTaskUpdate errors, zero unhandled
exceptions (wall times: 34s / 30s / 29s).
@jpr5
jpr5 force-pushed the chore/showcase-scripts-vitest-4 branch from b77cd5b to aafa732 Compare April 19, 2026 02:10
@vercel
vercel Bot temporarily deployed to Preview – chat-with-your-data April 19, 2026 02:10 Inactive
@vercel
vercel Bot temporarily deployed to Preview – form-filling April 19, 2026 02:10 Inactive
@jpr5
jpr5 merged commit ff0eac0 into main Apr 19, 2026
17 checks passed
@jpr5
jpr5 deleted the chore/showcase-scripts-vitest-4 branch April 19, 2026 02:15
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