[PR #141] [MERGED] Release train 3/4: automatic launcher releases, version built in from the tag #2349

Closed
opened 2026-11-02 15:55:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: ci/release-train-launcher


📝 Commits (8)

  • 8aacb48 release: automatic game releases after main's green checks
  • 7adfe44 launcher: rustfmt the rollback test
  • e994c8a release: the macOS smoke run opens a world (from a scratch folder) and checks it drew one
  • fb25680 release: the macOS smoke run draws 1500 frames; 300 end before the world has loaded
  • 6d759dc release_train: name a feature split over several pull requests once in the title; no leading Fix
  • fa61f26 launcher: automatic releases, the version built in from the tag
  • 76f3e7c launcher.yml: GPUI's runtime shaders on a Mac runner without the Metal toolchain (the Mac mini)
  • 98ca844 launcher: the Microsoft sign-in's User-Agent says the built-in version too

📊 Changes

12 files changed (+1077 additions, -102 deletions)

View changed files

📝 .github/workflows/launcher.yml (+142 -29)
📝 .github/workflows/release.yml (+207 -41)
➕ docs/known-issues.md (+6 -0)
📝 docs/release-flow.md (+142 -0)
📝 launcher/README.md (+6 -5)
📝 launcher/src/account.rs (+1 -1)
📝 launcher/src/backend.rs (+128 -9)
📝 launcher/src/cli.rs (+1 -1)
➕ tests/test_release_train.py (+107 -0)
➕ tools/release_train.py (+308 -0)
📝 website/build.mjs (+1 -1)
📝 website/src/main.js (+28 -15)

📄 Description

Part 3 of the release train, stacked on #138.

  • launcher.yml releases the launcher by itself: on a push to main touching launcher/, crates/horizon-prepare/ or crates/horizon-theme/, hourly at :47, and by hand, with the game's decide rules (tools/release_train.py decide --kind launcher: cooldown, release-now, skip-release, RELEASES_PAUSED). Tag launcher-vX.Y.Z: next patch, or next minor after a feature PR. Linux on ubuntu-22.04, Windows on GitHub, macOS on the Mac mini runner. Published with --latest=false, notes from the PRs. Pushes to launcher* branches still only build.
  • No version-bump commits: backend::VERSION reads HORIZON_LAUNCHER_VERSION via option_env! (falls back to CARGO_PKG_VERSION); clap's --version, the User-Agent and self-update use it. Unit test the_version_is_the_one_the_release_workflow_injects; each build checks --version prints the release's version.
  • Finding launcher releases among many game releases: with several game releases a day, the newest launcher release falls out of the newest 100 (launcher) / 30 (website) releases. Both now fall back to git/matching-refs/tags/launcher-v + releases/tags/<tag> (unit test launcher_tags_from_matching_refs_newest_first).
  • launcher/README.md and docs/release-flow.md updated.

Checked on the Mac mini: cargo fmt --check, clippy -D warnings, cargo test --release --lib (15 passed), and HORIZON_LAUNCHER_VERSION=0.9.1 cargo build → horizon-launcher 0.9.1.

🤖 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/141 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `ci/release-train-launcher` --- ### 📝 Commits (8) - [`8aacb48`](https://github.com/horizon-rust/horizon/commit/8aacb487984615009fdb2aba4fe1e8890a2956a3) release: automatic game releases after main's green checks - [`7adfe44`](https://github.com/horizon-rust/horizon/commit/7adfe44f6cc235de58263639823f6965d080f58b) launcher: rustfmt the rollback test - [`e994c8a`](https://github.com/horizon-rust/horizon/commit/e994c8ab95007e4b872999d692c2f361155cf3ed) release: the macOS smoke run opens a world (from a scratch folder) and checks it drew one - [`fb25680`](https://github.com/horizon-rust/horizon/commit/fb256809a709f37496bd306b1972458abb640371) release: the macOS smoke run draws 1500 frames; 300 end before the world has loaded - [`6d759dc`](https://github.com/horizon-rust/horizon/commit/6d759dc7bbaa623ed67b85d0a61487329d864d06) release_train: name a feature split over several pull requests once in the title; no leading Fix - [`fa61f26`](https://github.com/horizon-rust/horizon/commit/fa61f262c3be87ffabe261771f9093e5ed2bb79b) launcher: automatic releases, the version built in from the tag - [`76f3e7c`](https://github.com/horizon-rust/horizon/commit/76f3e7c2a82eb06e78384ad69b9d007d5ebbd3de) launcher.yml: GPUI's runtime shaders on a Mac runner without the Metal toolchain (the Mac mini) - [`98ca844`](https://github.com/horizon-rust/horizon/commit/98ca844f07db77a586721b886acea1363313cf4c) launcher: the Microsoft sign-in's User-Agent says the built-in version too ### 📊 Changes **12 files changed** (+1077 additions, -102 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/launcher.yml` (+142 -29) 📝 `.github/workflows/release.yml` (+207 -41) ➕ `docs/known-issues.md` (+6 -0) 📝 `docs/release-flow.md` (+142 -0) 📝 `launcher/README.md` (+6 -5) 📝 `launcher/src/account.rs` (+1 -1) 📝 `launcher/src/backend.rs` (+128 -9) 📝 `launcher/src/cli.rs` (+1 -1) ➕ `tests/test_release_train.py` (+107 -0) ➕ `tools/release_train.py` (+308 -0) 📝 `website/build.mjs` (+1 -1) 📝 `website/src/main.js` (+28 -15) </details> ### 📄 Description Part 3 of the release train, stacked on #138. - **launcher.yml** releases the launcher by itself: on a push to main touching `launcher/`, `crates/horizon-prepare/` or `crates/horizon-theme/`, hourly at :47, and by hand, with the game's decide rules (`tools/release_train.py decide --kind launcher`: cooldown, `release-now`, `skip-release`, `RELEASES_PAUSED`). Tag `launcher-vX.Y.Z`: next patch, or next minor after a `feature` PR. Linux on `ubuntu-22.04`, Windows on GitHub, macOS on the Mac mini runner. Published with `--latest=false`, notes from the PRs. Pushes to `launcher*` branches still only build. - **No version-bump commits**: `backend::VERSION` reads `HORIZON_LAUNCHER_VERSION` via `option_env!` (falls back to `CARGO_PKG_VERSION`); clap's `--version`, the User-Agent and self-update use it. Unit test `the_version_is_the_one_the_release_workflow_injects`; each build checks `--version` prints the release's version. - **Finding launcher releases among many game releases**: with several game releases a day, the newest launcher release falls out of the newest 100 (launcher) / 30 (website) releases. Both now fall back to `git/matching-refs/tags/launcher-v` + `releases/tags/<tag>` (unit test `launcher_tags_from_matching_refs_newest_first`). - `launcher/README.md` and `docs/release-flow.md` updated. Checked on the Mac mini: `cargo fmt --check`, `clippy -D warnings`, `cargo test --release --lib` (15 passed), and `HORIZON_LAUNCHER_VERSION=0.9.1 cargo build` → `horizon-launcher 0.9.1`. 🤖 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-02 15:55:12 +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#2349
No description provided.