From 0322472db34af9f05217b10bea68ee0b17224b67 Mon Sep 17 00:00:00 2001 From: Resham Joshi <65915470+iamtoruk@users.noreply.github.com> Date: Sat, 17 Oct 2026 17:32:53 +0200 Subject: [PATCH] test: keep the dashboard exit fixture outside the 6 Months window (#1765) The cold-hydration exit tests wait for the Lifetime phase to hold the hydration lock. Their sessions were 200 days old, which this week falls inside the 6 Months index window, so they parsed in that phase and Lifetime never held the lock long enough: both tests time out on every platform, also on the commit before #1761. 400 days stays outside 6 Months and inside Lifetime. --- tests/dashboard-process-exit.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dashboard-process-exit.test.ts b/tests/dashboard-process-exit.test.ts index f036a208..2d04e167 100644 --- a/tests/dashboard-process-exit.test.ts +++ b/tests/dashboard-process-exit.test.ts @@ -69,7 +69,7 @@ async function startHydratingDashboard(): Promise { // plus 2000 utimes on a cold temp dir, then 2000 unlinks, is what pushed this // past the 30s limit on Windows CI. Same 60 MB, a twentieth of the files. const body = '{}\n'.repeat(200_000) - const old = new Date(Date.now() - 200 * 24 * 60 * 60 * 1_000) + const old = new Date(Date.now() - 400 * 24 * 60 * 60 * 1_000) await Promise.all(Array.from({ length: 100 }, async (_, offset) => { const sessionPath = join(sessionsDir, `old-${offset}.jsonl`) await writeFile(sessionPath, body) @@ -122,7 +122,7 @@ async function startHydratingDashboard(): Promise { // The cold background index takes and releases the hydration lock once per // phase. The opening phases hold it briefly with gaps in between, so a lock // seen then can be gone a moment later; only the lifetime phase, which parses - // these 200-day-old sessions, holds it for seconds. The banner names the phase + // these 400-day-old sessions, holds it for seconds. The banner names the phase // and lifetime is last, so a lock seen after its label is lifetime's. await waitFor( async () => output.includes('loading Lifetime') && pathExists(dashboard.hydrationLock),