[PR #3348] [MERGED] The batch train builds Nightlies: no more vX.Y.Z game releases #4918

Closed
opened 2026-11-03 05:08:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: ci/train-builds-nightlies


📝 Commits (1)

  • 868256f The batch train builds Nightlies: no more vX.Y.Z game releases

📊 Changes

8 files changed (+224 additions, -269 deletions)

View changed files

📝 .github/workflows/nightly-build.yml (+12 -5)
📝 .github/workflows/release.yml (+27 -139)
📝 docs/release-flow.md (+83 -112)
📝 docs/versioning.md (+5 -0)
📝 tests/test_nightly.py (+5 -2)
📝 tests/test_release_train.py (+29 -0)
📝 tools/ci/nightly.py (+6 -6)
📝 tools/release_train.py (+57 -5)

📄 Description

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

Ludovic decided on 2026-10-28 that Horizon ships only the Nightly (proposed by kacpherek and levzzz5154). This is the switch: the batch train (release.yml, 5 player-facing PRs settled 5 min, or the oldest waited 6 h, release-now, skip-release, RELEASES_PAUSED) keeps deciding when, and now starts nightly build on the green main commit it decided instead of building a vX.Y.Z.

Builds on #3326 (merged: the Nightly builds on main's newest green commit, respects release-blocker, writes player notes). Do not merge before:

  1. #3331 (servers follow the Nightly) has shipped in one more vX.Y.Z, so old servers update to an updater that reads Nightlies;
  2. a launcher@ release carries #3342 (launchers install the Nightly), so launchers that update move over;
  3. kira#52 merges at the same time (else Kira skips or double-posts the Nightlies).

GitHub's latest stays the last vX.Y.Z: launchers, servers and install.sh from before the switch keep a working build.

What changes

  • tools/release_train.py: the train counts pull requests merged since the commit the published nightly was built on (merged_between(game, refs/tags/nightly, head)); nightly_decision: one Nightly build at a time, at most 12 a UTC day (the reviewers' /nightly builds count), except release-now and force, which also pass urgent.
  • release.yml: build/sign/publish replaced by one nightly job: gh workflow run nightly-build.yml --ref main -f base=<head> -f urgent=<…>. Launcher releases (launcher.yml) unchanged.
  • nightly-build.yml + tools/ci/nightly.py: an urgent input skips the day's cap; the notes' "Opt-in, not a release" paragraph becomes a line for players.
  • Docs: docs/release-flow.md (Game releases, When it releases, new Nightly only, Notes, One channel as history, Labels, Starting/Pausing/Rolling back), docs/versioning.md.
  • Tests: NightlyTrainTests, no Nightly build is trusted.

Proof

  • decide run locally against the live repo: last = nightly, 78 player-facing PRs since, held "waiting for checks and parity-main" on main's head (correct: parity-main hadn't passed there).
  • Self-check below. account::tests::the_whole_chain fails on this Mac mini on main's code too (a stray / request in its mock); no launcher code changes here.

pr_ready (tools/pr_ready.py --quick --base ci/nightly-green-base on ludovics-mac-mini, against ci/nightly-green-base at 52dc27fa4, 1 min 33 s)

Check Result
Scope ✅ 8 files, +224 −269
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 402 passed (1 min 19 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (8 s)
launcher tests ❌ 219 passed, 1 failed (4 s)
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
Label skip-release

🤖 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/3348 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `ci/train-builds-nightlies` --- ### 📝 Commits (1) - [`868256f`](https://github.com/horizon-rust/horizon/commit/868256f1a8a4a710d652164f099469fdb54cdf16) The batch train builds Nightlies: no more vX.Y.Z game releases ### 📊 Changes **8 files changed** (+224 additions, -269 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/nightly-build.yml` (+12 -5) 📝 `.github/workflows/release.yml` (+27 -139) 📝 `docs/release-flow.md` (+83 -112) 📝 `docs/versioning.md` (+5 -0) 📝 `tests/test_nightly.py` (+5 -2) 📝 `tests/test_release_train.py` (+29 -0) 📝 `tools/ci/nightly.py` (+6 -6) 📝 `tools/release_train.py` (+57 -5) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Ludovic decided on 2026-10-28 that Horizon ships only the Nightly (proposed by kacpherek and levzzz5154). This is the switch: the batch train (`release.yml`, 5 player-facing PRs settled 5 min, or the oldest waited 6 h, `release-now`, `skip-release`, `RELEASES_PAUSED`) keeps deciding when, and now starts `nightly build` on the green main commit it decided instead of building a `vX.Y.Z`. Builds on #3326 (merged: the Nightly builds on main's newest green commit, respects `release-blocker`, writes player notes). Do not merge before: 1. #3331 (servers follow the Nightly) has shipped in one more `vX.Y.Z`, so old servers update to an updater that reads Nightlies; 2. a `launcher@` release carries #3342 (launchers install the Nightly), so launchers that update move over; 3. kira#52 merges at the same time (else Kira skips or double-posts the Nightlies). GitHub's *latest* stays the last `vX.Y.Z`: launchers, servers and `install.sh` from before the switch keep a working build. ## What changes - `tools/release_train.py`: the train counts pull requests merged since the commit the published `nightly` was built on (`merged_between(game, refs/tags/nightly, head)`); `nightly_decision`: one Nightly build at a time, at most 12 a UTC day (the reviewers' `/nightly` builds count), except `release-now` and `force`, which also pass `urgent`. - `release.yml`: build/sign/publish replaced by one `nightly` job: `gh workflow run nightly-build.yml --ref main -f base=<head> -f urgent=<…>`. Launcher releases (`launcher.yml`) unchanged. - `nightly-build.yml` + `tools/ci/nightly.py`: an `urgent` input skips the day's cap; the notes' "Opt-in, not a release" paragraph becomes a line for players. - Docs: `docs/release-flow.md` (Game releases, When it releases, new **Nightly only**, Notes, One channel as history, Labels, Starting/Pausing/Rolling back), `docs/versioning.md`. - Tests: `NightlyTrainTests`, no Nightly build is `trusted`. ## Proof - `decide` run locally against the live repo: `last = nightly`, 78 player-facing PRs since, held "waiting for checks and parity-main" on main's head (correct: parity-main hadn't passed there). - Self-check below. `account::tests::the_whole_chain` fails on this Mac mini on main's code too (a stray `/` request in its mock); no launcher code changes here. **pr_ready** (`tools/pr_ready.py --quick --base ci/nightly-green-base` on ludovics-mac-mini, against ci/nightly-green-base at 52dc27fa4, 1 min 33 s) | Check | Result | | --- | --- | | Scope | ✅ 8 files, +224 −269 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 402 passed (1 min 19 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (8 s) | | launcher tests | ❌ 219 passed, 1 failed (4 s) | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | Label | `skip-release` | 🤖 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 05:08:54 +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#4918
No description provided.