Skip to content

feat(update): beta channel that delivers release candidates (reborn) - #1204

Merged
omartelo merged 3 commits into
rebornfrom
beta-channel-reborn
Nov 25, 2026
Merged

omartelo merged 3 commits into
rebornfrom
beta-channel-reborn

Conversation

@omartelo

Copy link
Copy Markdown
Collaborator

Summary

Release candidates were built by hand on Linux, so nothing proved they ran on Windows or macOS. This PR routes them through the release workflow and adds a beta channel that delivers them.

CI (release.yml)

  • v*-* tags are no longer excluded. A pre-release builds and runs the e2e suites on all three systems, and is published with --prerelease, so releases/latest (install.sh, the Scoop manifest, the stable channel) never names it.
  • The aur and homebrew jobs skip pre-releases.
  • A pre-release attaches its own PKGBUILD with the checksums filled in. PKGBUILD.tpl now splits _tag (the git tag) from pkgver (0.93.0rc15, which pacman can read). The stable AUR render is unchanged apart from the two placeholders.
  • A pre-release's notes are the [Unreleased] section at its tag.

Backend

  • semver.Less orders two pre-releases identifier by identifier (SemVer 11.4). Before, rc.9 and rc.15 compared equal, so beta would never have offered the next RC. New semver.IsPreRelease accepts X.Y.Z-label.N and rejects git describe builds.
  • ghrelease.ReleasesWithPre keeps the pre-releases. appupdate reads the update.channel setting (store.BetaUpdates) on every lookup.
  • The install command follows the target release. For a pre-release: deb/rpm run install.sh pinned with the new LICH_TAG, Arch builds the release's PKGBUILD with makepkg -si, the Windows installer works as before, and Homebrew and Scoop get the release page (docs/ceilings.md).
  • A pre-release build switched back to stable is never moved down. It waits for its own release.

Window

  • Settings › Updates › Channel: Stable / Beta, translated in every locale. Switching stores the setting and runs the same check as "Check for updates".

User-visible copy

  • Title "Channel", options "Stable" and "Beta".
  • Description: "Beta offers each release candidate as soon as it is out, before the stable release." Without it, "Beta" does not say what you receive or that it comes before the stable release.
  • CHANGELOG entry under Added.

Tests

  • semver_test: the contract changed. The two cases pinning "rc1 and rc2 are not ordered", and the garbage case that depended on it, now expect the SemVer order.
  • New: TestIsPreRelease, TestStatusChannel, TestStatusPreReleaseBuildGetsItsRelease, TestBetaInstallCommand, TestBetaUpdates, and the ReleasesWithPre case.
  • The pre-release PKGBUILD render was run locally against the v0.93.0-rc.15 assets. Its pkgver and the desktop and icon hashes match the PKGBUILD built by hand for that tag.
  • Local gate green: backend and native/ gofmt, vet, fix and test.

Reborn only

This is #1203 ported onto reborn, plus what reborn's window needs to build in the release workflow. The native webview links WebKitGTK, so:

  • release.yml installs libgtk-3-dev libwebkit2gtk-4.1-dev libxext-dev, the same set native.yml already installs on this branch.
  • nfpm.yaml (deb, rpm, archlinux) and PKGBUILD.tpl depend on GTK 3, WebKitGTK 4.1 and libXext. The list comes from objdump -p of the rc.15 window. libturbojpeg is left out because CI links it statically.

The Settings › Updates conflict was resolved against reborn's pane: the Channel row sits under the version row, and switching runs runCheck.

Pre-release tags now run the whole release workflow on Linux, Windows and
macOS and publish a GitHub pre-release, skipping the AUR and Homebrew.
Settings > Updates > Channel picks stable or beta; beta reads pre-releases
too, which semver now orders identifier by identifier.

On reborn the release workflow also installs the GTK and WebKitGTK headers
the native webview builds against, and the deb, rpm, Arch package and
PKGBUILD depend on gtk3, webkit2gtk-4.1 and libXext.

semver_test: the contract changed, two pre-releases are now ordered.
The sweep asserted on the pane still loading, a state the contract never
promised: settle does not wait for the tree's read, so a slow runner hovered
the pane's background, the only clickable then. Measured with the CPU held to
one core: 300/300 failures before, 0/300 after.
@omartelo
omartelo merged commit b0fc47f into reborn Nov 25, 2026
3 of 8 checks passed
@omartelo
omartelo deleted the beta-channel-reborn branch November 25, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant