Implement the prerelease (beta) software-update channel - #24
Merged
Conversation
All three update channels pointed at releases/latest, which excludes GitHub prereleases by definition, so the beta channel could never offer one and its menu item had been removed from the prefs dropdown. - New OakSelectGitHubRelease(releases, includePrereleases): given a GitHub "list releases" response, picks the highest-version non-draft entry per OakCompareVersionStrings (the list is creation-ordered, so a hotfix published after a newer beta must not win by position). Including stables means beta users converge back onto the stable release once it catches up with the beta cycle. - The feed parser now accepts a JSON array, reducing it via OakSelectGitHubRelease before OakExtractUpdateInfo; an empty selection routes to the existing "Incomplete server response" path. - Beta channel now fetches /releases?per_page=20; Release stays on releases/latest, Canary too (no nightly stream exists). - Prefs: "Prereleases" menu item and transformer entry restored. - release.yml: versions containing -beta publish with --prerelease, keeping releases/latest (the stable feed) on the stable build. - Tests: -undead/-undead-beta.N ordering assertions (comparator needed no changes) and coverage for the selection function (stable-only list, mixed lists in both orders, position trap, draft/garbage entries, empty list). Verified against a doctored local feed (offer dialog showed 2.1.2-undead-beta.1 over 2.1.1-undead) and against the live endpoint (stable-only list reports "Up To Date").
This was referenced Jun 11, 2026
Merged
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
All three update channels pointed at
releases/latest, which excludes GitHub prereleases by definition, so the beta channel could never offer one and its "Prereleases" menu item had been removed from the prefs dropdown. This makes the beta channel real.OakSelectGitHubRelease(releases, includePrereleases)— given a GitHub "list releases" response, picks the highest-version non-draft entry perOakCompareVersionStrings. Selection is by version, not array position (the list is creation-ordered; a hotfix published after a newer beta must not win). Stables are included so beta users converge back onto the stable release once it catches up with the beta cycle.OakSelectGitHubReleasebeforeOakExtractUpdateInfo; an empty selection routes to the existing "Incomplete server response" path./releases?per_page=20; Release stays onreleases/latest; Canary too (no nightly stream exists).kSoftwareUpdateChannelPrereleasetransformer entry restored.release.ymladds--prereleasetogh release createwhen the CHANGELOG version matches*-beta*, keepingreleases/latest(the stable feed) on the stable build. A beta release is therefore just a CHANGELOG entry whose version isvX.Y.Z-undead-beta.N.bin/extract_changesneeds no change (exact string match on the version).Tests
t_OakCompareVersionStrings.mm: ordering assertions for the fork's real tag forms (2.1.2-undead-beta.1 < 2.1.2-undead,beta.2 < beta.10,2.1.1-undead < 2.1.2-undead-beta.1, legacy2.0.23-undead.0). The existing comparator passed all of them unchanged.t_OakSelectGitHubRelease.mm(new): stable-only list, mixed lists in both orders, position trap, draft/garbage/missing-tag entries, empty list, prerelease-only list with prereleases excluded.Runtime verification
Driven in the running app (channel set to beta, real menu action triggered):
v2.1.2-undead-beta.1prerelease placed second in the array behind a stable → offer dialog: "TextMate 2.1.2-undead-beta.1 is now available. You have version 2.1.1-undead."[]→ "Error Checking for Update — Incomplete server response."releases/latest, "Up To Date" (unchanged path).beta.Not covered here
Publishing the first actual beta (a CHANGELOG entry with a
-beta.Nversion) is a follow-up action; until one exists the beta channel resolves the newest stable, as verified above.