fix: prevent init hang after "Setup complete" (skip bvm update-check + bump Node to 22.22) - #20
Merged
Merged
Conversation
nachoaldamav
force-pushed
the
fix/bvm-hang-skip-update-check
branch
from
August 2, 2026 11:18
fe0318e to
cbf4904
Compare
The init action ran `bvm install <engine> --use-system-node` without
`--skip-update-check` or `--skip-update-path`. After printing "Setup
complete", bvm performs a network call to check for a newer bvm
(getBvmRemoteVersion) and edits shell profile/PATH files. On runners with
restricted network egress the update check blocks indefinitely, so the
step hangs after "Setup complete" and never reaches `bit install` — even
with skip-deps-install: true.
Pass both flags to bvm install. Neither is needed in CI: the action sets
PATH itself, and update notifications are irrelevant in a pipeline.
Also bump the pinned Node from 22.14 to 22.22 to satisfy Bit's current
minimum ("Bit CLI requires at least Node.js 22.22.0"), which the old pin
triggered as a warning on every run.
nachoaldamav
force-pushed
the
fix/bvm-hang-skip-update-check
branch
from
August 2, 2026 11:23
cbf4904 to
614f396
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
init@v3hangs indefinitely right afterbvmprints:It never reaches
bit install— andskip-deps-install: truedoesn't help, because the hang is before that step. Reported by a user whose workflow was unchanged since May; oldest hung run sat for 2.5h.Root cause
The action ran (
scripts/init.ts):After install,
bvm(by default) does two things that run after "Setup complete":getBvmRemoteVersion(), a network call to see if a newer bvm exists (if (!args.skipUpdateCheck)in bvm'scommands/install/install.ts).On a runner with restricted network egress, the update-check request never returns, so the step hangs forever. Clean GitHub-hosted runners have open egress, so the check returns and they pass — which is why this reproduces only in some environments.
Separately, the action pinned Node 22.14, below Bit's current floor — every run logged
Bit CLI requires at least Node.js 22.22.0!.Fix
scripts/init.ts: pass--skip-update-checkand--skip-update-pathtobvm install. Neither is needed in CI — the action already setsPATHitself, and update notifications are irrelevant in a pipeline.action.yml: bump pinned Node22.14→22.22.dist/index.jsrebuilt (ncc).Validation
Manually dispatched
Test Bit Initon this branch (temporarily pointing at the local action withtest-datapinned to engine1.13.58): run 30743985379 — green (1m35s). Log shows:A user independently confirmed the same flags fix the hang on their (restricted) runner. The hang can't be reproduced on clean
ubuntu-latest(open egress), so CI here is a regression check that the happy path still works with the added flags.Release note
@v3consumers only pick this up once thev3tag is moved to the merge commit.