Skip to content

Commit fdf439c

Browse files
committed
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 <noreply@anthropic.com>
1 parent 9476092 commit fdf439c

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

‎packages/verify/src/harness.required-providers.test.ts‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,10 @@ describe("requires: ['knowledge'] — the knowledge service and one store", () =
368368
).map((p) => (p as { name?: string }).name);
369369
expect(served).toEqual(expect.arrayContaining([KNOWLEDGE, TURSO]));
370370
expect(served).not.toContain(PGVECTOR);
371-
});
371+
// Budget, as the last case's: 111-114 ms in file order, 431 ms run alone on a cold module cache
372+
// (local, three runs); the full run's last shard read this file at 3.3x local, so 1.4 s cold —
373+
// the file's 120_000 keeps it off vitest's 5000 ms default on a loaded runner.
374+
}, 120_000);
372375

373376
// The arm `os dev` and `os serve` mount on SQLite: a FILE database, so the
374377
// 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", () =
463466
vi.doUnmock('@objectstack/knowledge-turso');
464467
vi.resetModules();
465468
}
466-
});
469+
// Budget: the module cache was just cleared, so constructServedProviders re-imports the provider
470+
// graph — 1138-1365 ms locally (three runs, verbose reporter). The scheduled full run's last Test
471+
// Core shard (run 45888214247) took this file at 3.3x local (52.8 s of tests outside this case vs
472+
// 16.2 s) and ran this case past vitest's 5000 ms default; 1365 ms x 3.3 = 4.5 s leaves no margin
473+
// there, so it takes the file's per-case 120_000 like every boot above.
474+
}, 120_000);
467475
});

0 commit comments

Comments
 (0)