[PR #4955] [MERGED] Main's parity: probes for the new block and sting events, post_effects always saved #5969

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

📋 Pull Request Information

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

Base: main ← Head: fix/main-green-2


📝 Commits (1)

  • cb59fcd Main's parity: probes for the new block and sting events, post_effects always saved

📊 Changes

5 files changed (+22 additions, -12 deletions)

View changed files

📝 crates/horizon-client/examples/probe/mob_ai_probe.rs (+2 -0)
📝 crates/horizon-client/src/lan/playerdata.rs (+5 -2)
📝 crates/horizon-client/src/motion.rs (+3 -2)
📝 crates/horizon-client/src/save.rs (+5 -6)
📝 crates/horizon-world/examples/probe/block_update_fixture.rs (+7 -2)

📄 Description

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

parity-main has been red since 10-30 16:31Z, so no Nightly has shipped since then. #4835's security fix is waiting on it. This fixes the failures that are real and still failing on main (run 41157154666 at 5b372e2f3, and the run at 480f6b3d1):

Harness Cause Fix
block_update, random_tick #4703 and #4724 (@levzzz5154) added the structure_block, test_block and test_block_tick block events. The probe printed them as unknown (X structure_block); vanilla shows no level change The probe skips them, as it already skips command_block. Their work lives on the block entity (game/test_blocks.rs), and a fresh structure block has no name to save or load (StructureBlock.trigger)
mob_ai (bee_sting) A bee's sting on the player became MobEvent::StingPlayer (7a09947e4, stingers stuck in the body). The probe didn't count it as a hit, so the player's entity.player.hurt was missing at tick 67 StingPlayer counts in the probe's player_hurt / player_damage
save_roundtrip players/data/*.dat.post_effects: vanilla [], Horizon missing (9b5e0026f). ServerPlayer.addAdditionalSaveData calls output.store("post_effects", …) even for an empty list. It failed 3 times at 5b372e2f3 and passed at 480f6b3d1 (the player file's path differs between runs) Always write the list; the unit test now expects []

Also #4662's unit test motion::tests::a_swimming_passenger_sits_up_even_when_standing_does_not_fit, which fails whenever the vanilla data is in .local (CI skips it), so every local pr_ready on horizon-client failed. The player stood in the air at y 9.65 (away from the pyramid, World::test_scene's floor tops out at y 4), so standing fit. The feet now go 0.35 into that floor. It fails at motion.rs:3939 without this change and passes with it.

The other failures of those runs are not this PR's:

  • cursor_death, pearl_death, hardcore_respawn, server_knockback (bots kicked: "Flying is not enabled on this server"): fixed by #4697, and they pass at 480f6b3d1.
  • lunge_motion: fixed by #4526, and it passes at 480f6b3d1.
  • dedicated_server, secure_chat: the newcomer's own join line from #4634. #4937 fixes both; I checked with its commit on top of this branch, and both pass.

Checks

  • tools/parity.py block_update random_tick mob_ai save_roundtrip: all 4 pass here and fail on main.
  • cargo test -p horizon-client --lib motion::tests::a_swimming_passenger lan::playerdata::tests::post_effects with the vanilla data: both pass.
  • pr_ready's one failure is level::tests::a_candle_on_an_uneaten_cake_makes_a_candle_cake (horizon-world). It fails the same way on main whenever the vanilla data is present and is tracked in #4780. This PR doesn't touch horizon-world's library.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 07042859e, 7 min 59 s)

Check Result
Scope ✅ 5 files, +22 −12
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 486 passed (1 min 1 s)
rustfmt ✅ (4 s)
clippy ✅ (1 min 9 s)
tests: horizon-client, horizon-world ❌ 1530 passed, 1 failed (5 min 23 s)
doc tests ✅ 0 passed (3 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 60 affected, to run in CI (--quick): arrow, auto_jump, block_removal, block_update, command_exec, composter, container_title, crafter, cursor_death, dedicated_server, dispenser, entity_components and 48 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/4955 **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:** `fix/main-green-2` --- ### 📝 Commits (1) - [`cb59fcd`](https://github.com/horizon-rust/horizon/commit/cb59fcd1625b77610312dbe0a89fdb7fa60af299) Main's parity: probes for the new block and sting events, post_effects always saved ### 📊 Changes **5 files changed** (+22 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/mob_ai_probe.rs` (+2 -0) 📝 `crates/horizon-client/src/lan/playerdata.rs` (+5 -2) 📝 `crates/horizon-client/src/motion.rs` (+3 -2) 📝 `crates/horizon-client/src/save.rs` (+5 -6) 📝 `crates/horizon-world/examples/probe/block_update_fixture.rs` (+7 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. parity-main has been red since 10-30 16:31Z, so no Nightly has shipped since then. #4835's security fix is waiting on it. This fixes the failures that are real and still failing on main (run [41157154666](https://github.com/horizon-rust/horizon/actions/runs/41157154666) at 5b372e2f3, and the run at 480f6b3d1): | Harness | Cause | Fix | |---|---|---| | `block_update`, `random_tick` | #4703 and #4724 (@levzzz5154) added the `structure_block`, `test_block` and `test_block_tick` block events. The probe printed them as unknown (`X structure_block`); vanilla shows no level change | The probe skips them, as it already skips `command_block`. Their work lives on the block entity (`game/test_blocks.rs`), and a fresh structure block has no name to save or load (`StructureBlock.trigger`) | | `mob_ai` (`bee_sting`) | A bee's sting on the player became `MobEvent::StingPlayer` (7a09947e4, stingers stuck in the body). The probe didn't count it as a hit, so the player's `entity.player.hurt` was missing at tick 67 | `StingPlayer` counts in the probe's `player_hurt` / `player_damage` | | `save_roundtrip` | `players/data/*.dat.post_effects`: vanilla `[]`, Horizon missing (9b5e0026f). `ServerPlayer.addAdditionalSaveData` calls `output.store("post_effects", …)` even for an empty list. It failed 3 times at 5b372e2f3 and passed at 480f6b3d1 (the player file's path differs between runs) | Always write the list; the unit test now expects `[]` | Also #4662's unit test `motion::tests::a_swimming_passenger_sits_up_even_when_standing_does_not_fit`, which fails whenever the vanilla data is in `.local` (CI skips it), so every local pr_ready on horizon-client failed. The player stood in the air at y 9.65 (away from the pyramid, `World::test_scene`'s floor tops out at y 4), so standing fit. The feet now go 0.35 into that floor. It fails at motion.rs:3939 without this change and passes with it. The other failures of those runs are not this PR's: - `cursor_death`, `pearl_death`, `hardcore_respawn`, `server_knockback` (bots kicked: "Flying is not enabled on this server"): fixed by #4697, and they pass at 480f6b3d1. - `lunge_motion`: fixed by #4526, and it passes at 480f6b3d1. - `dedicated_server`, `secure_chat`: the newcomer's own join line from #4634. #4937 fixes both; I checked with its commit on top of this branch, and both pass. ## Checks - `tools/parity.py block_update random_tick mob_ai save_roundtrip`: all 4 pass here and fail on main. - `cargo test -p horizon-client --lib motion::tests::a_swimming_passenger lan::playerdata::tests::post_effects` with the vanilla data: both pass. - pr_ready's one failure is `level::tests::a_candle_on_an_uneaten_cake_makes_a_candle_cake` (horizon-world). It fails the same way on main whenever the vanilla data is present and is tracked in #4780. This PR doesn't touch horizon-world's library. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 07042859e, 7 min 59 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +22 −12 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 486 passed (1 min 1 s) | | rustfmt | ✅ (4 s) | | clippy | ✅ (1 min 9 s) | | tests: horizon-client, horizon-world | ❌ 1530 passed, 1 failed (5 min 23 s) | | doc tests | ✅ 0 passed (3 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 60 affected, to run in CI (--quick): arrow, auto_jump, block_removal, block_update, command_exec, composter, container_title, crafter, cursor_death, dedicated_server, dispenser, entity_components and 48 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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:16:17 +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#5969
No description provided.