Skip to content

test(cli): size agents doctor link and unlink timeout for four CLI spawns - #246

Merged
ElbertePlinio merged 2 commits into
mainfrom
fix/239-agents-doctor-timeout
Oct 5, 2026
Merged

ElbertePlinio merged 2 commits into
mainfrom
fix/239-agents-doctor-timeout

Conversation

@ElbertePlinio

@ElbertePlinio ElbertePlinio commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

The test "exits 0 with no problem entries after link then unlink" spawns the built CLI three times in a row. It kept the default 5000 ms timeout. Under CPU contention one spawn can take over 1 s, so the test hit the limit. It now has a 30 s timeout. Other multi-spawn tests in the same file already use that value. This is not a product defect.

QA pass skipped: this change is test-only and has no user-facing behavior.

Requirement Verified by Scenario Result Evidence
Reproduce the timeout Load reproduction 10 busy loops and vitest pinned to 2 CPUs, before the fix Timed out at 5000 ms in 3 of 3 runs Local run
Test passes under the same load Load reproduction Same load, after the fix 10 of 10 passed in 5.6 to 9.3 s Local run
Ten full-suite runs under load pass this test Automated test 15 full vitest run suites on a 16-CPU host: 5 at load 13 to 22 from other work, 5 at load 3 to 5, 5 with 14 added busy loops at load 16 to 18 Target passed 15 of 15, in 1.8 to 4.2 s. Unrelated failures: desktop-linux/test/integration.test.ts once, android/test/emulator.test.ts once, core/test/containment.test.ts once (fixed separately in #245) Local run
File passes without load Automated test vitest run packages/cli/test/agents.test.ts 33 of 33 passed Local run, CI
Full suite and coverage Automated test bun run test:coverage 2882 passed, 6 skipped, thresholds intact Local run, CI
Lint, types, function limits oxlint, tsc, PickCheck 0.4.0 --base origin/main All clean Local run

Closes #239

@ElbertePlinio
ElbertePlinio merged commit 2b89986 into main Oct 5, 2026
10 checks passed
@ElbertePlinio
ElbertePlinio deleted the fix/239-agents-doctor-timeout branch October 5, 2026 22:15
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.

test: agents doctor link and unlink test times out under parallel load

1 participant