426e9eeabd
Benchmark Bridge Tests / benchmark (bunx @biomejs/biome check packages/lifeops-bench/src, benchmark-lint) (push) Waiting to run
Benchmark Bridge Tests / benchmark (bunx vitest run --config packages/lifeops-bench/vitest.config.ts --root packages/lifeops-bench --passWithNoTests, benchmark-tests) (push) Waiting to run
Build Agent Image / build-and-push (push) Waiting to run
Chat shell gestures / Chat shell gesture + parity e2e (push) Waiting to run
ci / test (push) Waiting to run
ci / lint-and-format (push) Waiting to run
ci / build (push) Waiting to run
ci / dev-startup (push) Waiting to run
Cloud Gateway Discord / Test (push) Waiting to run
Cloud Gateway Webhook / Test (push) Waiting to run
Cloud Tests / lint-and-types (push) Waiting to run
Cloud Tests / unit-tests (push) Waiting to run
Cloud Tests / integration-tests (push) Waiting to run
Cloud Tests / e2e-tests (push) Blocked by required conditions
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Deploy Apps Worker (Product 2) / Determine environment (push) Waiting to run
Deploy Apps Worker (Product 2) / Deploy apps worker to apps-control host (${{ needs.determine-env.outputs.environment }}) (push) Blocked by required conditions
Deploy Eliza Provisioning Worker / Determine environment (push) Waiting to run
Deploy Eliza Provisioning Worker / Deploy worker to Hetzner host (${{ needs.determine-env.outputs.environment }} @ ${{ needs.determine-env.outputs.deployment_sha }}) (push) Blocked by required conditions
Dev Smoke / Classify changed paths (push) Waiting to run
Dev Smoke / bun run dev onboarding chat (push) Blocked by required conditions
Dev Smoke / Vite HMR dependency-level smoke (push) Blocked by required conditions
Electrobun Submodule Guard / electrobun gitlink is fetchable (push) Waiting to run
gitleaks / gitleaks (push) Waiting to run
Markdown Links / Relative Markdown Links (push) Waiting to run
Publish @elizaos/example-code / check_npm (push) Waiting to run
Publish @elizaos/example-code / publish_npm (push) Blocked by required conditions
Publish @elizaos/plugin-elizacloud / verify_version (push) Waiting to run
Publish @elizaos/plugin-elizacloud / publish_npm (push) Blocked by required conditions
Quality (Extended) / Homepage Build (PR smoke) (push) Waiting to run
Quality (Extended) / Comment-only diff guard (push) Waiting to run
Quality (Extended) / Format + Type Safety Ratchet (push) Waiting to run
Quality (Extended) / Develop Gate (secret scan + UI determinism) (push) Waiting to run
Quality (Extended) / Develop Gate (lint) (push) Waiting to run
Sandbox Live Smoke / Sandbox live smoke (push) Waiting to run
Snap Build & Test / Build Snap (amd64) (push) Waiting to run
Snap Build & Test / Build Snap (arm64) (push) Waiting to run
supply-chain / sbom (push) Waiting to run
supply-chain / vulnerability-scan (push) Waiting to run
Build, Push & Deploy to Phala Cloud / build-and-push (push) Waiting to run
Test Packaging / Validate Packaging Configs (push) Waiting to run
Test Packaging / PyPI on Python ${{ matrix.python }} (push) Waiting to run
Test Packaging / Pack & Test JS Tarballs (push) Waiting to run
Test Packaging / elizaos CLI global-install smoke (node + bun) (push) Waiting to run
UI Fixture E2E / ui-fixture-e2e (push) Waiting to run
UI Fixture E2E / fixture-e2e (push) Waiting to run
UI Story Gate / story-gate (push) Waiting to run
vault-ci / test (macos-latest) (push) Waiting to run
vault-ci / test (ubuntu-latest) (push) Waiting to run
vault-ci / test (windows-latest) (push) Waiting to run
vault-ci / app-core wiring tests (push) Waiting to run
verify-patches / verify patches/CHECKSUMS.sha256 (push) Waiting to run
Voice Benchmark Smoke / voice-emotion fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voiceagentbench fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench-quality unit smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench TypeScript unit (no audio) (push) Waiting to run
Voice Benchmark Smoke / voice bench smoke summary (push) Blocked by required conditions
Windows CI / windows ([bun run --cwd packages/app-core test bun run --cwd packages/elizaos test bun run --cwd packages/cloud/shared test], app-and-cli) (push) Waiting to run
Windows CI / windows ([bun run --cwd packages/scenario-runner test bun run --cwd packages/vault test bun run --cwd packages/security test bun run --cwd plugins/plugin-coding-tools test], framework-packages) (push) Waiting to run
Windows CI / windows ([bun run --cwd plugins/plugin-elizacloud test bun run --cwd plugins/plugin-discord test bun run --cwd plugins/plugin-anthropic test bun run --cwd plugins/plugin-openai test bun run --cwd plugins/plugin-app-control test bun run --cwd plugins/pl… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run build --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/agent --concurrency=4 node packages/scripts/run-bash-linux-only.mjs scripts/verify-riscv64-buildpaths.sh node packages/scripts/run… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run typecheck --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/cloud-shared --concurrency=4 bun run --cwd packages/core test bun run --cwd packages/shared test], core-runtime, 75) (push) Waiting to run
Test Packaging / Build & Test PyPI Package (push) Waiting to run
Voice Workbench / headless workbench (mocked backends) (push) Has been cancelled
Voice Workbench / real acoustic lane (nightly, provisioned only) (push) Has been cancelled
188 lines
6.9 KiB
TypeScript
188 lines
6.9 KiB
TypeScript
/**
|
|
* Root Vitest configuration for workspace tests that run directly against source.
|
|
*
|
|
* The aliases point package imports at their TypeScript entry points so targeted
|
|
* package tests can execute without first building every workspace.
|
|
*/
|
|
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
const root = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "node",
|
|
testTimeout: 120_000,
|
|
hookTimeout: 120_000,
|
|
exclude: [
|
|
"**/node_modules/**",
|
|
"**/dist/**",
|
|
"**/.git/**",
|
|
"**/.claude/**",
|
|
"**/.eliza/**",
|
|
"**/.tmp/**",
|
|
"**/tmp/**",
|
|
"**/*.e2e.test.{ts,tsx}",
|
|
"**/*.e2e.spec.{ts,tsx}",
|
|
"**/*.live.test.{ts,tsx}",
|
|
"**/*.live.e2e.test.{ts,tsx}",
|
|
"**/*.real.test.{ts,tsx}",
|
|
"**/*.real.e2e.test.{ts,tsx}",
|
|
],
|
|
},
|
|
resolve: {
|
|
alias: [
|
|
{
|
|
// plugin-app-control's build (tsup, index + worker entries only)
|
|
// never emits dist/actions/*.js; the agent's settings-actions.ts
|
|
// subpath import resolves only under the `eliza-source` exports
|
|
// condition, which vite's resolver ignores. Pin it to source so any
|
|
// test whose graph loads @elizaos/agent (aliased to src below) boots.
|
|
find: /^@elizaos\/plugin-app-control\/actions\/settings$/,
|
|
replacement: path.join(
|
|
root,
|
|
"plugins/plugin-app-control/src/actions/settings.ts",
|
|
),
|
|
},
|
|
{
|
|
find: /^@elizaos\/app-core$/,
|
|
replacement: path.join(root, "packages/app-core/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/app-core\/(.+)$/,
|
|
replacement: path.join(root, "packages/app-core/src/$1"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/agent$/,
|
|
replacement: path.join(root, "packages/agent/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/agent\/(.+)$/,
|
|
replacement: path.join(root, "packages/agent/src/$1"),
|
|
},
|
|
{
|
|
// The agent's settings action imports the shared parser from this
|
|
// subpath (#14804); app-control's build bundles only the barrel, so
|
|
// without the eliza-source condition the subpath has no dist file to
|
|
// resolve to and must be pinned to source here.
|
|
find: /^@elizaos\/plugin-app-control\/(.+)$/,
|
|
replacement: path.join(root, "plugins/plugin-app-control/src/$1"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/logger$/,
|
|
replacement: path.join(root, "packages/logger/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/core$/,
|
|
replacement: path.join(root, "packages/core/src/index.node.ts"),
|
|
},
|
|
{
|
|
// "./node" is an exports-map subpath (→ index.node.ts), not a real
|
|
// src path, so it must be pinned before the generic src/$1 rewrite.
|
|
find: /^@elizaos\/core\/node$/,
|
|
replacement: path.join(root, "packages/core/src/index.node.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/core\/(.+)$/,
|
|
replacement: path.join(root, "packages/core/src/$1"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/shared$/,
|
|
replacement: path.join(root, "packages/shared/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/shared\/(.+)$/,
|
|
replacement: path.join(root, "packages/shared/src/$1"),
|
|
},
|
|
{
|
|
// Leaf auth package (account storage, credentials, oauth flows,
|
|
// atomic-json). It ships no dist in the test lane, so its `.` and `./*`
|
|
// exports resolve to `dist/*.js` and vite fails with "Cannot find
|
|
// package '@elizaos/auth/...'". Pin both the barrel and subpaths to
|
|
// source so targeted tests (e.g. remote-plugin-adapter → app-package
|
|
// -modules → `@elizaos/auth/atomic-json`) resolve without a build.
|
|
find: /^@elizaos\/auth$/,
|
|
replacement: path.join(root, "packages/auth/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/auth\/(.+)$/,
|
|
replacement: path.join(root, "packages/auth/src/$1"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/vault$/,
|
|
replacement: path.join(root, "packages/vault/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/vault\/(.+)$/,
|
|
replacement: path.join(root, "packages/vault/src/$1"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/cloud-sdk$/,
|
|
replacement: path.join(root, "packages/cloud/sdk/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/cloud-sdk\/(.+)$/,
|
|
replacement: path.join(root, "packages/cloud/sdk/src/$1"),
|
|
},
|
|
{
|
|
// Core's src re-exports the cloud routing surface from
|
|
// `@elizaos/cloud-routing` (packages/core/src/cloud-routing.ts), which
|
|
// ships no dist. With @elizaos/core source-aliased above, that re-export
|
|
// only resolves when cloud-routing is pinned to source too — otherwise
|
|
// vite falls through to its `dist/index.js` entry and fails with
|
|
// "Failed to resolve entry for @elizaos/cloud-routing".
|
|
find: /^@elizaos\/cloud-routing$/,
|
|
replacement: path.join(root, "packages/cloud/routing/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/cloud-routing\/(.+)$/,
|
|
replacement: path.join(root, "packages/cloud/routing/src/$1"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/ui$/,
|
|
replacement: path.join(root, "packages/ui/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/ui\/(.+)$/,
|
|
replacement: path.join(root, "packages/ui/src/$1"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/vault$/,
|
|
replacement: path.join(root, "packages/vault/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/vault\/(.+)$/,
|
|
replacement: path.join(root, "packages/vault/src/$1"),
|
|
},
|
|
{
|
|
// plugin-commands ships only a built `dist/` entry, so a test run
|
|
// straight from source (targeted package tests, the changed-files
|
|
// coverage gate) fails to resolve its `.`/`./*` exports with "Failed to
|
|
// resolve entry for @elizaos/plugin-commands" whenever a graph pulls in
|
|
// the Discord connector (service.ts → catalog-commands.ts). Pin barrel
|
|
// and subpaths to source; mirrors plugin-discord/vitest.config.ts so the
|
|
// per-package lane and this root lane resolve identically.
|
|
find: /^@elizaos\/plugin-commands$/,
|
|
replacement: path.join(root, "plugins/plugin-commands/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/plugin-commands\/(.+)$/,
|
|
replacement: path.join(root, "plugins/plugin-commands/src/$1"),
|
|
},
|
|
{
|
|
// Same source-resolution story for @elizaos/plugin-meetings: the Discord
|
|
// voice-meeting seams import its barrel, and it too ships no dist in the
|
|
// test lane.
|
|
find: /^@elizaos\/plugin-meetings$/,
|
|
replacement: path.join(root, "plugins/plugin-meetings/src/index.ts"),
|
|
},
|
|
{
|
|
find: /^@elizaos\/plugin-meetings\/(.+)$/,
|
|
replacement: path.join(root, "plugins/plugin-meetings/src/$1"),
|
|
},
|
|
],
|
|
},
|
|
});
|