From 78a38568a21be7dcfeffa177cf0330e5c64cb027 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 11:47:27 +0000 Subject: [PATCH] test(aggregator): give the #7084 generated-schedule test an explicit timeout (#10385) The 48 seeds are fixed, so the schedule never varies. The test does many temp-file writes and runs in about 0.5s idle, but passes bun's default 5s per-test limit on a loaded host, where bun aborts it partway through the seeds (the short expect() count in the issue). Reproduced by running it niced under CPU contention: 'timed out after 5000ms'. Co-Authored-By: Claude Opus 5.5 --- pm-stack/aggregator/test/activity-github-7084.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pm-stack/aggregator/test/activity-github-7084.test.ts b/pm-stack/aggregator/test/activity-github-7084.test.ts index 6d62470a44..d9a3a7ae29 100644 --- a/pm-stack/aggregator/test/activity-github-7084.test.ts +++ b/pm-stack/aggregator/test/activity-github-7084.test.ts @@ -432,6 +432,10 @@ describe("GitHub hot-list consumer (#7084)", () => { expect((await store.gaps()).map((gap) => gap.status)).toEqual(["unrecoverable", "backfilled"]); }); + // Explicit timeout (#10385): the 48 seeds are fixed, so the schedule + // never varies, but each one does many temp-file writes. The test runs + // in about 0.5s on an idle host and past bun's default 5s per-test limit + // on a loaded one, where bun aborts it partway through the seeds. test("generated failure/restart schedules never checkpoint undurable rows or duplicate activity", async () => { // Deterministic generated traces exercise sparse sequence numbers, // varying page sizes, repeated append failures, and process restarts. @@ -507,7 +511,7 @@ describe("GitHub hot-list consumer (#7084)", () => { rows.map((row) => `activity:github:${row.event_id}`).sort(), ); } - }); + }, 60_000); test("a cursor past the hot-list high-water is unrecoverable, never silently reset", async () => { const parts = stores();