[PR #1209] [MERGED] Launcher: Stable and Nightly update channels; nightly releases within minutes, stable once a day #3423

Closed
opened 2026-11-03 04:09:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1209
Author: @ludovic111
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ludovic111

Base: main ← Head: feat/update-channels


📝 Commits (4)

  • ea5994a Update channels: Stable (daily) and Nightly (every build) in the launcher
  • aa65c74 Update channels: stable at 20:00 UTC, Nightly checks every 30 minutes
  • d02b66f Install page: say Nightly's 30-minute check under Stable and Nightly only
  • b197682 Merge origin/main into feat/update-channels (Settings: keep update_channel and main's ping_notice_seen)

📊 Changes

18 files changed (+376 additions, -129 deletions)

View changed files

📝 .github/workflows/promote.yml (+12 -9)
📝 .github/workflows/release.yml (+5 -4)
📝 docs/release-flow.md (+29 -18)
📝 docs/security.md (+5 -5)
📝 docs/versioning.md (+8 -5)
📝 launcher/README.md (+12 -3)
📝 launcher/docs/settings.png (+0 -0)
📝 launcher/src/backend.rs (+149 -23)
📝 launcher/src/backend/release_loading_tests.rs (+4 -4)
📝 launcher/src/cli.rs (+23 -3)
📝 launcher/src/main.rs (+33 -18)
📝 launcher/src/mcp.rs (+15 -1)
📝 tests/test_release_channels.py (+34 -11)
📝 tests/test_release_train.py (+5 -5)
📝 tools/release_channels.py (+29 -13)
📝 tools/release_train.py (+5 -4)
📝 website/docs/faq.md (+1 -1)
📝 website/docs/install.md (+7 -2)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

Ludovic asked (2026-10-22): in the launcher's settings, players choose Nightly or Stable. Nightly gets every beta straight away and releases constantly; Stable gets a build once it has proven good, about once a day.

  1. Launcher: "Updates" = Stable (default) | Nightly, replacing the "Beta builds" switch. One line each: Stable: a tested build about once a day. / Nightly: every change as soon as it is built, several times a day; can break. Stored as "update_channel": "stable" | "nightly" in settings.json. Migration: an old "beta_builds": true reads as nightly (the old key is dropped on the next save; a channel already set wins; an unknown channel reads as stable instead of wiping every setting). Install/update logic unchanged (nightly = pre-releases included).
    • CLI: new horizon-launcher update-channel [stable|nightly] (--json); versions lists each release as stable / nightly (was beta). MCP: new update_channel tool; list_versions says nightly for betas. Versions page shows "Nightly" / "Stable".
  2. Nightly cadence: release_train.py DEBOUNCE 15 min → 5 min (one merge wave), MAX_WAIT 1 h → 20 min. One release run at a time is unchanged (concurrency group), tag scheme unchanged. The launcher train shares these constants.
  3. Stable once a day: promote.yml runs at 20:07 UTC (21:07 in Paris in winter time, from 25 October), with retries at 20:37, 21:07 and 21:37 (cron 7,37 20-21 * * *) for a run GitHub starts late or skips. release_channels.py now asks "had it been out 6 h at 20:00 UTC?" (that is, published by 14:00 UTC). Every run until the next day's 20:00 picks the same beta, so retries and late runs never promote twice. All the other rules are unchanged: smoke test, no release-blocker, never older than stable. workflow_dispatch (tag, force, dry_run) is unchanged: by hand still skips the wait. The stalled issue fires at 30 h (24 h before): a beta waits at most ~30 h on a normal day and is promoted in that run, so the issue only opens when a beta missed a promotion it was due for.
  4. Words: the beta notes footer now reads: "This is a nightly build: launchers on the Nightly channel (Settings, Updates) install it now; Stable gets it in the next daily update if it holds up." Also updated: docs/release-flow.md (intro, diagram, When it releases, Channels, launcher train), docs/versioning.md (Betas; go-day steps 5 and 7), docs/security.md, website/docs/install.md ("Stable and Nightly") and faq.md, launcher/README.md, and the release.yml/promote.yml comments. Kira only announces stable releases and never says "beta" to players, so nothing changes there (checked ~/code/kira).
  5. The launcher's own self-update is unchanged.
  6. Nightly lag: while the channel is Nightly, a launcher left open looks for new releases every 30 minutes. Stable keeps every 4 hours (UpdateChannel::check_every, tested). This is documented in website/docs/install.md, docs/release-flow.md and the launcher README.
  7. README screenshot: launcher/docs/settings.png is the new Settings page with Stable selected. It is the same kind of capture as the old one: the window content without the title bar, 1040 wide (699 high instead of 700, after removing the window's 1 px border line).

Consistent with #1132: it merges cleanly with feat/switch-to-0-2 (git merge-tree), and its docs don't talk about channels.

Screenshots (Mac mini, real launcher, scratch HORIZON_LAUNCHER_HOME)

Stable (default) Nightly
stable nightly

Toggled in the UI (Tab to the control, then Space): Nightly → Stable. settings.json then held "update_channel": "stable":
toggled

Migration seen live: a scratch settings.json holding only {"beta_builds": true} made the launcher install the pre-release v2026.10.22 by itself on first start. Stable would have taken v2026.10.19.15. (The screen session was locked, so the shots are per-window captures. Opening on Settings used a one-line local patch that was never committed. Synthetic mouse clicks don't reach a locked session, but keyboard events do.)

Self-check

  • cargo fmt --check (workspace + launcher): clean
  • cargo clippy --all-targets --features gpui/runtime_shaders -- -D warnings (launcher): clean. The workspace has no Rust changes.
  • cargo test (launcher): 95 + 13 + 1 passed, including the new the_update_channel_is_stored_by_name_and_the_old_beta_switch_reads_as_nightly and updates_follow_the_stable_channel_unless_nightly_is_picked
  • python3 -m unittest tests.test_release_channels tests.test_release_train: 27 OK. New: test_stable_moves_once_a_day_whenever_the_run_starts, plus the stall threshold and debounce tests.
  • Parity harnesses: none depend on any changed file (checked against the 327 shared dependency lists).
  • CLI/MCP by hand: update-channel show/set/invalid, --json, the MCP update_channel set and invalid (isError), and versions listing nightly/stable.

release_train.py decide --kind game --head origin/main (12:30 UTC):

{"release": false, "reason": "no merged pull request changed what players run", "tag": "v2026.10.22.01", "last": "v2026.10.22", "last_published": "2026-10-22T12:15:52Z", ...}

release_channels.py promote --dry-run (PROMOTE_AT 20:00 UTC):

now (12:54 UTC):         Would promote: v2026.10.21 had been out 6 h at the daily promotion, passed its smoke test and no release-blocker covers it
--now 2026-10-22T19:30Z: Would promote: v2026.10.21 ...   (before 20:00 the last promotion time is yesterday's)
--now 2026-10-22T20:07Z: Would promote: v2026.10.22 had been out 6 h at the daily promotion, passed its smoke test and no release-blocker covers it

For the orchestrator / Ludovic

  • Release-kick: the orchestrator is setting ~/fleet/release-kick to every 5 min (the script itself needs no change).
  • Go-day timing (docs/versioning.md): after this merges, stable moves only at 20:07–21:37 UTC. v0.2.0 published after 14:00 UTC becomes stable the next day at 20:07, unless promoted by hand (gh workflow run promote -f tag=v0.2.0). If this merges before the game bridge v2026.10.22 is promoted, the bridge becomes stable at 20:07 UTC today instead of ~18:15. A manual promote without a tag right now would still pick v2026.10.21 (the go-day "decision for Ludovic first" is unchanged).
  • Promotion time: 20:00 UTC, as the orchestrator asked (21:00 Paris in winter time, 22:00 in summer time).
  • Leftover: the launcher's own releases share the 5/20 min settling. That is fine while they are rare; say if launcher releases should keep 15 min/1 h.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1209 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/update-channels` --- ### 📝 Commits (4) - [`ea5994a`](https://github.com/horizon-rust/horizon/commit/ea5994a58a212369b68b921e9565c592ccd6455e) Update channels: Stable (daily) and Nightly (every build) in the launcher - [`aa65c74`](https://github.com/horizon-rust/horizon/commit/aa65c74e0f1b7fa21999ac51086b6ee66bd7fc7d) Update channels: stable at 20:00 UTC, Nightly checks every 30 minutes - [`d02b66f`](https://github.com/horizon-rust/horizon/commit/d02b66fd9aefdd14eb1d26987051896963d5172b) Install page: say Nightly's 30-minute check under Stable and Nightly only - [`b197682`](https://github.com/horizon-rust/horizon/commit/b197682dc8f373cbc891af89959df1970fef40e8) Merge origin/main into feat/update-channels (Settings: keep update_channel and main's ping_notice_seen) ### 📊 Changes **18 files changed** (+376 additions, -129 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/promote.yml` (+12 -9) 📝 `.github/workflows/release.yml` (+5 -4) 📝 `docs/release-flow.md` (+29 -18) 📝 `docs/security.md` (+5 -5) 📝 `docs/versioning.md` (+8 -5) 📝 `launcher/README.md` (+12 -3) 📝 `launcher/docs/settings.png` (+0 -0) 📝 `launcher/src/backend.rs` (+149 -23) 📝 `launcher/src/backend/release_loading_tests.rs` (+4 -4) 📝 `launcher/src/cli.rs` (+23 -3) 📝 `launcher/src/main.rs` (+33 -18) 📝 `launcher/src/mcp.rs` (+15 -1) 📝 `tests/test_release_channels.py` (+34 -11) 📝 `tests/test_release_train.py` (+5 -5) 📝 `tools/release_channels.py` (+29 -13) 📝 `tools/release_train.py` (+5 -4) 📝 `website/docs/faq.md` (+1 -1) 📝 `website/docs/install.md` (+7 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Ludovic asked (2026-10-22): in the launcher's settings, players choose **Nightly** or **Stable**. Nightly gets every beta straight away and releases constantly; Stable gets a build once it has proven good, about once a day. 1. **Launcher: "Updates" = Stable (default) | Nightly**, replacing the "Beta builds" switch. One line each: *Stable: a tested build about once a day.* / *Nightly: every change as soon as it is built, several times a day; can break.* Stored as `"update_channel": "stable" | "nightly"` in `settings.json`. Migration: an old `"beta_builds": true` reads as nightly (the old key is dropped on the next save; a channel already set wins; an unknown channel reads as stable instead of wiping every setting). Install/update logic unchanged (nightly = pre-releases included). - CLI: new `horizon-launcher update-channel [stable|nightly]` (`--json`); `versions` lists each release as `stable` / `nightly` (was `beta`). MCP: new `update_channel` tool; `list_versions` says `nightly` for betas. Versions page shows "Nightly" / "Stable". 2. **Nightly cadence:** `release_train.py` `DEBOUNCE` 15 min → **5 min** (one merge wave), `MAX_WAIT` 1 h → **20 min**. One release run at a time is unchanged (concurrency group), tag scheme unchanged. The launcher train shares these constants. 3. **Stable once a day:** `promote.yml` runs at **20:07 UTC** (21:07 in Paris in winter time, from 25 October), with retries at 20:37, 21:07 and 21:37 (cron `7,37 20-21 * * *`) for a run GitHub starts late or skips. `release_channels.py` now asks "had it been out 6 h **at 20:00 UTC**?" (that is, published by 14:00 UTC). Every run until the next day's 20:00 picks the same beta, so retries and late runs never promote twice. All the other rules are unchanged: smoke test, no release-blocker, never older than stable. `workflow_dispatch` (`tag`, `force`, `dry_run`) is unchanged: by hand still skips the wait. The stalled issue fires at **30 h** (24 h before): a beta waits at most ~30 h on a normal day and is promoted in that run, so the issue only opens when a beta missed a promotion it was due for. 4. **Words:** the beta notes footer now reads: *"This is a nightly build: launchers on the Nightly channel (Settings, Updates) install it now; Stable gets it in the next daily update if it holds up."* Also updated: docs/release-flow.md (intro, diagram, When it releases, Channels, launcher train), docs/versioning.md (Betas; go-day steps 5 and 7), docs/security.md, website/docs/install.md ("Stable and Nightly") and faq.md, launcher/README.md, and the release.yml/promote.yml comments. Kira only announces stable releases and never says "beta" to players, so nothing changes there (checked ~/code/kira). 5. The launcher's own self-update is unchanged. 6. **Nightly lag:** while the channel is Nightly, a launcher left open looks for new releases every **30 minutes**. Stable keeps every 4 hours (`UpdateChannel::check_every`, tested). This is documented in website/docs/install.md, docs/release-flow.md and the launcher README. 7. **README screenshot:** `launcher/docs/settings.png` is the new Settings page with Stable selected. It is the same kind of capture as the old one: the window content without the title bar, 1040 wide (699 high instead of 700, after removing the window's 1 px border line). Consistent with #1132: it merges cleanly with `feat/switch-to-0-2` (`git merge-tree`), and its docs don't talk about channels. ## Screenshots (Mac mini, real launcher, scratch `HORIZON_LAUNCHER_HOME`) Stable (default) | Nightly ---|--- ![stable](https://raw.githubusercontent.com/ludovic111/horizon/08610910f8e8dc516c1e3dd33abf0e653bb8c207/update-channels/settings-stable.png) | ![nightly](https://raw.githubusercontent.com/ludovic111/horizon/08610910f8e8dc516c1e3dd33abf0e653bb8c207/update-channels/settings-nightly.png) Toggled in the UI (Tab to the control, then Space): Nightly → Stable. `settings.json` then held `"update_channel": "stable"`: ![toggled](https://raw.githubusercontent.com/ludovic111/horizon/08610910f8e8dc516c1e3dd33abf0e653bb8c207/update-channels/settings-toggled.png) Migration seen live: a scratch `settings.json` holding only `{"beta_builds": true}` made the launcher install the pre-release `v2026.10.22` by itself on first start. Stable would have taken `v2026.10.19.15`. (The screen session was locked, so the shots are per-window captures. Opening on Settings used a one-line local patch that was never committed. Synthetic mouse clicks don't reach a locked session, but keyboard events do.) ## Self-check - `cargo fmt --check` (workspace + launcher): clean - `cargo clippy --all-targets --features gpui/runtime_shaders -- -D warnings` (launcher): clean. The workspace has no Rust changes. - `cargo test` (launcher): 95 + 13 + 1 passed, including the new `the_update_channel_is_stored_by_name_and_the_old_beta_switch_reads_as_nightly` and `updates_follow_the_stable_channel_unless_nightly_is_picked` - `python3 -m unittest tests.test_release_channels tests.test_release_train`: 27 OK. New: `test_stable_moves_once_a_day_whenever_the_run_starts`, plus the stall threshold and debounce tests. - Parity harnesses: none depend on any changed file (checked against the 327 shared dependency lists). - CLI/MCP by hand: `update-channel` show/set/invalid, `--json`, the MCP `update_channel` set and invalid (`isError`), and `versions` listing nightly/stable. `release_train.py decide --kind game --head origin/main` (12:30 UTC): ``` {"release": false, "reason": "no merged pull request changed what players run", "tag": "v2026.10.22.01", "last": "v2026.10.22", "last_published": "2026-10-22T12:15:52Z", ...} ``` `release_channels.py promote --dry-run` (PROMOTE_AT 20:00 UTC): ``` now (12:54 UTC): Would promote: v2026.10.21 had been out 6 h at the daily promotion, passed its smoke test and no release-blocker covers it --now 2026-10-22T19:30Z: Would promote: v2026.10.21 ... (before 20:00 the last promotion time is yesterday's) --now 2026-10-22T20:07Z: Would promote: v2026.10.22 had been out 6 h at the daily promotion, passed its smoke test and no release-blocker covers it ``` ## For the orchestrator / Ludovic - **Release-kick:** the orchestrator is setting `~/fleet/release-kick` to every 5 min (the script itself needs no change). - **Go-day timing (docs/versioning.md):** after this merges, stable moves only at 20:07–21:37 UTC. `v0.2.0` published after 14:00 UTC becomes stable the **next day** at 20:07, unless promoted by hand (`gh workflow run promote -f tag=v0.2.0`). If this merges before the game bridge `v2026.10.22` is promoted, the bridge becomes stable at 20:07 UTC today instead of ~18:15. A manual `promote` without a tag right now would still pick `v2026.10.21` (the go-day "decision for Ludovic first" is unchanged). - **Promotion time:** 20:00 UTC, as the orchestrator asked (21:00 Paris in winter time, 22:00 in summer time). - **Leftover:** the launcher's own releases share the 5/20 min settling. That is fine while they are rare; say if launcher releases should keep 15 min/1 h. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:09:25 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3423
No description provided.