[PR #2696] [MERGED] parity: game-window harnesses run alone on 4-CPU machines #4551

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

📋 Pull Request Information

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

Base: main ← Head: perf/parity-solo-window-harnesses


📝 Commits (2)

  • 83ee5c3 parity: game-window harnesses run alone on 4-CPU machines
  • 8ecf5d6 Merge remote-tracking branch 'origin/main' into perf/parity-solo-window-harnesses

📊 Changes

4 files changed (+65 additions, -1 deletions)

View changed files

📝 docs/parity-workflow.md (+2 -0)
📝 tests/test_parity_runner.py (+32 -0)
📝 tools/parity.py (+25 -1)
📝 tools/parity_hosts.json (+6 -0)

📄 Description

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

After #2589 and #2629, remote_fireworks still failed in #2215's parity job on playhorizon. The other 112 harnesses passed. The runner gives its 4 harness slots 4 CPUs (4-7), and its frames are drawn on the CPU (lavapipe). Beside three other harnesses, a screenshot took about 1.5 s: two took 58 ticks, past the sparks' life, and the guest's burst shot came back empty.

  • tools/parity_hosts.json gets a solo list with a reason for each: remote_fireball, remote_fireworks, server_player_sculk and world_reopen, the harnesses that drive game windows. lan_integration is never selected automatically.
  • When parity.py has 4 CPUs or fewer (its CPU affinity), each of these waits until nothing else runs on the machine, then runs alone. The other harnesses fill the slots first, so the solo ones run last, one at a time.
  • The Mac mini and bigger machines are unchanged. PARITY_SOLO=1 or 0 forces the rule on or off.
  • Cost: these four harnesses, 30 s to 3.5 min each, run one after another at the end of a run on playhorizon. Halving every run's slots (PARITY_LOCAL_JOBS=2) would cost more.

Proof on playhorizon, CI-like: 4 slots on 4 CPUs (remote.sh, CPUs 0-3), the four solo harnesses plus four others, -j 4. All 8 passed in 7.5 min, and the solo ones ran last, alone. The proof on #2215 itself, one rerun of its parity job after this merges, follows in a comment.

SoloTests in tests/test_parity_runner.py covers admission (wait for an empty machine, then hold it) and when the rule applies; it also checks that every listed name is a harness. All tests in that file pass.

🤖 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/2696 **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:** `perf/parity-solo-window-harnesses` --- ### 📝 Commits (2) - [`83ee5c3`](https://github.com/horizon-rust/horizon/commit/83ee5c303b7b4a3e81434db619dbb46772fcec81) parity: game-window harnesses run alone on 4-CPU machines - [`8ecf5d6`](https://github.com/horizon-rust/horizon/commit/8ecf5d6e475a307e5a493e1c36ac6dfb3dd45dea) Merge remote-tracking branch 'origin/main' into perf/parity-solo-window-harnesses ### 📊 Changes **4 files changed** (+65 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/parity-workflow.md` (+2 -0) 📝 `tests/test_parity_runner.py` (+32 -0) 📝 `tools/parity.py` (+25 -1) 📝 `tools/parity_hosts.json` (+6 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. After #2589 and #2629, `remote_fireworks` still failed in #2215's parity job on playhorizon. The other 112 harnesses passed. The runner gives its 4 harness slots 4 CPUs (4-7), and its frames are drawn on the CPU (lavapipe). Beside three other harnesses, a screenshot took about 1.5 s: two took 58 ticks, past the sparks' life, and the guest's burst shot came back empty. - `tools/parity_hosts.json` gets a `solo` list with a reason for each: `remote_fireball`, `remote_fireworks`, `server_player_sculk` and `world_reopen`, the harnesses that drive game windows. `lan_integration` is never selected automatically. - When `parity.py` has 4 CPUs or fewer (its CPU affinity), each of these waits until nothing else runs on the machine, then runs alone. The other harnesses fill the slots first, so the solo ones run last, one at a time. - The Mac mini and bigger machines are unchanged. `PARITY_SOLO=1` or `0` forces the rule on or off. - Cost: these four harnesses, 30 s to 3.5 min each, run one after another at the end of a run on playhorizon. Halving every run's slots (`PARITY_LOCAL_JOBS=2`) would cost more. Proof on playhorizon, CI-like: 4 slots on 4 CPUs (`remote.sh`, CPUs 0-3), the four solo harnesses plus four others, `-j 4`. All 8 passed in 7.5 min, and the solo ones ran last, alone. The proof on #2215 itself, one rerun of its parity job after this merges, follows in a comment. `SoloTests` in `tests/test_parity_runner.py` covers admission (wait for an empty machine, then hold it) and when the rule applies; it also checks that every listed name is a harness. All tests in that file pass. 🤖 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:18:00 +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#4551
No description provided.