Skip to content

test(cli): stop the installer suite cleanup from timing out on slow runners - #397

Merged
ElbertePlinio merged 1 commit into
mainfrom
fix/394-installer-cleanup-timeout
Oct 28, 2026
Merged

ElbertePlinio merged 1 commit into
mainfrom
fix/394-installer-cleanup-timeout

Conversation

@ElbertePlinio

@ElbertePlinio ElbertePlinio commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Main went red after the 0.7.0 version PR merged. Every installer test passed, but the suite's afterAll hook failed with "Hook timed out in 10000ms". It removes a temp directory that holds an npm cache and several package installs, and on a slow runner that took longer than vitest's 10 second default. The tree was identical to the green PR run (#378); only runner speed differed (56.5 s for the suite against 37 s).

The cleanup hook now has its own 120 second timeout. Nothing else changes.

Closes #394. Part of #377: the v0.7.0 tag should go on a commit with green CI.

Requirement Verified by Result
A slow synchronous cleanup no longer fails the suite Scratch test with an 11 s blocking afterAll, run with the default timeout and with 120 s (not committed) Default: "Hook timed out in 10000ms"; 120 s: passed
Installer suite still passes bunx vitest run packages/cli/test/installer.test.ts 23 passed
Typecheck, lint, PickCheck bun run typecheck, bun run lint, pickcheck check --base origin/main --fail-on new,worsened,unmatched Passed, no violations

Rollback: revert this commit.

Reviewed with sol-loop: 1 round with GPT-6.1 Sol. Sol verdict: approved.

Removing the suite's npm cache and installs took longer than the 10 s default hook timeout on a loaded CI runner, so main failed after every installer test passed. Closes #394.
@ElbertePlinio
ElbertePlinio merged commit 718a72f into main Oct 28, 2026
10 checks passed
@ElbertePlinio
ElbertePlinio deleted the fix/394-installer-cleanup-timeout branch October 28, 2026 17:37
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(cli): installer suite cleanup can exceed the 10 s hook timeout

1 participant