mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 16:47:34 +00:00
* wip: delete the SSH relay server and its build, assets and tests * wip: drop main/relay plugin conformance; WSL reader lookup test * fix: drop the emptied relay bench; prune baselines * test: keep the native halves of tests that also covered the relay * chore(ci): drop shard timings for the deleted relay server tests * fix: keep the directory listing budget that darwin terminal names now import --------- Co-authored-by: m4air <m4air@Mac.localdomain>
46 lines
1.9 KiB
TypeScript
46 lines
1.9 KiB
TypeScript
import { existsSync } from 'node:fs'
|
|
import { resolve } from 'node:path'
|
|
import { defineConfig } from 'vitest/config'
|
|
import baseConfig from './vitest.config'
|
|
import { nodeRuntimePool } from './scripts/vitest-node-runtime-pool'
|
|
|
|
const contracts = [
|
|
'src/main/sqlite/sync-database.test.ts',
|
|
'src/main/runtime/orchestration/db/row-column-lists.test.ts',
|
|
'src/shared/native-chat-tool-attribution-allocation.test.ts',
|
|
'src/shared/native-chat-tool-pairing.performance.test.ts',
|
|
'src/main/codex-usage/codex-rollout-file-lifetime.test.ts',
|
|
'src/main/codex-usage/scanner-incremental-append.test.ts',
|
|
'src/main/usage/jsonl-file-reader.test.ts',
|
|
'src/main/usage/jsonl-file-snapshot.test.ts',
|
|
'src/renderer/src/components/editor/rich-markdown-list-tokenizers.test.ts',
|
|
'src/renderer/src/components/editor/rich-markdown-lowlight-cache.test.ts',
|
|
'src/renderer/src/components/terminal-pane/agent-completion-coordinator-queued-inspection-disposal.test.ts',
|
|
'src/renderer/src/lib/pane-manager/pane-terminal-output-scheduler-queue-retention.test.ts',
|
|
'src/renderer/src/store/store-identity-churn-probe.test.ts',
|
|
'config/scripts/app-store-performance-plugin.test.mjs',
|
|
'config/scripts/quadratic-buffer-concat-plugin.test.mjs',
|
|
'config/scripts/sort-comparator-performance-plugin.test.mjs',
|
|
'src/main/claude-usage/scanner-incremental-append.test.ts',
|
|
'src/main/claude-usage/store-checkpoint-persistence.test.ts'
|
|
]
|
|
|
|
for (const contract of contracts) {
|
|
if (!existsSync(resolve(contract))) {
|
|
throw new Error(`Missing performance contract: ${contract}`)
|
|
}
|
|
}
|
|
|
|
export default defineConfig({
|
|
...baseConfig,
|
|
test: {
|
|
...baseConfig.test,
|
|
// Project-level includes otherwise override this contract-only selection.
|
|
projects: undefined,
|
|
...(process.versions.bun ? { pool: 'node-runtime', poolRunner: nodeRuntimePool } : {}),
|
|
include: contracts,
|
|
fileParallelism: false,
|
|
retry: 0
|
|
}
|
|
})
|