[PR #2582] [MERGED] parity: harnesses build horizon-client in the fast profile only #4445

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

📋 Pull Request Information

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

Base: main ← Head: perf/parity-one-client-profile


📝 Commits (2)

  • a891037 parity: harnesses build horizon-client in the fast profile only
  • 68c9597 Merge remote-tracking branch 'origin/main' into perf/parity-one-client-profile

📊 Changes

38 files changed (+78 additions, -78 deletions)

View changed files

📝 tools/test_block_removal_parity.py (+2 -2)
📝 tools/test_command_exec_parity.py (+2 -2)
📝 tools/test_command_parse_parity.py (+2 -2)
📝 tools/test_composter_parity.py (+2 -2)
📝 tools/test_crafter_parity.py (+2 -2)
📝 tools/test_dedicated_server_parity.py (+2 -2)
📝 tools/test_dispenser_parity.py (+2 -2)
📝 tools/test_enchanting_parity.py (+2 -2)
📝 tools/test_entity_death_loot_parity.py (+2 -2)
📝 tools/test_finalize_spawn_parity.py (+2 -2)
📝 tools/test_locator_bar_parity.py (+2 -2)
📝 tools/test_mace_parity.py (+2 -2)
📝 tools/test_mob_ai_parity.py (+2 -2)
📝 tools/test_mob_attributes_parity.py (+2 -2)
📝 tools/test_natural_spawn_parity.py (+2 -2)
📝 tools/test_online_mode_parity.py (+2 -2)
📝 tools/test_raid_parity.py (+2 -2)
📝 tools/test_scoreboard_parity.py (+2 -2)
📝 tools/test_sculk_parity.py (+2 -2)
📝 tools/test_secure_chat_parity.py (+2 -2)

...and 18 more files

📄 Description

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

Under parity.py the release and fast profiles get identical settings (its PROFILE environment: no LTO, 16 codegen units, incremental), but Cargo keys builds by profile name. 38 harnesses built horizon-client with --release and 16 others with --profile fast, so every parity run after a client change compiled the client twice.

  • The 38 harnesses now build and run the client from fast/. world_spawn keeps release for its horizon-world probe and uses fast for the client.
  • release stays for horizon-world's probes, which no fast harness builds.
  • Measured on playhorizon (4 CPUs), all 13 probe builds after 78 merges: 1578 s, of which 485 s went to the release client (bin + client_probe). That rebuild is what this PR removes.

Checked with --fresh under the new profile:

  • on playhorizon: dispenser, command_parse, sculk;
  • on the Mac mini: mob_ai, server_knockback, world_spawn (4 rounds).

All pass. python3 -m unittest discover -s tests passes.

🤖 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/2582 **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-one-client-profile` --- ### 📝 Commits (2) - [`a891037`](https://github.com/horizon-rust/horizon/commit/a891037c9f7ee4dbd3b12b6d971305bce3d8ccbb) parity: harnesses build horizon-client in the fast profile only - [`68c9597`](https://github.com/horizon-rust/horizon/commit/68c95972376d36c029916bd75de7933b53f5e7ce) Merge remote-tracking branch 'origin/main' into perf/parity-one-client-profile ### 📊 Changes **38 files changed** (+78 additions, -78 deletions) <details> <summary>View changed files</summary> 📝 `tools/test_block_removal_parity.py` (+2 -2) 📝 `tools/test_command_exec_parity.py` (+2 -2) 📝 `tools/test_command_parse_parity.py` (+2 -2) 📝 `tools/test_composter_parity.py` (+2 -2) 📝 `tools/test_crafter_parity.py` (+2 -2) 📝 `tools/test_dedicated_server_parity.py` (+2 -2) 📝 `tools/test_dispenser_parity.py` (+2 -2) 📝 `tools/test_enchanting_parity.py` (+2 -2) 📝 `tools/test_entity_death_loot_parity.py` (+2 -2) 📝 `tools/test_finalize_spawn_parity.py` (+2 -2) 📝 `tools/test_locator_bar_parity.py` (+2 -2) 📝 `tools/test_mace_parity.py` (+2 -2) 📝 `tools/test_mob_ai_parity.py` (+2 -2) 📝 `tools/test_mob_attributes_parity.py` (+2 -2) 📝 `tools/test_natural_spawn_parity.py` (+2 -2) 📝 `tools/test_online_mode_parity.py` (+2 -2) 📝 `tools/test_raid_parity.py` (+2 -2) 📝 `tools/test_scoreboard_parity.py` (+2 -2) 📝 `tools/test_sculk_parity.py` (+2 -2) 📝 `tools/test_secure_chat_parity.py` (+2 -2) _...and 18 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Under `parity.py` the `release` and `fast` profiles get identical settings (its `PROFILE` environment: no LTO, 16 codegen units, incremental), but Cargo keys builds by profile name. 38 harnesses built `horizon-client` with `--release` and 16 others with `--profile fast`, so every parity run after a client change compiled the client twice. - The 38 harnesses now build and run the client from `fast/`. `world_spawn` keeps `release` for its `horizon-world` probe and uses `fast` for the client. - `release` stays for `horizon-world`'s probes, which no fast harness builds. - Measured on playhorizon (4 CPUs), all 13 probe builds after 78 merges: 1578 s, of which 485 s went to the release client (bin + `client_probe`). That rebuild is what this PR removes. Checked with `--fresh` under the new profile: - on playhorizon: dispenser, command_parse, sculk; - on the Mac mini: mob_ai, server_knockback, world_spawn (4 rounds). All pass. `python3 -m unittest discover -s tests` passes. 🤖 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:17: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#4445
No description provided.