Skip to content

SYM-41: Raise bun test per-test timeout to 30s#9

Open
Swiftyos wants to merge 1 commit into
Swiftyos:mainfrom
Significant-Gravitas:symphony/SYM-41
Open

SYM-41: Raise bun test per-test timeout to 30s#9
Swiftyos wants to merge 1 commit into
Swiftyos:mainfrom
Significant-Gravitas:symphony/SYM-41

Conversation

@Swiftyos
Copy link
Copy Markdown
Owner

Summary

  • Aligns Bun's per-test timeout with the harness's existing 30 s subprocess watchdog (tests/e2e/support.ts:144), fixing local bun run fast-feedback flakes where subprocess-heavy e2e tests (CLI boot/SIGTERM, openclaw multi-command flows, run+report rendering) crossed Bun's 5 s default.
  • Does not mask real hangs: assertProcessCompletes still kills any child subprocess at 30 s, so a genuinely hung test still fails with a clear subprocess kill rather than a Bun timer race.
  • Scope is limited to package.json test / test:e2e scripts; no code or harness changes.

Root cause

On a clean workspace (bun install fresh) the full e2e file ran in 7.6–9.0 s wall time. The slowest individual test (run records the suite in sqlite and report renders both explicit and discovered outputs) was 3.4 s isolated — close enough to 5 s that normal workspace load pushes it over. The ticket reported ~5.1 s for that exact test. CI runs on lightly loaded runners and has stayed green; only loaded local workspaces tripped the limit.

Test plan

  • bun install on a clean workspace
  • bun run fast-feedback passes locally (docs, lint, typecheck, 51 tests in 13.7 s)
  • Repeated bun test tests/e2e runs all green
  • CI green on this PR

Closes SYM-41.

🤖 Generated with Claude Code

Subprocess-heavy e2e tests (CLI boot, SIGTERM handshake, multi-command
openclaw flows, report rendering) regularly approach Bun's default 5 s
per-test limit on loaded local workspaces while CI passes. The harness
already caps each child subprocess at 30 s internally
(assertProcessCompletes in tests/e2e/support.ts), so aligning Bun's
per-test timeout with that watchdog stops false timeouts without
masking real hangs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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