Skip to content

fix(sandbox): give the queue-cap eviction test the time CI needs - #4969

Merged
yannickmonney merged 1 commit into
mainfrom
fix/sandbox-queue-cap-test-timeout
Oct 13, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/sandbox-queue-cap-test-timeout

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

the first-come line for host room > queue-cap eviction invalidates an in-flight waiter generation (added with #4169) fills the sandbox's whole 10,000-waiter line on purpose. That takes a few seconds on a fast laptop and more than five on a GitHub runner, so the test hits bun's default 5-second timeout whenever it actually runs. Main stays green only because Turbo replays @tale/sandbox#test from its cache. #4963's runs missed the cache and failed on it twice ("this test timed out after 5000ms", jobs 115505534847 and 115531184522).

This gives the test an explicit 30-second limit. The file's other heavy tests already have limits of their own (10, 15 and 20 seconds).

  • bun test src/session/session-routes.test.ts (services/sandbox): 327 pass, 0 fail, 9.8 s for the file on a laptop.
  • oxfmt check clean.

The test fills the whole 10,000-waiter line on purpose, a few seconds
of work on a fast laptop and more than five on a CI runner, so it hit
bun's 5-second default whenever its result was not replayed from
Turbo's cache: #4963's runs failed on it twice. It now has thirty
seconds, as the file's other heavy tests have limits of their own.
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 13, 2026
Merged via the queue into main with commit 808ab3c Oct 13, 2026
@yannickmonney
yannickmonney deleted the fix/sandbox-queue-cap-test-timeout branch October 13, 2026 22:34
yannickmonney added a commit that referenced this pull request Oct 13, 2026
The checks ran against a main whose sandbox queue-cap test timed out on
CI runners; #4969 gave it room, and a re-run would test the old merge.
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