Skip to content

test(undo): give the 500-stroke soak a 30s timeout - #296

Merged
barakbl merged 1 commit into
mainfrom
test/undo-soak-timeout
Jul 17, 2026
Merged

test(undo): give the 500-stroke soak a 30s timeout#296
barakbl merged 1 commit into
mainfrom
test/undo-soak-timeout

Conversation

@barakbl

@barakbl barakbl commented Jul 17, 2026

Copy link
Copy Markdown
Owner

The 0.61.0 release CI (release PR #295) went red on a flaky timeout, not a real failure: tests/tile-capture.test.ts → the 500-stroke eviction/compaction soak exceeded vitest's default 5s per-test timeout on the GitHub runner.

The test is correct and not hung — it does 500 real encode/decode iterations plus ~15 compactions (each decoding up to 30 folded entries). It runs in ~0.8s locally and passed when PR11 part 1 merged (#292); it just sits right at the 5s boundary and tips over under runner load.

Fix: raise that one test's ceiling to 30s (it(..., 30_000)). No behavior or coverage change — still 500 strokes, same assertions.

vitest run 834/834 locally. Once merged, release-please will refresh #295 and its CI should go green.

The soak does 500 real encode/decode iterations plus ~15 compactions; it runs in
~0.8s locally but is a genuine multi-second job on GitHub runners and flaked past
vitest's default 5s per-test timeout on the 0.61.0 release CI (it passed when PR11
part 1 merged - it sits right at the boundary). The test is correct and not hung;
raise its ceiling to 30s so runner load can't fail the release. Behaviour unchanged.
@barakbl
barakbl merged commit 1a954a2 into main Jul 17, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant