Skip to content

Fix deploy script hanging CI after a successful deploy - #10

Merged
tbh-23 merged 1 commit into
mainfrom
fix/deploy-exit-and-timeout
Jul 22, 2026
Merged

Fix deploy script hanging CI after a successful deploy#10
tbh-23 merged 1 commit into
mainfrom
fix/deploy-exit-and-timeout

Conversation

@tbh-23

@tbh-23 tbh-23 commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Context

Auto-deploy (PR #9) is live and working — the site correctly updated to current main (verified: nested modules like js/views/practice.js serve at 200). But the first runs finished their deploy work and then hung ~6 minutes before being cancelled.

Cause

scripts/deploy-puter.mjs never calls process.exit(0) on success. The @heyputer/puter.js SDK keeps a handle open (socket/timer), so the process doesn't self-terminate when main() resolves. The CI step hangs until something ends it — on run #29960287886 that was the next run's cancel-in-progress, which is why it showed cancelled despite logging Done. Live at .... With no timeout cap, an isolated hang would run to GitHub's 6-hour default.

Fix

  • process.exit(0) after main() resolves (the process.exit(1) failure path already existed).
  • timeout-minutes: 10 on the deploy job as a defensive backstop.

Deploy logic itself is unchanged and already verified end-to-end.

🤖 Generated with Claude Code

The deploy work completed fine (site updated), but the Node process never
exited: the puter.js SDK holds an open handle, so main() resolving didn't
end the process. The CI step then hung ~6 min until it was cancelled by the
next run's concurrency rule (observed on run #29960287886). With no timeout
cap, a hang could otherwise run to GitHub's 6-hour default.

- Add process.exit(0) on success (process.exit(1) on failure already existed).
- Add timeout-minutes: 10 to the deploy job as a defensive cap.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tbh-23
tbh-23 merged commit 779c91e into main Jul 22, 2026
@tbh-23
tbh-23 deleted the fix/deploy-exit-and-timeout branch August 3, 2026 16:35
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