[PR #3331] [MERGED] Servers follow the Nightly: horizon-server update, install.sh and install.ps1 #4908

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

📋 Pull Request Information

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

Base: main ← Head: feat/servers-follow-nightly


📝 Commits (1)

  • 40e2fe0 Servers follow the Nightly: horizon-server update, install.sh and install.ps1

📊 Changes

8 files changed (+212 additions, -42 deletions)

View changed files

📝 crates/horizon-release-sign/src/lib.rs (+54 -0)
📝 crates/horizon-server/src/api.rs (+1 -1)
📝 crates/horizon-server/src/supervisor.rs (+2 -1)
📝 crates/horizon-server/src/update.rs (+113 -23)
📝 docs/hosting.md (+3 -3)
📝 docs/server.md (+6 -4)
📝 packaging/server/install.ps1 (+17 -5)
📝 packaging/server/install.sh (+16 -5)

📄 Description

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

Step 2 of Nightly only (Ludovic, 2026-10-28): a server runs what its players run.

Server owners see: horizon-server update (and the "Horizon … is out" notice, the panel's Update) offers the current Nightly, installed as nightly-2026-10-28-0c02067 beside the old releases; rollback works as before. install.sh / install.ps1 install the Nightly by default; --version v0.2.95 or --version nightly-2026-10-27 still pick another.

  • update::release(None) reads releases/tags/nightly (GitHub's latest while there is none). pick checks a Nightly's SHA256SUMS with nightly_digest (signed for the nightly channel: a release's signed list replayed as the Nightly is refused, and the other way round) and names it from its title.
  • TagOrder::Nightly(date) follows every release; update_available = a different build that isn't older, so a second Nightly the same day is an update (the supervisor check, api.rs and update --check use it; prune keeps newer).
  • horizon-release-sign: nightly_version(title, published_at) and nightly_date(version).
  • install.sh: same naming with sed; install.ps1 with [char]0xB7 so the file stays ASCII.

Rollout: servers on an older horizon-server keep the last vX.Y.Z (GitHub's latest) until they update to the release that carries this PR, which moves them on at their next update. So this PR should ship in one more vX.Y.Z before the train switches to Nightlies (a later PR).

Checked: sh packaging/server/install.sh --dir $T/h --bin $T/b (temp folders) installed the real current Nightly as nightly-2026-10-28-9b772b2, and horizon-server --version ran from it. New tests: nightlies_follow_every_release, a_nightly_is_picked_with_its_channel_signature_and_named_by_its_build, a_nightly_is_named_by_its_date_and_commit.

Touches CODEOWNERS paths (crates/horizon-server/src/update.rs, crates/horizon-release-sign/): Ludovic's review.

Plan: horizon-parity/agent-state/nightly-only-1.md. Step 1: #3326.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at f843f28a2)

Check Result
Scope ✅ 8 files, +212 −42
Python tests ✅ 402 passed
rustfmt / clippy ✅ / ✅
tests: horizon-release-sign, horizon-server ✅ 66 passed
launcher rustfmt / clippy / tests ✅ / ✅ / ✅ 220 passed
Parity ➖ 1 affected, to run in CI: lan_integration

🤖 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/3331 **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:** `feat/servers-follow-nightly` --- ### 📝 Commits (1) - [`40e2fe0`](https://github.com/horizon-rust/horizon/commit/40e2fe060843c8106b0061435e6d6d4197be39b9) Servers follow the Nightly: horizon-server update, install.sh and install.ps1 ### 📊 Changes **8 files changed** (+212 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-release-sign/src/lib.rs` (+54 -0) 📝 `crates/horizon-server/src/api.rs` (+1 -1) 📝 `crates/horizon-server/src/supervisor.rs` (+2 -1) 📝 `crates/horizon-server/src/update.rs` (+113 -23) 📝 `docs/hosting.md` (+3 -3) 📝 `docs/server.md` (+6 -4) 📝 `packaging/server/install.ps1` (+17 -5) 📝 `packaging/server/install.sh` (+16 -5) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Step 2 of **Nightly only** (Ludovic, 2026-10-28): a server runs what its players run. **Server owners see:** `horizon-server update` (and the "Horizon … is out" notice, the panel's Update) offers the current Nightly, installed as `nightly-2026-10-28-0c02067` beside the old releases; `rollback` works as before. `install.sh` / `install.ps1` install the Nightly by default; `--version v0.2.95` or `--version nightly-2026-10-27` still pick another. - `update::release(None)` reads `releases/tags/nightly` (GitHub's latest while there is none). `pick` checks a Nightly's SHA256SUMS with `nightly_digest` (signed for the `nightly` channel: a release's signed list replayed as the Nightly is refused, and the other way round) and names it from its title. - `TagOrder::Nightly(date)` follows every release; `update_available` = a different build that isn't older, so a second Nightly the same day is an update (the supervisor check, `api.rs` and `update --check` use it; `prune` keeps `newer`). - `horizon-release-sign`: `nightly_version(title, published_at)` and `nightly_date(version)`. - install.sh: same naming with sed; install.ps1 with `[char]0xB7` so the file stays ASCII. **Rollout:** servers on an older `horizon-server` keep the last `vX.Y.Z` (GitHub's latest) until they update to the release that carries this PR, which moves them on at their next update. So this PR should ship in one more `vX.Y.Z` before the train switches to Nightlies (a later PR). **Checked:** `sh packaging/server/install.sh --dir $T/h --bin $T/b` (temp folders) installed the real current Nightly as `nightly-2026-10-28-9b772b2`, and `horizon-server --version` ran from it. New tests: `nightlies_follow_every_release`, `a_nightly_is_picked_with_its_channel_signature_and_named_by_its_build`, `a_nightly_is_named_by_its_date_and_commit`. Touches CODEOWNERS paths (`crates/horizon-server/src/update.rs`, `crates/horizon-release-sign/`): Ludovic's review. Plan: `horizon-parity/agent-state/nightly-only-1.md`. Step 1: #3326. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at f843f28a2) | Check | Result | | --- | --- | | Scope | ✅ 8 files, +212 −42 | | Python tests | ✅ 402 passed | | rustfmt / clippy | ✅ / ✅ | | tests: horizon-release-sign, horizon-server | ✅ 66 passed | | launcher rustfmt / clippy / tests | ✅ / ✅ / ✅ 220 passed | | Parity | ➖ 1 affected, to run in CI: lan_integration | 🤖 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:48 +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#4908
No description provided.