Skip to content

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

refactor: migrate test runner from bun:test to vitest

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

Triggered via pull request May 21, 2026 17:33
Status Failure
Total duration 5m 58s
Artifacts 5

ci.yml

on: pull_request
Detect Changes
9s
Detect Changes
Lint & Typecheck
36s
Lint & Typecheck
Validate generated files
24s
Validate generated files
Matrix: build-binary
Matrix: build-npm
Generate Delta Patches
Generate Delta Patches
Build Docs
35s
Build Docs
Publish Nightly to GHCR
0s
Publish Nightly to GHCR
CI Status
3s
CI Status
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 16 warnings
test/e2e/library.test.ts > library mode (bundled) > type declarations contain SentryError: test/e2e/library.test.ts#L299
Error: ENOENT: no such file or directory, open '/home/runner/work/cli/cli/dist/index.d.cts' ❯ test/e2e/library.test.ts:299:21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/cli/cli/dist/index.d.cts' }
test/e2e/library.test.ts > library mode (bundled) > type declarations contain SDK namespaces: test/e2e/library.test.ts#L292
Error: ENOENT: no such file or directory, open '/home/runner/work/cli/cli/dist/index.d.cts' ❯ test/e2e/library.test.ts:292:21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/cli/cli/dist/index.d.cts' }
test/e2e/library.test.ts > library mode (bundled) > type declarations contain createSentrySDK: test/e2e/library.test.ts#L286
Error: ENOENT: no such file or directory, open '/home/runner/work/cli/cli/dist/index.d.cts' ❯ test/e2e/library.test.ts:286:21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/cli/cli/dist/index.d.cts' }
test/e2e/library.test.ts > library mode (bundled) > SDK throws SentryError on auth failure: test/e2e/library.test.ts#L78
Error: Node exited 1. stdout: stderr: node:internal/modules/cjs/loader:1479 throw err; ^ Error: Cannot find module './dist/index.cjs' Require stack: - /home/runner/work/cli/cli/[eval] 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.require (node:internal/modules/cjs/loader:1576:12) at require (node:internal/modules/helpers:153:16) at [eval]:2:48 at runScriptInThisContext (node:internal/vm:219:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/[eval]' ] } Node.js v24.15.0 ❯ [eval]:2:48 ❯ runNodeScriptOk test/e2e/library.test.ts:78:11 ❯ test/e2e/library.test.ts:266:24
test/e2e/library.test.ts > library mode (bundled) > createSentrySDK() returns object with namespaces: test/e2e/library.test.ts#L78
Error: Node exited 1. stdout: stderr: node:internal/modules/cjs/loader:1479 throw err; ^ Error: Cannot find module './dist/index.cjs' Require stack: - /home/runner/work/cli/cli/[eval] 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.require (node:internal/modules/cjs/loader:1576:12) at require (node:internal/modules/helpers:153:16) at [eval]:2:35 at runScriptInThisContext (node:internal/vm:219:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/[eval]' ] } Node.js v24.15.0 ❯ [eval]:2:35 ❯ runNodeScriptOk test/e2e/library.test.ts:78:11 ❯ test/e2e/library.test.ts:244:24
test/e2e/library.test.ts > library mode (bundled) > sdk.run() throws SentryError on auth failure: test/e2e/library.test.ts#L78
Error: Node exited 1. stdout: stderr: node:internal/modules/cjs/loader:1479 throw err; ^ Error: Cannot find module './dist/index.cjs' Require stack: - /home/runner/work/cli/cli/[eval] 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.require (node:internal/modules/cjs/loader:1576:12) at require (node:internal/modules/helpers:153:16) at [eval]:2:48 at runScriptInThisContext (node:internal/vm:219:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/[eval]' ] } Node.js v24.15.0 ❯ [eval]:2:48 ❯ runNodeScriptOk test/e2e/library.test.ts:78:11 ❯ test/e2e/library.test.ts:220:24
test/e2e/library.test.ts > library mode (bundled) > sdk.run() does not pollute process.env: test/e2e/library.test.ts#L78
Error: Node exited 1. stdout: stderr: node:internal/modules/cjs/loader:1479 throw err; ^ Error: Cannot find module './dist/index.cjs' Require stack: - /home/runner/work/cli/cli/[eval] 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.require (node:internal/modules/cjs/loader:1576:12) at require (node:internal/modules/helpers:153:16) at [eval]:2:35 at runScriptInThisContext (node:internal/vm:219:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/[eval]' ] } Node.js v24.15.0 ❯ [eval]:2:35 ❯ runNodeScriptOk test/e2e/library.test.ts:78:11 ❯ test/e2e/library.test.ts:200:24
test/e2e/library.test.ts > library mode (bundled) > sdk.run('--version') returns version string: test/e2e/library.test.ts#L78
Error: Node exited 1. stdout: stderr: node:internal/modules/cjs/loader:1479 throw err; ^ Error: Cannot find module './dist/index.cjs' Require stack: - /home/runner/work/cli/cli/[eval] 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.require (node:internal/modules/cjs/loader:1576:12) at require (node:internal/modules/helpers:153:16) at [eval]:2:35 at runScriptInThisContext (node:internal/vm:219:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/[eval]' ] } Node.js v24.15.0 ❯ [eval]:2:35 ❯ runNodeScriptOk test/e2e/library.test.ts:78:11 ❯ test/e2e/library.test.ts:184:24
test/e2e/library.test.ts > library mode (bundled) > exports SentryError: test/e2e/library.test.ts#L78
Error: Node exited 1. stdout: stderr: node:internal/modules/cjs/loader:1479 throw err; ^ Error: Cannot find module './dist/index.cjs' Require stack: - /home/runner/work/cli/cli/[eval] 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.require (node:internal/modules/cjs/loader:1576:12) at require (node:internal/modules/helpers:153:16) at [eval]:2:31 at runScriptInThisContext (node:internal/vm:219:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/[eval]' ] } Node.js v24.15.0 ❯ [eval]:2:31 ❯ runNodeScriptOk test/e2e/library.test.ts:78:11 ❯ test/e2e/library.test.ts:174:24
test/e2e/completion.test.ts > completion latency > completion exits under 225ms: test/e2e/completion.test.ts#L72
AssertionError: expected 262.58503299999995 to be less than 225 ❯ test/e2e/completion.test.ts:72:29
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 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 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 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/
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/
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/

Artifacts

Produced during runtime
Name Size Digest
codecov-coverage-results-refactor-vitest-migration-v2-test-unit
142 KB
sha256:0ba870112035f1964a0d18621e97fde79b0631aba1f928199124dcbef484009a
gh-pages
1.85 MB
sha256:60f805c36b385e1b9c5c1503debda62b423524bc42df5c7fd75585e081ceec8d
npm-package
1.52 MB
sha256:626d0fbed38b0a9429162896dabaf20f89b052a73b83f85824323131420afebe
sentry-linux-x64
31.9 MB
sha256:70cf8daef74247d9c1bbed00e5dc5e171271438cd6bb0e1fbc202674735ebd46
sentry-linux-x64-musl
30 MB
sha256:9b4c048090a278baec856135797cbcec737e15be68d7f9f7a834ad47a7fbb042