mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
StoreStorage (Durable's storage on Chord v2's store, @earendil-works/pi-durable/storage/store) passes Durable's storage conformance suite and runs Durable's harness tests (npm run test:store). The store gets owner names and claims, one id allocator, Durable's Storage semantics for refused steps, history none/latest/rewindable with reads at a point, archive revisions and applyBatch. self.follow follows Durable's synchronous observers as Chord sources. Persisted jobs: records and state in the owner's store, restarts as Durable's tasks, abort stored, deferred state. Chord's ./next export returns for the adapter surface.
47 lines
2 KiB
TypeScript
47 lines
2 KiB
TypeScript
// The harness test files that take a SQLite storage, run on Durable's storage on Chord's store (`StoreStorage`, slice
|
|
// 6b): `../src/storage/sqlite/node.ts`'s opener is replaced by `test/store-storage-node.ts`; the files are unchanged.
|
|
// Four tests edit or read `SqliteStorage`'s own tables with raw SQL (`tasks`, `durable_metadata`) and are left out.
|
|
|
|
import { fileURLToPath } from "node:url";
|
|
import { defineConfig, mergeConfig } from "vitest/config";
|
|
import base from "./vitest.config.ts";
|
|
|
|
const storeOpener = fileURLToPath(new URL("./test/store-storage-node.ts", import.meta.url));
|
|
|
|
export default mergeConfig(
|
|
base,
|
|
defineConfig({
|
|
test: {
|
|
testNamePattern:
|
|
/^(?!.*(resumes a retry backoff after reopen|sleeps again for a retry stored as a running phase|polls a checkpoint stored without a thinking level|refuses to create the root of an empty storage))/,
|
|
include: [
|
|
"test/harness-after-run.test.ts",
|
|
"test/harness-blocked.test.ts",
|
|
"test/harness-compaction.test.ts",
|
|
"test/harness-continue.test.ts",
|
|
"test/harness-conversations.test.ts",
|
|
"test/harness-generation-recovery.test.ts",
|
|
"test/harness-inbox.test.ts",
|
|
"test/harness-input-entries.test.ts",
|
|
"test/harness-lifecycle.test.ts",
|
|
"test/harness-nested-tools-restart.test.ts",
|
|
"test/harness-nested-tools.test.ts",
|
|
"test/harness-ownership.test.ts",
|
|
"test/harness-read-only.test.ts",
|
|
"test/harness-restart-failure.test.ts",
|
|
"test/harness-scheduler-indexes.test.ts",
|
|
"test/harness-scheduler-retention.test.ts",
|
|
"test/harness-sleep.test.ts",
|
|
"test/harness-structured.test.ts",
|
|
"test/harness-submissions.test.ts",
|
|
"test/harness-task-graph.test.ts",
|
|
"test/harness-tasks-recovery.test.ts",
|
|
"test/harness-tool-hooks.test.ts",
|
|
"test/harness-tools-recovery.test.ts",
|
|
"test/harness-turn-limit.test.ts",
|
|
"test/harness-view.test.ts",
|
|
],
|
|
},
|
|
resolve: { alias: [{ find: /^\.\.\/src\/storage\/sqlite\/node\.ts$/, replacement: storeOpener }] },
|
|
}),
|
|
);
|