Skip to content

Commit 6e4642e

Browse files
committed
test(plugin-pinyin-search): give the boot-reconcile suite a 30 s budget
With the seed batched, the remaining cost under load is the real-kernel boots and the 2,500-row reconcile walks the cases exist to measure. On a 4-core box with 20 busy loops they alone took 6.8 s and 9.9 s, past vitest's 5 s default. The budget sits on the one describe that boots the kernel; the package config stays on vitest's defaults. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T5digj2EfFsbXihqJEo1ix
1 parent 11d10c2 commit 6e4642e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎packages/plugins/plugin-pinyin-search/src/boot-reconcile.integration.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@ function history(): Array<Record<string, unknown>> {
179179
}));
180180
}
181181

182-
describe('#25634 the boot reconcile reads what changed since its last completed walk', () => {
182+
// [#25749] Each case pays for real-kernel boots over a SQLite file (two in
183+
// most) and at least one full 2,500-row reconcile walk; the forced-rebuild
184+
// case walks twice. Idle, the slowest case takes about 1 s. On a 4-core box
185+
// with 20 busy loops the boots and walks alone took 6.8 s and 9.9 s (seed
186+
// excluded), past vitest's 5 s default, so the suite carries its own budget.
187+
describe('#25634 the boot reconcile reads what changed since its last completed walk', { timeout: 30_000 }, () => {
183188
it('a first boot walks every row; an unchanged second boot reads none — and a receipt sits in sys_migration', async () => {
184189
const first = await boot({ before: (f) => f.directInsert(history()) });
185190
await first.plugin.whenReconciled();

0 commit comments

Comments
 (0)