[PR #1454] [MERGED] horizon-client parity probes: one binary #3537

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

📋 Pull Request Information

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

Base: main ← Head: feat/client-probe-binary


📝 Commits (10+)

  • 2e953c6 Merge #1443 (parity prebuild selection), which the probe binaries rely on
  • c1f8ec8 Merge #1444 (world_spawn shards), which touches the same harness
  • fdae4b8 horizon-world probes: one binary, probe <name>
  • 7092f16 horizon-world probes: one copy of the helpers they shared
  • ab4c246 Delete the 11 examples nothing references
  • ed847d4 Keep the probe list out of the harnesses' dependencies
  • 858f701 Run the horizon-client parity probes from one binary
  • 4a922a5 Document how the runner tracks probe-binary dependencies
  • a6da925 Split the client probe list from its dispatch the same way
  • 82d6d27 Point the audio harnesses at audio_common's new place

📊 Changes

517 files changed (+2610 additions, -5013 deletions)

View changed files

➖ crates/horizon-client/examples/block_facts_bench.rs (+0 -104)
➖ crates/horizon-client/examples/chunk_bench.rs (+0 -216)
➖ crates/horizon-client/examples/entity_geometry_bench.rs (+0 -140)
➖ crates/horizon-client/examples/json_readers_bench.rs (+0 -205)
➖ crates/horizon-client/examples/lan_flat.rs (+0 -144)
➖ crates/horizon-client/examples/load_bench.rs (+0 -153)
📝 crates/horizon-client/examples/probe/ambient_fixture.rs (+3 -4)
📝 crates/horizon-client/examples/probe/arrow_probe.rs (+2 -2)
📝 crates/horizon-client/examples/probe/audio_attributes_fixture.rs (+2 -2)
📝 crates/horizon-client/examples/probe/audio_common/mod.rs (+0 -0)
📝 crates/horizon-client/examples/probe/auto_jump_probe.rs (+2 -2)
📝 crates/horizon-client/examples/probe/block_entity_anim_fixture.rs (+2 -2)
📝 crates/horizon-client/examples/probe/block_entity_render_fixture.rs (+2 -2)
📝 crates/horizon-client/examples/probe/block_entity_tickers_fixture.rs (+2 -2)
📝 crates/horizon-client/examples/probe/block_particles_fixture.rs (+2 -2)
📝 crates/horizon-client/examples/probe/block_transform_fixture.rs (+2 -2)
📝 crates/horizon-client/examples/probe/breaking_fixture.rs (+2 -2)
📝 crates/horizon-client/examples/probe/camera_probe.rs (+2 -2)
📝 crates/horizon-client/examples/probe/cauldron_fixture.rs (+2 -2)
📝 crates/horizon-client/examples/probe/chat_screen_fixture.rs (+3 -5)

...and 80 more files

📄 Description

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

What

The 81 horizon-client examples the parity harnesses run become one binary, examples/probe, the same way #1453 does for horizon-world. Harnesses run probe <name> [arguments], or cargo run --example probe -- <name> ....

Stacked on #1453. That PR contains #1443 and #1444. This PR's own changes are its last three commits (git diff feat/world-probe-binary...feat/client-probe-binary: 148 files, +565 / −342).

Why

Workstream 1 of the review plan (review-1-ci, item 1). Each client example links the whole client, so a horizon-client change relinked 81 copies of it.

How

  • crates/horizon-client/examples/probe/:
    • each former example is a module with pub fn main;
    • main.rs lists them and dispatch.rs runs them;
    • crate::args() and crate::args_os() give a probe its old command line.
  • The shared helper directories move along with the probes: audio_common/, hud_fixture/ and chat_screen_fixture/.
  • Harnesses were updated:
    • the helpers oracle_harness.build_probe, audio_harness.run_harness and interaction_lab.cargo_example now build the probe binary and pass the name;
    • the direct release/examples/<name> paths, port_regen.py, the source lists and the docs were updated too.
  • These stay standalone examples: the 10 manual benches and profiles, which no harness runs.

Numbers

Build cost, ThinkPad, 3 jobs, the parity profile, no incremental (how CI builds, with sccache):

horizon-client probes 81 examples 1 binary
first build (dependencies already built) 349 s 188 s
rebuild after a horizon-client edit 218 s 163 s
rebuild after editing one probe 2.2 s 36 s

Verification

  • Transcripts: the 100 harnesses that run a horizon-client probe were run on #1453, then on this branch, on the Mac mini, and their logs diffed:

    • 89 logs are byte-identical, and 9 more differ only in timings, clock stamps and the order of JVM warnings;
    • datafix#1 differs only because the first run generated the sample worlds;
    • dedicated_server reports 601 or 602 transcript lines from one run to the next, with the same code: it records a live vanilla server session, and Horizon matched it every time.
  • The first run found five harnesses that still pointed at the old paths (ambient_sound, music, particle_providers, entity_particles, held_drop). They are fixed in this branch and pass, with identical logs.

  • cargo clippy -p horizon-client --examples -- -D warnings, with default features and with --no-default-features, passes, and so does cargo fmt --check.

🤖 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/1454 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/client-probe-binary` --- ### 📝 Commits (10+) - [`2e953c6`](https://github.com/horizon-rust/horizon/commit/2e953c625b26454b54905b93ecb8a9d6301fe6d0) Merge #1443 (parity prebuild selection), which the probe binaries rely on - [`c1f8ec8`](https://github.com/horizon-rust/horizon/commit/c1f8ec81d8963ce97db8c9c2dbc9e95a9139414e) Merge #1444 (world_spawn shards), which touches the same harness - [`fdae4b8`](https://github.com/horizon-rust/horizon/commit/fdae4b895c6d3e64464bcafa64b825f15b5ad777) horizon-world probes: one binary, `probe <name>` - [`7092f16`](https://github.com/horizon-rust/horizon/commit/7092f16a06f73d825cc73c6cdf132674a418fc70) horizon-world probes: one copy of the helpers they shared - [`ab4c246`](https://github.com/horizon-rust/horizon/commit/ab4c246cda75268cec6de1968229250ac992111d) Delete the 11 examples nothing references - [`ed847d4`](https://github.com/horizon-rust/horizon/commit/ed847d43dcf1b8411ea05164ec424dbfbec14062) Keep the probe list out of the harnesses' dependencies - [`858f701`](https://github.com/horizon-rust/horizon/commit/858f701ee8b234f194c65f8c2c29e8b2a77e07c8) Run the horizon-client parity probes from one binary - [`4a922a5`](https://github.com/horizon-rust/horizon/commit/4a922a5772494d3b55b7c5d855ba8bf8b2da637c) Document how the runner tracks probe-binary dependencies - [`a6da925`](https://github.com/horizon-rust/horizon/commit/a6da92583746d132a912d6eba20cf175d0a3b6a7) Split the client probe list from its dispatch the same way - [`82d6d27`](https://github.com/horizon-rust/horizon/commit/82d6d275679b56426402ff19c50bd9998c1cfcf2) Point the audio harnesses at audio_common's new place ### 📊 Changes **517 files changed** (+2610 additions, -5013 deletions) <details> <summary>View changed files</summary> ➖ `crates/horizon-client/examples/block_facts_bench.rs` (+0 -104) ➖ `crates/horizon-client/examples/chunk_bench.rs` (+0 -216) ➖ `crates/horizon-client/examples/entity_geometry_bench.rs` (+0 -140) ➖ `crates/horizon-client/examples/json_readers_bench.rs` (+0 -205) ➖ `crates/horizon-client/examples/lan_flat.rs` (+0 -144) ➖ `crates/horizon-client/examples/load_bench.rs` (+0 -153) 📝 `crates/horizon-client/examples/probe/ambient_fixture.rs` (+3 -4) 📝 `crates/horizon-client/examples/probe/arrow_probe.rs` (+2 -2) 📝 `crates/horizon-client/examples/probe/audio_attributes_fixture.rs` (+2 -2) 📝 `crates/horizon-client/examples/probe/audio_common/mod.rs` (+0 -0) 📝 `crates/horizon-client/examples/probe/auto_jump_probe.rs` (+2 -2) 📝 `crates/horizon-client/examples/probe/block_entity_anim_fixture.rs` (+2 -2) 📝 `crates/horizon-client/examples/probe/block_entity_render_fixture.rs` (+2 -2) 📝 `crates/horizon-client/examples/probe/block_entity_tickers_fixture.rs` (+2 -2) 📝 `crates/horizon-client/examples/probe/block_particles_fixture.rs` (+2 -2) 📝 `crates/horizon-client/examples/probe/block_transform_fixture.rs` (+2 -2) 📝 `crates/horizon-client/examples/probe/breaking_fixture.rs` (+2 -2) 📝 `crates/horizon-client/examples/probe/camera_probe.rs` (+2 -2) 📝 `crates/horizon-client/examples/probe/cauldron_fixture.rs` (+2 -2) 📝 `crates/horizon-client/examples/probe/chat_screen_fixture.rs` (+3 -5) _...and 80 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What The 81 `horizon-client` examples the parity harnesses run become one binary, `examples/probe`, the same way #1453 does for `horizon-world`. Harnesses run `probe <name> [arguments]`, or `cargo run --example probe -- <name> ...`. **Stacked on #1453.** That PR contains #1443 and #1444. This PR's own changes are its last three commits (`git diff feat/world-probe-binary...feat/client-probe-binary`: 148 files, +565 / −342). ## Why Workstream 1 of the review plan (review-1-ci, item 1). Each client example links the whole client, so a `horizon-client` change relinked 81 copies of it. ## How - `crates/horizon-client/examples/probe/`: - each former example is a module with `pub fn main`; - `main.rs` lists them and `dispatch.rs` runs them; - `crate::args()` and `crate::args_os()` give a probe its old command line. - The shared helper directories move along with the probes: `audio_common/`, `hud_fixture/` and `chat_screen_fixture/`. - Harnesses were updated: - the helpers `oracle_harness.build_probe`, `audio_harness.run_harness` and `interaction_lab.cargo_example` now build the probe binary and pass the name; - the direct `release/examples/<name>` paths, `port_regen.py`, the source lists and the docs were updated too. - These stay standalone examples: the 10 manual benches and profiles, which no harness runs. ## Numbers Build cost, ThinkPad, 3 jobs, the parity profile, no incremental (how CI builds, with sccache): | `horizon-client` probes | 81 examples | 1 binary | |---|---|---| | first build (dependencies already built) | 349 s | **188 s** | | rebuild after a `horizon-client` edit | 218 s | **163 s** | | rebuild after editing one probe | 2.2 s | 36 s | ## Verification - **Transcripts:** the 100 harnesses that run a `horizon-client` probe were run on #1453, then on this branch, on the Mac mini, and their logs diffed: - 89 logs are byte-identical, and 9 more differ only in timings, clock stamps and the order of JVM warnings; - `datafix#1` differs only because the first run generated the sample worlds; - `dedicated_server` reports 601 or 602 transcript lines from one run to the next, with the same code: it records a live vanilla server session, and Horizon matched it every time. - The first run found five harnesses that still pointed at the old paths (`ambient_sound`, `music`, `particle_providers`, `entity_particles`, `held_drop`). They are fixed in this branch and pass, with identical logs. - `cargo clippy -p horizon-client --examples -- -D warnings`, with default features and with `--no-default-features`, passes, and so does `cargo fmt --check`. 🤖 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:10:15 +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#3537
No description provided.