GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — fix: bound the Claude Code install against a stalled download by RishDevs · Pull Request #1962 · anthropics/claude-code-action ConversationProblemIf the Claude Code download stalls, the action waits until the job times out, which is 360 minutes unless Root cause#898 moved the install from
Solution
On POSIX the pipeline runs in its own process group and the whole group is signalled, so Because the group no longer receives signals sent to Bun's own group, SIGINT, SIGTERM and SIGHUP are forwarded to it during the install. Bun waits for the group to exit, using the same 10 second SIGKILL escalation, and then dies from the original signal.
ReproductionI ran the old and new At 130 seconds the old code was still on attempt 1 with Test evidenceAll results are local, on macOS with Bun 1.4.4, the version pinned in
Known test issue: with twice as many CPU-bound processes as cores, a small share of Compatibility and limitationsThere are no new inputs, outputs or dependencies, and #709 reports retries failing after a timed-out install with "another process is currently installing Claude", and its comments point to stale lock files. #790 changed the Cancellation has not been tested on a GitHub-hosted runner. GitHub documents SIGINT, then SIGTERM, then killing the process tree if the entry process is still running. In a local simulation of that sequence on macOS, The deadline runs in Bun, so it only holds while Bun is running. A forwarded signal can delay Bun's exit by up to 10 seconds if the install ignores it. SIGKILL to Bun can't be forwarded, and the installer then keeps running without a deadline, as it did before this change. Windows has not been run. There is no process group or signal forwarding on that path, so only AI assistanceI used Claude Code (Claude Opus 5.5) for investigation, implementation, testing, and drafting this PR. The test results and known limitations are documented above.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe move to the unified run.ts entrypoint dropped the 120 second limit that base-action/action.yml still applies to the same install script when the timeout utility is available. A stalled download then never reached the retry loop and held the job until its timeout. Run the install in its own process group with a deadline, escalating from SIGTERM to SIGKILL, so a timed-out attempt is gone before the next one starts. Forward SIGINT, SIGTERM and SIGHUP to that group, since it no longer receives signals sent to Bun's own group. This branch has not been deployedNo deployments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |