Repository navigation
Fix machine installation reliability and feedback - #1419
Merged
Merged
Conversation
Collaborator
Author
|
E2E hardware validation passed on an Intel Mac (
The dev instance and its dedicated Tailscale route remain running for inspection. |
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.
Summary
bb-apppackages under each enrollment's data directory instead of npm's system-wide global prefixNO_COLORoutput readableThis fixes machine enrollment failing with
EACCESwhen npm's default global prefix is/usr/local, without requiringsudo, a PATH edit, or a user-wide npm configuration. It also makes the previously quiet package download and daemon connection waits visible and prevents enrollments for different bb servers from sharing onebb-appbinary.Testing
pnpm exec turbo run test --filter=@bb/server --force -- test/app/install-machine-script.test.ts— 16 testspnpm exec turbo run test --filter=@bb/host-daemon --force -- src/protocol-self-update.test.ts— 12 testspnpm exec turbo run test --filter=@bb/app --force -- src/components/dialogs/AddMachineDialog.test.tsx— 2 testspnpm exec turbo run test --filter=@bb/templates --force— 23 testspnpm exec turbo run typecheck --filter=@bb/server --filter=@bb/host-daemon --filter=@bb/templatespnpm exec turbo run typecheck --filter=@bb/server --filter=@bb/appsh -n apps/server/src/assets/install-machine.shgit diff --checkHardware E2E
Validated the real generated installer from this branch against an Intel Mac over Tailscale. The remote machine's npm prefix remained
/usr/local, enrollment completed withoutsudoor npm configuration changes, launchd used the private executable and prefix, the daemon connected successfully, and a provider-discovery RPC completed through the dev server.