Skip to content

Installer test: async fixture build with explicit timeout diagnostics (refs #352) - #379

Merged
jimhoyd merged 1 commit into
mainfrom
fix/install-test-build-timeout-352
Sep 21, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
fix/install-test-build-timeout-352

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Refs #352 (does not close it).

Evidence: build alone 1.2s; full npm test on 12 cores: first installer test (build+pack) 8.2s, 0 failures; with 48 CPU burners (4x oversubscription) build 9.3s (8x). The 128s in the issue is not reproduced here, so the fixed 120s budget is a load-sensitive guard, not a measured cost. Nothing else in test/ builds dist; CI already runs npm run build before npm test.

Change: build and npm pack in packRelease() now run through an async execFile helper (does not block the file's event loop), 600s safety budget, and failures say 'timed out after N ms (budget ...)' or 'exited with CODE after N ms' plus child output. Each installer test still uses the freshly built and packed tarball.

Other fixed spawnSync/execFileSync timeouts (10-120s) in test/ and scripts/ run the built CLI or npm pack, not builds; they share the same 'status null' failure shape but were not changed.

Verified: npm ci, npm run verify (exit 0), lint, tsc.

🤖 Generated with Claude Code

… (refs #352)

The synchronous 120s build reported a timeout as 'null !== 0'. Run build and
pack through an async child with a 600s safety budget, and report timeout vs
non-zero exit with elapsed time and child output.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jimhoyd
jimhoyd merged commit 6af6e60 into main Sep 21, 2026
20 checks passed
@jimhoyd
jimhoyd deleted the fix/install-test-build-timeout-352 branch September 21, 2026 14:17
jimhoyd added a commit that referenced this pull request Sep 22, 2026
…352, #412) (#431)

Package smoke's TypeScript probe and the installer test's installer/doctor
children still used fixed 120s/180s/60s limits; they now use the same generous
hung-child budgets as their siblings. The ReDoS ceiling and installer fixture
build were already relaxed by #414 and #379.

Co-authored-by: Claude Sonnet 5 <[email protected]>
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