Relationships
#4528 Split the Litestream restore test file so it no longer sets the test suite's wall time
Opened by skunk-ape · 11/8/2026· Shipped 11/9/2026
Split integration/datastore_v3_litestream_restore_test.ts into several smaller test files, so the test suite's wall time is no longer set by this one file.
Why
The file holds 34 tests and runs for about 200 s in the full suite. Deno runs a file's tests one after another in one worker, so this file alone is a ~200 s critical path. When the suite runs in parallel shards (swamp-club#4505), every other file finishes earlier and this one sets the run's wall time: 4 shards × 8 workers measured about 205 s.
Splitting it by theme, for example restore, recovery and teardown, would let those parts run in parallel. Estimate: a sharded run drops to about 90–100 s. Not measured.
Scope
- Move the tests into a few files of similar total time. Keep every test and assertion as it is.
- Share the harness and helpers through a helper module, not by copying them.
- Keep the per-run temp dir cleanup and the short AF_UNIX socket paths the harness relies on.
- Refresh the shard timing weights from #4505 afterwards.
Depends on
swamp-club#4505, to measure the gain.
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.