[PR #1012] [MERGED] Releases: beta and stable channels, promoted after 6 hours #2987

Closed
opened 2026-11-02 16:00:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/release-channels


📝 Commits (2)

  • 2a7303f Releases: beta and stable channels, promoted after 6 hours
  • a307bd2 Release channels: blockers hold every beta, latest only moves forward, a stalled promotion opens an issue

📊 Changes

8 files changed (+478 additions, -30 deletions)

View changed files

➕ .github/workflows/promote.yml (+52 -0)
📝 .github/workflows/release.yml (+16 -3)
📝 docs/release-flow.md (+53 -6)
➕ tests/test_release_channels.py (+107 -0)
➕ tools/release_channels.py (+211 -0)
📝 tools/release_train.py (+21 -11)
📝 website/build.mjs (+8 -5)
📝 website/src/main.js (+10 -5)

📄 Description

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

Security brief (Ludovic, 2026-10-19), item 1, release side. Based on main (#1011 and #1013 are merged). The website change here makes sure the stable release is always on the page.

What

  • release.yml publishes every game release as a beta: --prerelease --latest=false. GitHub's latest stays the last stable release, and horizon-server update (which reads releases/latest) and Kira (which skips pre-releases) already follow it. The macOS build uploads the offscreen game run's report as smoke-test.json, attached to the release.
  • promote.yml + tools/release_channels.py: every 30 min, promote the newest beta that is newer than stable, has been out 6 h, has smoke-test.json, and is not covered by an issue labelled release-blocker. An open blocker holds every beta. Once closed as completed, it still holds the betas published before the fix. Closed as not planned, it holds nothing. The issue's text is never read: its author could edit it after a maintainer labels it. Nothing older than the current stable is ever promoted, even with force, because horizon-server update and install.sh follow GitHub's latest.
  • Stall alert: when the oldest beta newer than stable has waited 24 h, promote.yml opens an issue "Promotion to stable has stalled" with the last reason. The next promotion closes it. promote.yml has persist-credentials: false.
  • Website: fetches the newest 100 releases, plus GitHub's latest (the stable one) when a day of betas pushes it out of them.
  • On promotion, the release becomes stable and latest, and its title and notes are regenerated to cover everything since the previous stable release (release_train.py notes --stable). Kira's announcement and the launcher's notes therefore list everything the skipped betas held.
  • By hand from the phone: Actions → promote → Run workflow with tag (no wait, still respects blockers) and force, or dry_run. Blocking is the release-blocker label.
  • release_train.py: decide counts merges since the newest release of either channel, so betas don't re-release the same changes. Beta notes carry a line saying the build is a beta.
  • docs/release-flow.md: "Channels", the new label and the flowchart.

How tested

  • python3 -m unittest tests.test_release_channels tests.test_release_train: 20 tests. Due/not due, smoke missing, by-hand vs force, drafts/stable never promoted, blockers ignore their text, fixed vs not-planned blockers, force never moves latest backwards, the 24 h stall and its issue text, beta/stable notes. The website build (node website/build.mjs) baked the stable releases. The full tests/ suite gives the same 2 errors as on main without .local (test_parity_runner, test_rust_parity).
  • Real read-only dry run against the live repo: release_channels.py promote --dry-run prints no beta is due. With --tag v2026.10.19.01 it explains it is already stable, not newer and has no smoke test, and exits 1.
  • actionlint: no new findings. promote.yml can only be dispatched once it is on main (GitHub's rule), so its first scheduled run after merge is the live check. Until a beta exists it prints "no beta is due".
  • The release.yml build/publish path is covered by the dry runs on #1011's branch. A dry run of this branch is in the comment below.

Needs the orchestrator

The release-blocker label exists (the orchestrator created it).

🤖 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/1012 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/release-channels` --- ### 📝 Commits (2) - [`2a7303f`](https://github.com/horizon-rust/horizon/commit/2a7303f76f298487d49bf23cabf4fdc37fe8056b) Releases: beta and stable channels, promoted after 6 hours - [`a307bd2`](https://github.com/horizon-rust/horizon/commit/a307bd2e3d1b8247c63baa1c1cf63d8ed2f9327b) Release channels: blockers hold every beta, latest only moves forward, a stalled promotion opens an issue ### 📊 Changes **8 files changed** (+478 additions, -30 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/promote.yml` (+52 -0) 📝 `.github/workflows/release.yml` (+16 -3) 📝 `docs/release-flow.md` (+53 -6) ➕ `tests/test_release_channels.py` (+107 -0) ➕ `tools/release_channels.py` (+211 -0) 📝 `tools/release_train.py` (+21 -11) 📝 `website/build.mjs` (+8 -5) 📝 `website/src/main.js` (+10 -5) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Security brief (Ludovic, 2026-10-19), item 1, release side. Based on main (#1011 and #1013 are merged). The website change here makes sure the stable release is always on the page. ## What - **release.yml** publishes every game release as a **beta**: `--prerelease --latest=false`. GitHub's *latest* stays the last stable release, and `horizon-server update` (which reads `releases/latest`) and Kira (which skips pre-releases) already follow it. The macOS build uploads the offscreen game run's report as `smoke-test.json`, attached to the release. - **promote.yml + tools/release_channels.py**: every 30 min, promote the newest beta that is newer than stable, has been out 6 h, has `smoke-test.json`, and is not covered by an issue labelled `release-blocker`. An open blocker holds every beta. Once closed as completed, it still holds the betas published before the fix. Closed as not planned, it holds nothing. The issue's text is never read: its author could edit it after a maintainer labels it. Nothing older than the current stable is ever promoted, even with `force`, because `horizon-server update` and `install.sh` follow GitHub's latest. - **Stall alert**: when the oldest beta newer than stable has waited 24 h, promote.yml opens an issue "Promotion to stable has stalled" with the last reason. The next promotion closes it. promote.yml has `persist-credentials: false`. - **Website**: fetches the newest 100 releases, plus GitHub's latest (the stable one) when a day of betas pushes it out of them. - **On promotion**, the release becomes stable and latest, and its title and notes are regenerated to cover everything since the previous stable release (`release_train.py notes --stable`). Kira's announcement and the launcher's notes therefore list everything the skipped betas held. - **By hand from the phone**: Actions → promote → Run workflow with `tag` (no wait, still respects blockers) and `force`, or `dry_run`. Blocking is the `release-blocker` label. - **release_train.py**: `decide` counts merges since the newest release of either channel, so betas don't re-release the same changes. Beta notes carry a line saying the build is a beta. - docs/release-flow.md: "Channels", the new label and the flowchart. ## How tested - `python3 -m unittest tests.test_release_channels tests.test_release_train`: 20 tests. Due/not due, smoke missing, by-hand vs force, drafts/stable never promoted, blockers ignore their text, fixed vs not-planned blockers, force never moves latest backwards, the 24 h stall and its issue text, beta/stable notes. The website build (`node website/build.mjs`) baked the stable releases. The full `tests/` suite gives the same 2 errors as on main without `.local` (test_parity_runner, test_rust_parity). - Real read-only dry run against the live repo: `release_channels.py promote --dry-run` prints `no beta is due`. With `--tag v2026.10.19.01` it explains it is already stable, not newer and has no smoke test, and exits 1. - `actionlint`: no new findings. promote.yml can only be dispatched once it is on main (GitHub's rule), so its first scheduled run after merge is the live check. Until a beta exists it prints "no beta is due". - The release.yml build/publish path is covered by the dry runs on #1011's branch. A dry run of this branch is in the comment below. ## Needs the orchestrator The `release-blocker` label exists (the orchestrator created it). 🤖 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 16:00:38 +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#2987
No description provided.