From fdf439c4e9659cb2317f942e01b4e992300b6138 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 21:26:16 +0000 Subject: [PATCH] test(verify): size the two untimed requires-knowledge cases with the file's 120_000 The install-without-libSQL case clears the module cache and re-imports the provider graph: 1.1-1.4 s locally, past 5000 ms on the loaded last Test Core shard of the scheduled full run. It and the host-mounts case were the only cases in the file left on vitest's default; both now carry the file's per-case budget, with the measurement in a comment. Claude-Session: https://claude.ai/code/session_01Utp6Cb4BAjgQ43tqy1DvVJ Co-authored-by: Claude --- .../verify/src/harness.required-providers.test.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/verify/src/harness.required-providers.test.ts b/packages/verify/src/harness.required-providers.test.ts index 462351c51e3..0ea81b683a6 100644 --- a/packages/verify/src/harness.required-providers.test.ts +++ b/packages/verify/src/harness.required-providers.test.ts @@ -368,7 +368,10 @@ describe("requires: ['knowledge'] — the knowledge service and one store", () = ).map((p) => (p as { name?: string }).name); expect(served).toEqual(expect.arrayContaining([KNOWLEDGE, TURSO])); expect(served).not.toContain(PGVECTOR); - }); + // Budget, as the last case's: 111-114 ms in file order, 431 ms run alone on a cold module cache + // (local, three runs); the full run's last shard read this file at 3.3x local, so 1.4 s cold — + // the file's 120_000 keeps it off vitest's 5000 ms default on a loaded runner. + }, 120_000); // The arm `os dev` and `os serve` mount on SQLite: a FILE database, so the // store is a libSQL file whose URL the operator may save in Settings. On a @@ -463,5 +466,10 @@ describe("requires: ['knowledge'] — the knowledge service and one store", () = vi.doUnmock('@objectstack/knowledge-turso'); vi.resetModules(); } - }); + // Budget: the module cache was just cleared, so constructServedProviders re-imports the provider + // graph — 1138-1365 ms locally (three runs, verbose reporter). The scheduled full run's last Test + // Core shard (run 45888214247) took this file at 3.3x local (52.8 s of tests outside this case vs + // 16.2 s) and ran this case past vitest's 5000 ms default; 1365 ms x 3.3 = 4.5 s leaves no margin + // there, so it takes the file's per-case 120_000 like every boot above. + }, 120_000); });