test: give envelope spawn-loop tests timeout headroom - #65
Merged
Conversation
The two continuation-loop tests spawn ax ~10 times each; under machine load that exceeds Bun's default 5s test timeout (reproduced at load average ~6.5, including in isolation). Same fix as the bench tests in #58. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
yusukebe
added a commit
that referenced
this pull request
Aug 4, 2026
Third round of the same flake: after #58 (bench) and #65 (cli envelope loops), yet another spawn-heavy bench test breached Bun's 5s default under machine load. The suite spawns bun+ax subprocesses by design, so stop playing whack-a-mole per test and raise the default via bun test --timeout in the test script and CI. (bunfig [test].timeout is not honored — verified.) Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--json-envelopecontinuation-loop tests intest/cli.test.tsWhy
Same class as #58, other file: each loop spawns
bun+ax ~10 times, and under machine load (reproduced locally at load average ~6.5, where the whole suite slows 6x) the total exceeds Bun's default 5s per-test timeout —json envelope: budget continuation reconstructs the full resultfailed with a timeout + JSON parse EOF from the killed spawn, including when run in isolation. ci.yml runs on 2-core runners, so the same flake is reachable there.With the headroom both tests pass under the same load. No behavior under test is changed.
🤖 Generated with Claude Code