Skip to content

fix(release): the bundled-tool check can no longer hang - #46

Open
Maxaubert wants to merge 1 commit into
mainfrom
fix/43-verify-timeouts
Open

Maxaubert wants to merge 1 commit into
mainfrom
fix/43-verify-timeouts

Conversation

@Maxaubert

Copy link
Copy Markdown
Owner

Closes #43.

Cause: verify-bundle ran each tool with execFileSync. Its 120 s timeout only kills the direct child, and execFileSync then keeps waiting for the stdout/stderr pipes to close. LibreOffice's soffice.com starts soffice.bin, which inherits those pipes, so the step could wait forever (the 45 min stall on #42's dry run).

Fix:

  • Each smoke run settles on process exit (plus a 250 ms drain), not on pipe close.
  • After 90 s a run is reported as hung by name and killed as a process tree (taskkill /T /F).
  • The step logs which tool is running.
  • LibreOffice runs with a throwaway profile, --headless and --norestore.
  • Both 'Verify bundled tools' steps get timeout-minutes: 10.
  • Version 0.8.2.

Verification: node scripts/verify-bundle.mjs resources and dist/win-unpacked/resources both pass locally in about 7 s, LibreOffice included. This PR's release dry run exercises the new script on CI.

🤖 Generated with Claude Code

Smoke runs settle on process exit instead of waiting for the output pipes,
so LibreOffice's soffice.bin can no longer hold the check open (the 45 minute
hang). Each run is killed as a tree after 90 s and reported by name, LibreOffice
runs with a throwaway profile, and both workflow steps get a 10 minute limit.

Closes #43

Co-Authored-By: Claude Opus 5.5 <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.

Release: packed-app tool check can hang for 45+ minutes

1 participant