Skip to content

refactor: migrate test runner from bun:test to vitest #4633

refactor: migrate test runner from bun:test to vitest

refactor: migrate test runner from bun:test to vitest #4633

Triggered via pull request May 21, 2026 16:44
Status Failure
Total duration 4m 18s
Artifacts 4

ci.yml

on: pull_request
Detect Changes
6s
Detect Changes
Lint & Typecheck
41s
Lint & Typecheck
Validate generated files
15s
Validate generated files
Matrix: build-binary
Matrix: build-npm
Generate Delta Patches
Generate Delta Patches
E2E Tests
19s
E2E Tests
Build Docs
26s
Build Docs
Publish Nightly to GHCR
Publish Nightly to GHCR
CI Status
4s
CI Status
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 16 warnings
Build npm Package (Node 22)
Process completed with exit code 1.
Build npm Package (Node 24)
Process completed with exit code 1.
E2E Tests
Process completed with exit code 1.
test/e2e/skill-eval.test.ts: test/e2e/skill-eval.test.ts#L76
TypeError: Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead. ❯ test/e2e/skill-eval.test.ts:76:3
test/e2e/project.test.ts: test/e2e/project.test.ts#L58
TypeError: Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead. ❯ test/e2e/project.test.ts:58:3
test/e2e/multiregion.test.ts: test/e2e/multiregion.test.ts#L61
TypeError: Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead. ❯ test/e2e/multiregion.test.ts:61:5
test/e2e/library.test.ts > library mode (bundled): test/e2e/library.test.ts#L121
Error: Bundle not built — cannot run library tests ❯ test/e2e/library.test.ts:121:13
test/e2e/delta-upgrade.test.ts: test/e2e/delta-upgrade.test.ts#L49
TypeError: Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead. ❯ test/e2e/delta-upgrade.test.ts:49:3
test/e2e/completion.test.ts > completion latency > completion exits under 225ms: test/e2e/completion.test.ts#L72
AssertionError: expected 338.90310900000003 to be less than 225 ❯ test/e2e/completion.test.ts:72:29
test/e2e/bundle.test.ts > npm bundle: test/e2e/bundle.test.ts#L72
Error: Bundle failed with exit code 1: node:internal/modules/cjs/loader:1479 throw err; ^ Error: Cannot find module '/home/runner/work/cli/cli/run' at Module._resolveFilename (node:internal/modules/cjs/loader:1476:15) at wrapResolveFilename (node:internal/modules/cjs/loader:1049:27) at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1073:10) at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1094:12) at Module._load (node:internal/modules/cjs/loader:1262:25) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v24.15.0 ❯ test/e2e/bundle.test.ts:72:13
test/e2e/auth.test.ts: test/e2e/auth.test.ts#L80
TypeError: Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead. ❯ test/e2e/auth.test.ts:80:3
test/e2e/api.test.ts: test/e2e/api.test.ts#L56
TypeError: Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead. ❯ test/e2e/api.test.ts:56:3
CI Status
Process completed with exit code 1.
CI Status
CI failed
Validate generated files
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Validate generated files
Input 'app-id' has been deprecated with message: Use 'client-id' instead.
Validate generated files
Input 'app-id' has been deprecated with message: Use 'client-id' instead.
Lint & Typecheck
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Lint & Typecheck
Patch version mismatch:@stricli/core: patch targets 1.2.5, installed 1.2.7 — regenerate with: pnpm patch @stricli/core
Unit Tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Unit Tests
Failed to calculate patch coverage: HttpError: Sorry, the diff exceeded the maximum number of files (300). Consider using 'List pull requests files' API or locally cloning the repository instead.: {"resource":"PullRequest","field":"diff","code":"too_large"} - https://docs.github.com/rest/pulls/pulls#list-pull-requests-files
Unit Tests
Please ensure your test framework is generating JUnit XML output.
Unit Tests
No JUnit XML files found matching pattern: **/*.junit.xml
Unit Tests
No files found matching pattern: **/*.junit.xml
Build npm Package (Node 22)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Build npm Package (Node 24)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Build Binary (linux-x64)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Build Binary (linux-x64-musl)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
E2E Tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Build Docs
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

Artifacts

Produced during runtime
Name Size Digest
codecov-coverage-results-refactor-vitest-migration-v2-test-unit
142 KB
sha256:81e1591131657aa52d28b547f7c27697a4cfaf069b73951dcd956740aecd22a2
gh-pages
1.85 MB
sha256:79ad953627f722eca6d556a7fb575fe3a10f2c3ac97ee4a11f5d76b286bd7496
sentry-linux-x64
31.9 MB
sha256:8e1f6821faf58f5a47a76e06b74124eb4b35e4727b3b3423ecc0180bf3ebba9f
sentry-linux-x64-musl
30 MB
sha256:2d0113f0236189a8faa315855bb43ba98768a049ac7e1860a971763a0e4fbe75