[PR #4438] [MERGED] Fix main's test build: duplicate tests module in creatures.rs, two stale test signatures #5621

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

📋 Pull Request Information

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

Base: main ← Head: fix/creatures-test-modules


📝 Commits (1)

  • 3e2bcb0 Fix main's test build: one tests module per file, Items::load and in_water signatures in tests

📊 Changes

2 files changed (+9 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/end_gateway.rs (+1 -1)
📝 crates/horizon-client/src/game/creatures.rs (+8 -2)

📄 Description

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

main's test targets don't compile since 14:26Z, and the merger can't land anything while that's true ("main itself doesn't build"). Three test-only breaks, each from PRs that passed alone but not together:

  • game/creatures.rs has two mod tests (the thrown-item tests and #4082's pearl test). The pearl one becomes mod pearl_tests.
  • That pearl test calls Items::load with 3 arguments. Main's Items::load takes a PackOverlay now; it gets &PackOverlay::NONE, like every other test caller.
  • end_gateway.rs's test ProjectileWorld impl still has in_water(Vec3). The trait takes the Aabb bounds now.

No game code changes.

Checks

  • cargo check --locked --workspace --lib --bins --tests (wasm guest cdylibs excluded, macOS): passes on 0056f3445 + this commit; fails on 0056f3445 alone (E0428, E0061, E0053).
  • cargo fmt --all -- --check: clean.
  • cargo test -p horizon-client --bin horizon-client creatures::: 5 passed (pearl test included, with .local data).
  • cargo test -p horizon-client --lib end_gateway: 11 passed.

pr_ready --quick (3e2bcb00b)

Check Result
Scope ✅ 2 files, +9 −3
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ✅ 480 passed (1 min 45 s)
rustfmt ✅ (5 s)
clippy ✅ (1 min 23 s)
tests: horizon-client ✅ 1037 passed (27 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 ➖ 34 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 22 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The 34 harnesses are listed because creatures.rs is in the game binary; this commit only changes #[cfg(test)] code.

🤖 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/4438 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/creatures-test-modules` --- ### 📝 Commits (1) - [`3e2bcb0`](https://github.com/horizon-rust/horizon/commit/3e2bcb00bc3aab2fb421c3acf6af7957dba4e940) Fix main's test build: one tests module per file, Items::load and in_water signatures in tests ### 📊 Changes **2 files changed** (+9 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/end_gateway.rs` (+1 -1) 📝 `crates/horizon-client/src/game/creatures.rs` (+8 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. main's test targets don't compile since 14:26Z, and the merger can't land anything while that's true ("main itself doesn't build"). Three test-only breaks, each from PRs that passed alone but not together: - `game/creatures.rs` has two `mod tests` (the thrown-item tests and #4082's pearl test). The pearl one becomes `mod pearl_tests`. - That pearl test calls `Items::load` with 3 arguments. Main's `Items::load` takes a `PackOverlay` now; it gets `&PackOverlay::NONE`, like every other test caller. - `end_gateway.rs`'s test `ProjectileWorld` impl still has `in_water(Vec3)`. The trait takes the `Aabb` bounds now. No game code changes. ## Checks - `cargo check --locked --workspace --lib --bins --tests` (wasm guest cdylibs excluded, macOS): passes on 0056f3445 + this commit; fails on 0056f3445 alone (E0428, E0061, E0053). - `cargo fmt --all -- --check`: clean. - `cargo test -p horizon-client --bin horizon-client creatures::`: 5 passed (pearl test included, with `.local` data). - `cargo test -p horizon-client --lib end_gateway`: 11 passed. ## pr_ready --quick (3e2bcb00b) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +9 −3 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ✅ 480 passed (1 min 45 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (1 min 23 s) | | tests: horizon-client | ✅ 1037 passed (27 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 | ➖ 34 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 22 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The 34 harnesses are listed because `creatures.rs` is in the game binary; this commit only changes `#[cfg(test)]` code. 🤖 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:13:51 +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#5621
No description provided.