[PR #138] [MERGED] Release train 2/4: automatic game releases #2348

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/138
Author: @ludovic111
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

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


📝 Commits (10+)

  • 874d111 checks: cached verify, and a parity job on the Mac mini for the harnesses a PR can affect
  • 989f843 vanilla-data.sh: keep everything horizon-prepare writes per preparer version, beside the shared data
  • f6191fe parity_hosts.json: linux_only, empty: the four harnesses that once differed on macOS pass there
  • 7b82ee8 Two Horizon runners on the Mac mini: one preparation at a time; docs
  • cfad57d Mac runner: the game's sounds in each preparation; save_roundtrip Linux-only
  • 9e016b6 vanilla-data.sh: clone the sounds into each preparation instead of linking them
  • 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

📊 Changes

13 files changed (+1075 additions, -46 deletions)

View changed files

➕ .github/actionlint.yaml (+3 -0)
📝 .github/workflows/ci.yml (+48 -0)
📝 .github/workflows/release.yml (+207 -41)
➕ docs/known-issues.md (+6 -0)
➕ docs/release-flow.md (+186 -0)
📝 launcher/src/backend.rs (+26 -0)
📝 tests/test_parity_runner.py (+19 -0)
➕ tests/test_release_train.py (+107 -0)
➕ tools/ci/runner-env.sh (+16 -0)
➕ tools/ci/vanilla-data.sh (+91 -0)
📝 tools/parity.py (+55 -5)
📝 tools/parity_hosts.json (+3 -0)
➕ tools/release_train.py (+308 -0)

📄 Description

Part 2 of the release train, stacked on #133 (merge that first; GitHub retargets this one to main).

  • release.yml releases the game by itself: after each green checks run of a push to main, hourly at :17 (so releases held by the cooldown go out), and by hand.
  • tools/release_train.py (decide / notes, unit-tested in tests/test_release_train.py): pull requests merged since the last published game release; release when one changed player-facing paths and the last release is ≥ 3 h old, or at once for release-now; skip-release doesn't count and isn't listed; RELEASES_PAUSED=1 stops it; tags vYYYY.MM.DD[.N] (UTC).
  • Builds in parallel: Linux on ubuntu-22.04, Windows on windows-latest (both with Swatinem/rust-cache), macOS on the Mac mini runner (vars.MAC_RUNNER to send it to GitHub). All three bins named (--bin horizon-client --bin horizon-ctl --bin horizon-prepare), a check that each exists before xtask package, the import checks (otool -L on macOS), each binary started (--help/--version), and on the Mac a 300-frame --offscreen run of a new world with resources prepared from the runner's own Minecraft.
  • Notes: ### New (label feature), ### Fixed (the rest), ### Known issues from the new docs/known-issues.md; title Horizon 2026.10.15.1: <first titles>.
  • Dry run: gh workflow run release --ref <branch> builds everything and writes the notes, publishes nothing (always so off main).
  • Rollback: documented (gh release edit <tag> --draft), launcher test withdrawn_release_is_never_offered.
  • docs/release-flow.md: diagram, labels, pause, rollback.

Test runs in the comments.

🤖 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/138 **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-games` --- ### 📝 Commits (10+) - [`874d111`](https://github.com/horizon-rust/horizon/commit/874d111d6059a22e692ff41992c54bb703353ee0) checks: cached verify, and a parity job on the Mac mini for the harnesses a PR can affect - [`989f843`](https://github.com/horizon-rust/horizon/commit/989f843b1c744946f8bac7a9ddd6c2e08724c1a7) vanilla-data.sh: keep everything horizon-prepare writes per preparer version, beside the shared data - [`f6191fe`](https://github.com/horizon-rust/horizon/commit/f6191fe8ee050eab8c6cc3a4c40c477e4375fb14) parity_hosts.json: linux_only, empty: the four harnesses that once differed on macOS pass there - [`7b82ee8`](https://github.com/horizon-rust/horizon/commit/7b82ee8c16dd42fc0f76538102383576727c7c62) Two Horizon runners on the Mac mini: one preparation at a time; docs - [`cfad57d`](https://github.com/horizon-rust/horizon/commit/cfad57d0b17b95d6ba4edd44c4c631f0f35b9d49) Mac runner: the game's sounds in each preparation; save_roundtrip Linux-only - [`9e016b6`](https://github.com/horizon-rust/horizon/commit/9e016b623502bab7a2e90a42e11219e50952633b) vanilla-data.sh: clone the sounds into each preparation instead of linking them - [`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 ### 📊 Changes **13 files changed** (+1075 additions, -46 deletions) <details> <summary>View changed files</summary> ➕ `.github/actionlint.yaml` (+3 -0) 📝 `.github/workflows/ci.yml` (+48 -0) 📝 `.github/workflows/release.yml` (+207 -41) ➕ `docs/known-issues.md` (+6 -0) ➕ `docs/release-flow.md` (+186 -0) 📝 `launcher/src/backend.rs` (+26 -0) 📝 `tests/test_parity_runner.py` (+19 -0) ➕ `tests/test_release_train.py` (+107 -0) ➕ `tools/ci/runner-env.sh` (+16 -0) ➕ `tools/ci/vanilla-data.sh` (+91 -0) 📝 `tools/parity.py` (+55 -5) 📝 `tools/parity_hosts.json` (+3 -0) ➕ `tools/release_train.py` (+308 -0) </details> ### 📄 Description Part 2 of the release train, stacked on #133 (merge that first; GitHub retargets this one to main). - **release.yml** releases the game by itself: after each green `checks` run of a push to main, hourly at :17 (so releases held by the cooldown go out), and by hand. - **tools/release_train.py** (`decide` / `notes`, unit-tested in `tests/test_release_train.py`): pull requests merged since the last *published* game release; release when one changed player-facing paths and the last release is ≥ 3 h old, or at once for `release-now`; `skip-release` doesn't count and isn't listed; `RELEASES_PAUSED=1` stops it; tags `vYYYY.MM.DD[.N]` (UTC). - **Builds in parallel**: Linux on `ubuntu-22.04`, Windows on `windows-latest` (both with `Swatinem/rust-cache`), macOS on the Mac mini runner (`vars.MAC_RUNNER` to send it to GitHub). All three bins named (`--bin horizon-client --bin horizon-ctl --bin horizon-prepare`), a check that each exists before `xtask package`, the import checks (`otool -L` on macOS), each binary started (`--help`/`--version`), and on the Mac a 300-frame `--offscreen` run of a new world with resources prepared from the runner's own Minecraft. - **Notes**: `### New` (label `feature`), `### Fixed` (the rest), `### Known issues` from the new `docs/known-issues.md`; title `Horizon 2026.10.15.1: <first titles>`. - **Dry run**: `gh workflow run release --ref <branch>` builds everything and writes the notes, publishes nothing (always so off main). - **Rollback**: documented (`gh release edit <tag> --draft`), launcher test `withdrawn_release_is_never_offered`. - `docs/release-flow.md`: diagram, labels, pause, rollback. Test runs in the comments. 🤖 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#2348
No description provided.