[PR #5487] [MERGED] CI: checks back on GitHub's runners by default, playhorizon's with SELF_HOSTED_CI=all #6318

Closed
opened 2026-11-03 06:18:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: ci/playhorizon-checks-opt-in


📝 Commits (1)

  • 20480b8 CI: checks back on GitHub's runners by default, playhorizon's with SELF_HOSTED_CI=all

📊 Changes

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

View changed files

📝 .github/workflows/ci.yml (+7 -7)
📝 docs/ci-runners.md (+29 -13)
📝 docs/release-flow.md (+1 -1)
📝 tests/test_ci_runners.py (+2 -1)

📄 Description

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

Follow-up to #5415, from what was measured after it merged:

UTC Waiting for playhorizon-ci Waiting for GitHub's runners
20:25 1 15 (oldest 9 min)
20:30 6 (3 min) 1 (1 min)
20:39 14 (13 min) 0
20:44 19 (18 min) 1 (1 min), 9 of 20 slots busy

Before #5415, 400–460 runs were queued and every hosted job waited 20–25 min. Moving the bots (25% of the pool's time, thousands of tiny jobs) off it was enough to empty the queue: only 11–19 runs queued after the merge.

The heavy checks are another story. The checks runners have 4 CPUs (4–7), shared with the parity runner, which is about one GitHub runner's worth. So they now build a queue of their own, and their work is ~30% slower: warm verify takes 10.5–16 min there against ~8 on GitHub.

Per the rule "route a job only when the wait it saves exceeds its slowdown":

  • checks (verify, launcher): back on ubuntu-latest by default. With SELF_HOSTED_CI=all they go to playhorizon-ci again, for main's pushes and same-repo PRs, never forks. That is for when GitHub's pool fills up again.
  • The bots and parity-scope: stay on playhorizon-light, as before.
  • SELF_HOSTED_CI=off: everything on GitHub's runners, unchanged.

docs/ci-runners.md gets the table of the variable's values and the numbers. tests/test_ci_runners.py accepts both guards.

This PR's own checks run on GitHub's runners, so they exercise the hosted path of the runner.environment conditions #5415 added; #5415's runs all went to playhorizon. Locally: python3 -m unittest discover -s tests OK, actionlint clean.

🤖 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/5487 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `ci/playhorizon-checks-opt-in` --- ### 📝 Commits (1) - [`20480b8`](https://github.com/horizon-rust/horizon/commit/20480b868aeb3f19955549301d03fec12a11a08c) CI: checks back on GitHub's runners by default, playhorizon's with SELF_HOSTED_CI=all ### 📊 Changes **4 files changed** (+39 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+7 -7) 📝 `docs/ci-runners.md` (+29 -13) 📝 `docs/release-flow.md` (+1 -1) 📝 `tests/test_ci_runners.py` (+2 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Follow-up to #5415, from what was measured after it merged: | UTC | Waiting for `playhorizon-ci` | Waiting for GitHub's runners | | --- | --- | --- | | 20:25 | 1 | 15 (oldest 9 min) | | 20:30 | 6 (3 min) | 1 (1 min) | | 20:39 | 14 (13 min) | 0 | | 20:44 | 19 (18 min) | 1 (1 min), 9 of 20 slots busy | Before #5415, 400–460 runs were queued and every hosted job waited 20–25 min. Moving the bots (25% of the pool's time, thousands of tiny jobs) off it was enough to empty the queue: only 11–19 runs queued after the merge. The heavy checks are another story. The checks runners have 4 CPUs (4–7), shared with the parity runner, which is about one GitHub runner's worth. So they now build a queue of their own, and their work is ~30% slower: warm `verify` takes 10.5–16 min there against ~8 on GitHub. Per the rule "route a job only when the wait it saves exceeds its slowdown": - **`checks` (`verify`, `launcher`):** back on `ubuntu-latest` by default. With `SELF_HOSTED_CI=all` they go to `playhorizon-ci` again, for main's pushes and same-repo PRs, never forks. That is for when GitHub's pool fills up again. - **The bots and `parity-scope`:** stay on `playhorizon-light`, as before. - **`SELF_HOSTED_CI=off`:** everything on GitHub's runners, unchanged. `docs/ci-runners.md` gets the table of the variable's values and the numbers. `tests/test_ci_runners.py` accepts both guards. This PR's own checks run on GitHub's runners, so they exercise the hosted path of the `runner.environment` conditions #5415 added; #5415's runs all went to playhorizon. Locally: `python3 -m unittest discover -s tests` OK, `actionlint` clean. 🤖 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 06:18:13 +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#6318
No description provided.