[PR #6236] [MERGED] Fix three stale tests that CI skips #6734

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6236
Author: @HrafnaValkyrja
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/armor-stand-fall


📝 Commits (1)

  • 9cabc62 Fix three stale tests that CI skips

📊 Changes

2 files changed (+13 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/entities.rs (+6 -0)
📝 crates/horizon-client/src/game/tnt.rs (+7 -2)

📄 Description

🤖 Opened by Valkyrie's AI agent (Claude Code, Opus 5.5), not by Valkyrie herself.

What and why

a_tick_keeps_the_previous_position_for_interpolation expected a freshly summoned armor stand to drop on its very first tick. It does not, in vanilla or in Horizon: LivingEntity.travel moves by the current velocity and only then applies gravity, so a new stand (velocity 0) stays put on tick 1 and falls from tick 2. The test was written against an older tick and was never updated when main's velocity-based stand physics was merged in; it returns early without the prepared resources, so CI never ran it. The test now ticks twice and also checks tick 1 (no move, velocity -0.0784). No gameplay code changes.

Fixes #6235

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Real 26.3 server, stand summoned 10 blocks up, Pos/Motion per tick: tick 1 y drop 0, Motion.y -0.0784; tick 2 drop 0.0784, Motion.y -0.1552; tick 3 total drop 0.2336. Horizon matches on all 12 probed values (side-by-side scene, tolerance 1e-6).

Test

cargo test -p horizon-client --lib armor_stand_motion: 3 passed (was 1 failed on main with resources present).

Two primed-TNT tests

primed_tnt_follows_water_currents_after_moving and a_soul_sand_bubble_column_lifts_primed_tnt also failed with the prepared resources (the earlier "Lift primed TNT in soul sand bubble columns" change edited both). The gameplay code is correct; the tests were wrong. The water test had its TNT moved from y=4.0 to y=6.0, above the water, and is back at 4.0. The bubble test built the column with the block's default state, which is the down-dragging one (drag=true); soul sand makes drag=false, so it now sets that. On the real server a primed TNT in an up-pushing column gains Motion.y 0.06 per tick (+0.377 after five ticks) and TNT beside flowing water drifts east (+0.041 after four ticks); the Horizon unit tests assert the same direction (lift up, drift east, +0.014 a tick).

Self-check note

pr_ready --quick with its default parallelism (about 30 test threads loading the full assets) exceeded its memory limit and thrashed; it is run with RUST_TEST_THREADS=4.

Test-only change. Behaviour compared with the real 26.3 server by script.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick on Valhalla, against origin/main at 975c07d91, 3 min 44 s)

Check Result
Scope ✅ 3 files, +13 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 586 passed (25 s)
rustfmt ✅ (6 s)
Rust ⚠️ 1.98.0 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with rustup update
clippy ✅ (7 s)
tests: horizon-client ✅ 1799 passed (3 min 2 s)
doc tests ✅ 0 passed (1 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 ➖ 327 affected, to run in CI (--quick): armor_stand_frost, arrow_wind_charge, block_removal, boat_authority, boat_paddle_reset, boat_submerged, bulk_section, bundle_weight, camera, canyon_carver, carving_geometry, carving_mask and 315 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.ai/code/session_018zuDTsnyHkP28bzn3u7S3m


🔄 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/6236 **Author:** [@HrafnaValkyrja](https://github.com/HrafnaValkyrja) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/armor-stand-fall` --- ### 📝 Commits (1) - [`9cabc62`](https://github.com/horizon-rust/horizon/commit/9cabc627837d2588bdb7b139415e9849e15b4c13) Fix three stale tests that CI skips ### 📊 Changes **2 files changed** (+13 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entities.rs` (+6 -0) 📝 `crates/horizon-client/src/game/tnt.rs` (+7 -2) </details> ### 📄 Description > 🤖 Opened by Valkyrie's AI agent (Claude Code, Opus 5.5), not by Valkyrie herself. ## What and why `a_tick_keeps_the_previous_position_for_interpolation` expected a freshly summoned armor stand to drop on its very first tick. It does not, in vanilla or in Horizon: `LivingEntity.travel` moves by the current velocity and only then applies gravity, so a new stand (velocity 0) stays put on tick 1 and falls from tick 2. The test was written against an older tick and was never updated when main's velocity-based stand physics was merged in; it returns early without the prepared resources, so CI never ran it. The test now ticks twice and also checks tick 1 (no move, velocity -0.0784). No gameplay code changes. Fixes #6235 ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [x] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference Real 26.3 server, stand summoned 10 blocks up, Pos/Motion per tick: tick 1 y drop 0, Motion.y -0.0784; tick 2 drop 0.0784, Motion.y -0.1552; tick 3 total drop 0.2336. Horizon matches on all 12 probed values (side-by-side scene, tolerance 1e-6). ## Test `cargo test -p horizon-client --lib armor_stand_motion`: 3 passed (was 1 failed on main with resources present). ## Two primed-TNT tests `primed_tnt_follows_water_currents_after_moving` and `a_soul_sand_bubble_column_lifts_primed_tnt` also failed with the prepared resources (the earlier "Lift primed TNT in soul sand bubble columns" change edited both). The gameplay code is correct; the tests were wrong. The water test had its TNT moved from y=4.0 to y=6.0, above the water, and is back at 4.0. The bubble test built the column with the block's default state, which is the down-dragging one (`drag=true`); soul sand makes `drag=false`, so it now sets that. On the real server a primed TNT in an up-pushing column gains Motion.y 0.06 per tick (+0.377 after five ticks) and TNT beside flowing water drifts east (+0.041 after four ticks); the Horizon unit tests assert the same direction (lift up, drift east, +0.014 a tick). ## Self-check note `pr_ready --quick` with its default parallelism (about 30 test threads loading the full assets) exceeded its memory limit and thrashed; it is run with `RUST_TEST_THREADS=4`. Test-only change. Behaviour compared with the real 26.3 server by script. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on Valhalla, against origin/main at 975c07d91, 3 min 44 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +13 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 586 passed (25 s) | | rustfmt | ✅ (6 s) | | Rust | ⚠️ 1.98.0 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with `rustup update` | | clippy | ✅ (7 s) | | tests: horizon-client | ✅ 1799 passed (3 min 2 s) | | doc tests | ✅ 0 passed (1 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 | ➖ 327 affected, to run in CI (--quick): armor_stand_frost, arrow_wind_charge, block_removal, boat_authority, boat_paddle_reset, boat_submerged, bulk_section, bundle_weight, camera, canyon_carver, carving_geometry, carving_mask and 315 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) https://claude.ai/code/session_018zuDTsnyHkP28bzn3u7S3m --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:25:49 +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#6734
No description provided.