Skip to content

fix(install): allow PowerShell cold start in Windows archive extraction - #90

Merged
tupe12334 merged 1 commit into
mainfrom
fix/windows-extract-timeout
Oct 19, 2026
Merged

tupe12334 merged 1 commit into
mainfrom
fix/windows-extract-timeout

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Problem

The should extract .zip archives using PowerShell Expand-Archive on Windows test fails on windows-latest with Test timed out in 5000ms. It failed on #88 and twice on #89. Because the test job is red, the publish job cannot run, so 0.8.5 cannot ship.

Root cause

Windows PowerShell loads user profiles by default. Each cold start on CI runners takes several seconds. The test spawns PowerShell twice: Compress-Archive to build the fixture zip, then Expand-Archive inside extractZip. Neither call passed -NoProfile -NonInteractive. Together they exceed the 5000 ms default.

Change

  • src/lib/install-daemon/extract.ts: the production Expand-Archive call now uses -NoProfile -NonInteractive. This also speeds up real installs on Windows.
  • src/lib/install-daemon/binary-installation.integration.spec.ts: the fixture Compress-Archive call uses the same flags. The single test that spawns PowerShell gets an explicit 30000 ms timeout, with a one-line comment. The global timeout is unchanged. The test is not skipped or retried.

Verification

  • Local (macOS): lint, format:check, spell, knip, and test:coverage --run pass. 229 test files pass. The Windows case is skipped locally, so CI on windows-latest is the real proof.

🤖 Generated with Claude Code

…xtraction

PowerShell loads user profiles by default. On Windows CI runners this adds
several seconds to each spawn. The Expand-Archive test spawns PowerShell twice
(Compress-Archive for setup, Expand-Archive in extractZip), so it exceeded the
5000 ms default timeout.

- extract.ts: add -NoProfile -NonInteractive to the Expand-Archive call. This
  also speeds up installs for users.
- binary-installation spec: same flags on the setup Compress-Archive call, and
  an explicit 30000 ms timeout on that single test.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@tupe12334
tupe12334 merged commit cedfbef into main Oct 19, 2026
10 checks passed
@tupe12334
tupe12334 deleted the fix/windows-extract-timeout branch October 19, 2026 13:12
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