feat(updater): add beta update channel with schema version guard#627
Merged
wizzomafizzo merged 2 commits intomainfrom Apr 5, 2026
Merged
feat(updater): add beta update channel with schema version guard#627wizzomafizzo merged 2 commits intomainfrom
wizzomafizzo merged 2 commits intomainfrom
Conversation
Add opt-in beta update channel so pre-release GitHub releases are served to users who set update_channel = "beta" in config. - New update_channel config field (stable/beta) exposed via settings API - Updater sets go-selfupdate Prerelease flag when channel is beta - Manifest generator gains --prerelease and --merge flags for building combined manifests with both stable and beta releases - CI workflow publishes beta manifest by merging prerelease entry into existing stable manifest on CDN - Schema version check on boot refuses to start if database is from a newer binary, preventing silent corruption on channel downgrade
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
- Test CheckSchemaVersion for fresh DB, current version, and schema-ahead - Test latestEmbeddedVersion with valid and invalid directories - Test HandleSettingsUpdate for update channel setting
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.
update_channelconfig field (stable/beta) with getter/setter, exposed via settings APIPrereleaseflag when channel isbeta, allowing pre-release manifest entries to be detected--prereleaseand--mergeflags to manifest generator for building combined manifests containing both stable and beta releasespublish-betaCI job that downloads existing manifest from CDN, merges the new pre-release entry, and uploads the combined manifest (with concurrency group to prevent races)CheckSchemaVersionguard inMigrateUpthat refuses to start if the database schema version is ahead of the binary's latest migration, preventing silent corruption when switching from a newer binary (e.g. beta) to an older one (e.g. stable)