Skip to main content
← Back to list
01Issue
FeatureShippedSwamp CLIPublic
Assigneesskunk-ape

Relationships

#4505 Run the test suite in several smaller processes, so verification is faster with no test weakened

Opened by skunk-ape · 11/7/2026· Shipped 11/9/2026

Run swamp's test suite in several smaller deno test processes instead of one large one, so verification runs get faster without weakening any test.

Why

deno test --parallel runs every test file in one process, and those files contend on process-wide locks. Tests that take 100–215 s in the suite take 3–11 s alone.

Measured on a 32-core host, 3 runs each:

Layout Wall time CPU
1 process × 32 workers (today) 281, 276, 278 s about 2,700 s
4 processes × 8 workers 203, 205, 203 s about 1,590 s

That is about 27% less wall time and 41% less CPU. All tests still run; none changes.

Scope

  • Split the test files into shards, balanced rather than by plain hash: hash-based shards finished between 68 s and 204 s.
  • Report one combined result: failed tests from every shard in one summary, and a nonzero exit if any shard fails.
  • Keep the check that fails a run on leftover temp entries, across all shards.
  • Keep the short per-run temp paths that AF_UNIX sockets need.
  • Apply it to verify-build, and decide whether Flaky Test Detection and local deno run test use it too.

Follow-on

integration/datastore_v3_litestream_restore_test.ts runs for about 200 s and sets the wall time of 4 × 8 on its own. Splitting it could bring a run to about 90–100 s (estimate). That can land here or separately.

Depends on

swamp-club#4504 has to be fixed first: remote_execution_test.ts "elastic queueing" fails often under sharding because of it.

Unknowns

GitHub runners have fewer cores, so the gain there isn't measured. Sharding may also limit a stall to one shard and lower how often one happens, but a stall has still been seen in a process with 4 workers, so it doesn't prevent them.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 8 MOREREVIEW+ 8 MOREPR_LINKED+ 2 MORESESSION_SUMMARIZED

Shipped

11/9/2026, 12:15:38 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
skunk-ape assigned skunk-ape11/8/2026, 10:29:03 PM

Sign in to post a ripple.