Repository navigation
feat: update VM Bridge from the dashboard, and show Workers how to update - #101
Merged
Merged
Conversation
…date The background service's dashboard gets an Update button. It runs `vmbridge update` outside the service (its own process group on macOS, a transient systemd unit on Linux) so the update can stop and start the service. A failed install shows its last line under the button. A Worker now checks for releases too, and its notice opens the git commands that put the release in the user's GitHub copy while keeping their wrangler.jsonc. The dashboard reloads itself once a new version is running.
|
Deployment failed for project vmbridge with the following error: Learn More: https://vercel.com/vkpdevelopers-projects?upgradeToPro=build-rate-limit |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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
The dashboard said a release was out but could only show
vmbridge updateto copy. A Worker never checked for releases at all, and nothing said how to update one.Solution
vmbridge updateoutside the service (its own process group under launchd, a transientsystemd-rununit on Linux), so the update can stop the service and start it again on the new release. A failed install shows its last line under the button, with Try again.vmbridge update(nothing would start a terminal's VM Bridge again).wrangler.jsonc(the Worker name). Documented indocs/cloudflare.mdand the README.Validation
bun run check: 547 pass. Newupdate.test.ts: one install at a time, failure shown, 400 without an install, release check caching.bun run test:workers: passes in workerd.