Skip to content

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

refactor: migrate test runner from bun:test to vitest

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

Triggered via pull request May 21, 2026 14:18
Status Failure
Total duration 2m 0s
Artifacts

ci.yml

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

Annotations

12 errors and 6 warnings
test/lib/api-client.normalize-trace-span.test.ts: src/lib/db/sqlite.ts#L68
Error: Cannot find module 'bun:sqlite' Require stack: - /home/runner/work/cli/cli/src/lib/db/sqlite.ts ❯ src/lib/db/sqlite.ts:68:16 ❯ src/lib/db/index.ts:12:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/src/lib/db/sqlite.ts' ] }
test/lib/api-client.multiregion.test.ts: src/lib/db/sqlite.ts#L68
Error: Cannot find module 'bun:sqlite' Require stack: - /home/runner/work/cli/cli/src/lib/db/sqlite.ts ❯ src/lib/db/sqlite.ts:68:16 ❯ src/lib/db/index.ts:12:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/src/lib/db/sqlite.ts' ] }
test/lib/api-client.coverage.test.ts: src/lib/db/sqlite.ts#L68
Error: Cannot find module 'bun:sqlite' Require stack: - /home/runner/work/cli/cli/src/lib/db/sqlite.ts ❯ src/lib/db/sqlite.ts:68:16 ❯ src/lib/db/index.ts:12:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/src/lib/db/sqlite.ts' ] }
test/lib/alias.property.test.ts: src/lib/db/sqlite.ts#L68
Error: Cannot find module 'bun:sqlite' Require stack: - /home/runner/work/cli/cli/src/lib/db/sqlite.ts ❯ src/lib/db/sqlite.ts:68:16 ❯ src/lib/db/index.ts:12:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/src/lib/db/sqlite.ts' ] }
test/commands/init.test.ts: src/lib/db/sqlite.ts#L68
Error: Cannot find module 'bun:sqlite' Require stack: - /home/runner/work/cli/cli/src/lib/db/sqlite.ts ❯ src/lib/db/sqlite.ts:68:16 ❯ src/lib/db/index.ts:12:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/src/lib/db/sqlite.ts' ] }
test/commands/help.test.ts: src/lib/db/sqlite.ts#L68
Error: Cannot find module 'bun:sqlite' Require stack: - /home/runner/work/cli/cli/src/lib/db/sqlite.ts ❯ src/lib/db/sqlite.ts:68:16 ❯ src/lib/db/index.ts:12:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/src/lib/db/sqlite.ts' ] }
test/commands/explore.test.ts: src/commands/explore.ts#L10
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock ❯ src/commands/explore.ts:10:1 ❯ test/commands/explore.test.ts:9:1 Caused by: Caused by: Error: Cannot find module 'bun:sqlite' Require stack: - /home/runner/work/cli/cli/src/lib/db/sqlite.ts ❯ src/lib/db/sqlite.ts:68:16 ❯ src/lib/db/index.ts:12:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/src/lib/db/sqlite.ts' ] }
test/commands/cli.test.ts: src/lib/db/sqlite.ts#L68
Error: Cannot find module 'bun:sqlite' Require stack: - /home/runner/work/cli/cli/src/lib/db/sqlite.ts ❯ src/lib/db/sqlite.ts:68:16 ❯ src/lib/db/index.ts:12:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/src/lib/db/sqlite.ts' ] }
test/commands/api.test.ts: src/lib/db/sqlite.ts#L68
Error: Cannot find module 'bun:sqlite' Require stack: - /home/runner/work/cli/cli/src/lib/db/sqlite.ts ❯ src/lib/db/sqlite.ts:68:16 ❯ src/lib/db/index.ts:12:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/src/lib/db/sqlite.ts' ] }
test/commands/api.property.test.ts: src/lib/db/sqlite.ts#L68
Error: Cannot find module 'bun:sqlite' Require stack: - /home/runner/work/cli/cli/src/lib/db/sqlite.ts ❯ src/lib/db/sqlite.ts:68:16 ❯ src/lib/db/index.ts:12:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/cli/cli/src/lib/db/sqlite.ts' ] }
CI Status
Process completed with exit code 1.
CI Status
CI failed - upstream job failed causing test-e2e to be skipped
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/