[PR #2217] [MERGED] CI: Linux runner on Ubuntu (playhorizon), tokens without gh, CPU and memory knobs #4110

Closed
opened 2026-11-03 04:14:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: ci/linux-runner-ubuntu


📝 Commits (1)

  • a4839d3 CI: Linux runner on Ubuntu (playhorizon), tokens without gh, CPU and memory knobs

📊 Changes

4 files changed (+101 additions, -39 deletions)

View changed files

📝 docs/release-flow.md (+11 -2)
📝 tools/ci/linux-runner.sh (+79 -36)
📝 tools/ci/runner-env.sh (+1 -1)
📝 tools/parity_hosts.json (+10 -0)

📄 Description

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

A hosting partner lent the project a server (playhorizon: Ubuntu 26.04, 8 AMD EPYC threads, 30 GB RAM, 400 GB SSD, reachable only through the maintainer's tailnet). This PR lets it be a CI runner and a parity host.

tools/ci/linux-runner.sh

  • Without Nix (Debian, Ubuntu), the build libraries, the JDK pinned by research-lock.json, sccache, Xvfb and Mesa's software Vulkan (lavapipe; no GPU) come from apt (installed when sudo -n works, else it prints the apt-get line). Python 3.13 comes from the PATH (uv). The NixOS branch writes the same .env and .path as before.
  • RUNNER_TOKEN: the registration or removal token, made with gh on another machine. The partner can reach the server, so gh stays logged out there.
  • RUNNER_CPUS and RUNNER_MEMORY (GB): the slice's quota and memory cap, and the watcher's NORMAL_CPUS. The defaults are unchanged (half the threads, two thirds of the memory).

tools/parity_hosts.json: playhorizon (6 jobs, in the runner's environment, slice and Xvfb screen). It is not in default.

docs/release-flow.md: the runner's paragraph.

The runner playhorizon-horizon is already registered with the label playhorizon only, so it takes no job yet. Following the desktop's rule, it gets horizon-game once a full trial passes there: run on a trial branch that is never merged.

Checks: bash -n, the install on playhorizon (the .env, .path, slice and watcher it wrote were checked by hand), and the missing-package parsing against real and unknown packages on Ubuntu.

🤖 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/2217 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `ci/linux-runner-ubuntu` --- ### 📝 Commits (1) - [`a4839d3`](https://github.com/horizon-rust/horizon/commit/a4839d322b8f07fdf9ef9baaef4af3e44b71f9d5) CI: Linux runner on Ubuntu (playhorizon), tokens without gh, CPU and memory knobs ### 📊 Changes **4 files changed** (+101 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-flow.md` (+11 -2) 📝 `tools/ci/linux-runner.sh` (+79 -36) 📝 `tools/ci/runner-env.sh` (+1 -1) 📝 `tools/parity_hosts.json` (+10 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. A hosting partner lent the project a server (playhorizon: Ubuntu 26.04, 8 AMD EPYC threads, 30 GB RAM, 400 GB SSD, reachable only through the maintainer's tailnet). This PR lets it be a CI runner and a parity host. **`tools/ci/linux-runner.sh`** - Without Nix (Debian, Ubuntu), the build libraries, the JDK pinned by `research-lock.json`, sccache, Xvfb and Mesa's software Vulkan (lavapipe; no GPU) come from apt (installed when `sudo -n` works, else it prints the `apt-get` line). Python 3.13 comes from the PATH (uv). The NixOS branch writes the same `.env` and `.path` as before. - `RUNNER_TOKEN`: the registration or removal token, made with `gh` on another machine. The partner can reach the server, so `gh` stays logged out there. - `RUNNER_CPUS` and `RUNNER_MEMORY` (GB): the slice's quota and memory cap, and the watcher's `NORMAL_CPUS`. The defaults are unchanged (half the threads, two thirds of the memory). **`tools/parity_hosts.json`**: `playhorizon` (6 jobs, in the runner's environment, slice and Xvfb screen). It is not in `default`. **`docs/release-flow.md`**: the runner's paragraph. The runner `playhorizon-horizon` is already registered with the label `playhorizon` only, so it takes no job yet. Following the desktop's rule, it gets `horizon-game` once a full trial passes there: run on a trial branch that is never merged. Checks: `bash -n`, the install on playhorizon (the `.env`, `.path`, slice and watcher it wrote were checked by hand), and the missing-package parsing against real and unknown packages on Ubuntu. 🤖 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 04:14:46 +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#4110
No description provided.