mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-12-03 03:29:51 +00:00
test: keep the dashboard exit fixture outside the 6 Months window (#1765)
Some checks failed
CI / semgrep (push) Has been cancelled
Tests / desktop (push) Has been cancelled
Tests / test (22) (push) Has been cancelled
Tests / test (22.13.0) (push) Has been cancelled
Tests / test (24) (push) Has been cancelled
Tests / test (26) (push) Has been cancelled
Tests / test-platforms (macos-latest) (push) Has been cancelled
Tests / test-platforms (windows-latest) (push) Has been cancelled
Tests / vscode (push) Has been cancelled
Some checks failed
CI / semgrep (push) Has been cancelled
Tests / desktop (push) Has been cancelled
Tests / test (22) (push) Has been cancelled
Tests / test (22.13.0) (push) Has been cancelled
Tests / test (24) (push) Has been cancelled
Tests / test (26) (push) Has been cancelled
Tests / test-platforms (macos-latest) (push) Has been cancelled
Tests / test-platforms (windows-latest) (push) Has been cancelled
Tests / vscode (push) Has been cancelled
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.
This commit is contained in:
parent
87444adc8f
commit
0322472db3
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ async function startHydratingDashboard(): Promise<RunningDashboard> {
|
|||
// 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<RunningDashboard> {
|
|||
// 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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue