[PR #390] [MERGED] tools/ci: the daily version-port launchd agent, written but not installed #2526

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

📋 Pull Request Information

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

Base: main ← Head: feat/version-port-agent


📝 Commits (2)

  • 94b5d2d tools/ci: the daily version-port agent (detect, port, harnesses, report, publish dry run), not installed
  • d8eafd7 version-port-daily.sh: no fleet-load priority change (it lowered the calling session); launchd's Nice and LowPriorityIO do it

📊 Changes

3 files changed (+144 additions, -4 deletions)

View changed files

📝 docs/version-ports.md (+46 -4)
➕ tools/ci/dev.horizon.version-port.plist (+21 -0)
➕ tools/ci/version-port-daily.sh (+77 -0)

📄 Description

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

Slice 4 of the port pipeline: the daily agent (docs/version-ports.md, "Turning on the daily agent"). Stacked on #389 (publish). Written, not installed or loaded.

What

  • tools/ci/version-port-daily.sh: updates a detached worktree of origin/main (~/code/horizon-parity/port-main, .local linking the shared data like a parity worktree), runs detect --dry-run; for a new release port (prepare, diff, regen, report), a baseline tools/parity.py on main, harnesses NEW against it, report, and publish --check-github as a dry run; a snapshot only gets prepare, diff and report. Then detect (the version is remembered only once its port went through, so a failed run retries the next day) and a note on Kira card 28. HORIZON_PORT_VERSION / HORIZON_PORT_REF override what it ports. It never runs publish --yes, never pushes, never touches shared-local/.
  • tools/ci/dev.horizon.version-port.plist: LaunchAgent template (@HOME@), daily 16:00 Zurich time, Nice 10, LowPriorityIO, log ~/Library/Logs/horizon-version-port.log.
  • The doc: how to turn it on (label, copy the script out of any checkout, install the plist, launchctl bootstrap, kickstart for a first run) and off (launchctl bootout).

Why

So a new Minecraft release gets its port report (and the issue list ready to publish) the day it lands, without anyone starting it.

How tested

  • plutil -lint on the plist, bash -n on the script.
  • Ran the script by hand (HORIZON_PORT_MAIN=/tmp/…): it made the worktree, linked .local, and printed "Nothing new: latest release 26.3, Horizon pins 26.3", exit 0. That run showed the script's ~/fleet/load prio low lowered the calling agent session; the second commit removes it (launchd's Nice and LowPriorityIO already do it).

pr_ready (tools/pr_ready.py --quick --base feat/version-port-publish on ludovics-mac-mini, against feat/version-port-publish at 721b7ae39, 35 s)

Check Result
Scope ✅ 3 files, +144 −4
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 256 run, FAILED (errors=2) (22 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ no harness affected
Label skip-release

The two Python test errors (test_parity_runner OracleReuse, test_rust_parity source hashes) fail the same way on plain origin/main on macOS (/private/var vs /var temp paths, a stubbed java exiting 127); CI runs them on Linux.

What needs Ludovic

  • Approve and turn on the agent (commands in the doc). Not installed or loaded by me.
  • Approve the version-port label (the doc's step 1 creates it) and the first publish --yes.

🤖 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/390 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/version-port-agent` --- ### 📝 Commits (2) - [`94b5d2d`](https://github.com/horizon-rust/horizon/commit/94b5d2dbc4dc448335cec1fc43c3e7bd30959745) tools/ci: the daily version-port agent (detect, port, harnesses, report, publish dry run), not installed - [`d8eafd7`](https://github.com/horizon-rust/horizon/commit/d8eafd7dc0b5c6befcc58b02e9819c7a08b2cd43) version-port-daily.sh: no fleet-load priority change (it lowered the calling session); launchd's Nice and LowPriorityIO do it ### 📊 Changes **3 files changed** (+144 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/version-ports.md` (+46 -4) ➕ `tools/ci/dev.horizon.version-port.plist` (+21 -0) ➕ `tools/ci/version-port-daily.sh` (+77 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Slice 4 of the port pipeline: the daily agent (docs/version-ports.md, "Turning on the daily agent"). Stacked on #389 (publish). **Written, not installed or loaded.** ## What - `tools/ci/version-port-daily.sh`: updates a detached worktree of `origin/main` (`~/code/horizon-parity/port-main`, `.local` linking the shared data like a parity worktree), runs `detect --dry-run`; for a new release `port` (prepare, diff, regen, report), a baseline `tools/parity.py` on main, `harnesses NEW` against it, `report`, and `publish --check-github` **as a dry run**; a snapshot only gets prepare, diff and report. Then `detect` (the version is remembered only once its port went through, so a failed run retries the next day) and a note on Kira card 28. `HORIZON_PORT_VERSION` / `HORIZON_PORT_REF` override what it ports. It never runs `publish --yes`, never pushes, never touches `shared-local/`. - `tools/ci/dev.horizon.version-port.plist`: LaunchAgent template (`@HOME@`), daily 16:00 Zurich time, `Nice` 10, `LowPriorityIO`, log `~/Library/Logs/horizon-version-port.log`. - The doc: how to turn it on (label, copy the script out of any checkout, install the plist, `launchctl bootstrap`, `kickstart` for a first run) and off (`launchctl bootout`). ## Why So a new Minecraft release gets its port report (and the issue list ready to publish) the day it lands, without anyone starting it. ## How tested - `plutil -lint` on the plist, `bash -n` on the script. - Ran the script by hand (`HORIZON_PORT_MAIN=/tmp/…`): it made the worktree, linked `.local`, and printed "Nothing new: latest release 26.3, Horizon pins 26.3", exit 0. That run showed the script's `~/fleet/load prio low` lowered the *calling agent session*; the second commit removes it (launchd's Nice and LowPriorityIO already do it). **pr_ready** (`tools/pr_ready.py --quick --base feat/version-port-publish` on ludovics-mac-mini, against feat/version-port-publish at 721b7ae39, 35 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +144 −4 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 256 run, FAILED (errors=2) (22 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ no harness affected | | Label | `skip-release` | The two Python test errors (`test_parity_runner` OracleReuse, `test_rust_parity` source hashes) fail the same way on plain `origin/main` on macOS (`/private/var` vs `/var` temp paths, a stubbed `java` exiting 127); CI runs them on Linux. ## What needs Ludovic - Approve and turn on the agent (commands in the doc). Not installed or loaded by me. - Approve the `version-port` label (the doc's step 1 creates it) and the first `publish --yes`. 🤖 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:56:56 +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#2526
No description provided.