[PR #2882] [MERGED] parity: a host's exclude list also holds on its own CI runner #4668

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

📋 Pull Request Information

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

Base: main ← Head: fix/parity-host-excludes-locally


📝 Commits (1)

  • 0879f3d parity: a host's exclude list also holds on its own CI runner

📊 Changes

4 files changed (+19 additions, -8 deletions)

View changed files

📝 docs/parity-workflow.md (+1 -1)
📝 tests/test_parity_runner.py (+7 -0)
📝 tools/parity.py (+8 -6)
📝 tools/parity_hosts.json (+3 -1)

📄 Description

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

What

playhorizon's CI runner fails remote_fireball and remote_fireworks even when they run alone, and even on bare main. Every fork PR whose parity job lands on that runner therefore stopped on them (#2235, #2245, ...). Measured on 2026-10-27:

Tree playhorizon Mac mini
bare main 3b19c386c 0/2 (both fail, retry too) —
union of 11 PRs on that main 80/82 (the same two fail) 2/2
older main c1ebf5d1b fireball passes, fireworks fails —

Failure modes:

  • fireworks: the guest's sparks are gone by its trail screenshot.
  • fireball: the guest's egg is seen in 2 of 6 samples.

The host's state points to CPU starvation:

  • The whole horizon-ci slice (the runner on CPUs 4-7 and the workers on 0-3) shares a 700% CPUQuota and was throttled in 27% of periods.
  • Load average was 10-19 on 8 threads.
  • The shared Xvfb :92 is pinned to 4-7 at nice 19.
  • A private Xvfb on CPUs 0-3 did not fix it, so the X server is not the cause.

Change

  • tools/parity.py: platform_skips now also returns the local host's exclude entries. Before, a host's exclude only kept harnesses off workers sent to that host, not off the CI runner's own jobs on it.
    • A skipped harness prints skipped on <host> (<platform>): <name>: <reason>.
    • Naming a harness on the command line still runs it, so the failure can be reproduced on playhorizon.
  • tools/parity_hosts.json: the two harnesses join playhorizon's exclude, each with its reason and date.
    • Its existing entries (mob_ai, world_reopen, lan_integration) are now also skipped by that runner's own jobs. Their notes already say they fail there.
  • The Mac mini's runner and the nightly audit (runs-on: macOS) keep running them.
  • docs/parity-workflow.md documents this, and a unit test covers it.

A real fix for the starvation (the slice quota, or giving the runner's own jobs fewer workers) is a host-configuration change for the fleet thread. It is not part of this PR.

Self-check

Check Result
Scope ✅ 4 files, +19 −8
Public tree ✅
Python tests ✅ 337 passed
Parity ➖ lan_integration only (named-only)

🤖 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/2882 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/parity-host-excludes-locally` --- ### 📝 Commits (1) - [`0879f3d`](https://github.com/horizon-rust/horizon/commit/0879f3dbd2cb1a822946cded7f607607f5eb67ce) parity: a host's exclude list also holds on its own CI runner ### 📊 Changes **4 files changed** (+19 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/parity-workflow.md` (+1 -1) 📝 `tests/test_parity_runner.py` (+7 -0) 📝 `tools/parity.py` (+8 -6) 📝 `tools/parity_hosts.json` (+3 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What playhorizon's CI runner fails `remote_fireball` and `remote_fireworks` even when they run alone, and even on bare main. Every fork PR whose parity job lands on that runner therefore stopped on them (#2235, #2245, ...). Measured on 2026-10-27: | Tree | playhorizon | Mac mini | | --- | --- | --- | | bare main 3b19c386c | 0/2 (both fail, retry too) | — | | union of 11 PRs on that main | 80/82 (the same two fail) | 2/2 | | older main c1ebf5d1b | fireball passes, fireworks fails | — | Failure modes: - **fireworks:** the guest's sparks are gone by its trail screenshot. - **fireball:** the guest's egg is seen in 2 of 6 samples. The host's state points to CPU starvation: - The whole `horizon-ci` slice (the runner on CPUs 4-7 and the workers on 0-3) shares a 700% `CPUQuota` and was throttled in 27% of periods. - Load average was 10-19 on 8 threads. - The shared Xvfb `:92` is pinned to 4-7 at nice 19. - A private Xvfb on CPUs 0-3 did **not** fix it, so the X server is not the cause. ## Change - `tools/parity.py`: `platform_skips` now also returns the local host's `exclude` entries. Before, a host's `exclude` only kept harnesses off workers sent to that host, not off the CI runner's own jobs on it. - A skipped harness prints `skipped on <host> (<platform>): <name>: <reason>`. - Naming a harness on the command line still runs it, so the failure can be reproduced on playhorizon. - `tools/parity_hosts.json`: the two harnesses join playhorizon's `exclude`, each with its reason and date. - Its existing entries (`mob_ai`, `world_reopen`, `lan_integration`) are now also skipped by that runner's own jobs. Their notes already say they fail there. - The Mac mini's runner and the nightly audit (`runs-on: macOS`) keep running them. - `docs/parity-workflow.md` documents this, and a unit test covers it. A real fix for the starvation (the slice quota, or giving the runner's own jobs fewer workers) is a host-configuration change for the fleet thread. It is not part of this PR. ## Self-check | Check | Result | | --- | --- | | Scope | ✅ 4 files, +19 −8 | | Public tree | ✅ | | Python tests | ✅ 337 passed | | Parity | ➖ lan_integration only (named-only) | 🤖 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:07:03 +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#4668
No description provided.