[PR #1074] [MERGED] tests: main's red verify (input capture fixture after #235) and a horizon-server temp-folder flake #3024

Closed
opened 2026-11-02 16:00:53 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/input-capture-fixture


📝 Commits (2)

  • b67b3c2 tests: the input capture fixture models #235's cursor recentring
  • 386cb52 horizon-server tests: settings and config no longer share a temp folder

📊 Changes

2 files changed (+44 additions, -4 deletions)

View changed files

📝 crates/horizon-server/src/settings.rs (+1 -1)
📝 tests/test_world_input_capture.py (+43 -3)

📄 Description

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

Main's verify is red since #235 (1225f89e): test_world_input_capture.test_capture_lifecycle compiles the client's own capture and capture_loaded_world against a small fixture, and #235 made capture use things the fixture didn't have (Window::inner_size, set_cursor_position, winit::dpi::PhysicalPosition, HudBatch, Game::renderer, Game::cursor). Every PR's verify fails at "Test offline research tooling" until this lands.

What

tests/test_world_input_capture.py only:

  • stubs for winit::dpi::PhysicalPosition (Copy, like winit's) and PhysicalSize (with winit's Into<[u32; 2]>), Window::inner_size and set_cursor_position (counts warps, keeps the last position), HudBatch::new(size).scale, Game::renderer and Game::cursor;
  • new assertions for #235's behaviour (vanilla MouseHandler.grabMouse / releaseMouse): one warp to the surface's centre on grab, two on release, the HUD cursor at the centre in GUI units, and nothing when releasing an already released pointer.

Also a flaky test on main: horizon-server's a_stopped_server_saves_and_keeps_comments (settings.rs) and writes_properties_and_syncs_back (config.rs) shared the temp folder horizon-server-config-<pid>, so running together one removed or rewrote the other's horizon.toml (it failed 1 run in 3 on the Mac mini). The settings test gets its own folder.

No game code changes.

Checks

  • cargo test -p horizon-server: 42 passed, three runs in a row (before: writes_properties_and_syncs_back failed once in three).
  • python3 -m unittest tests.test_world_input_capture -v: 2 passed (failed with 6 rustc errors before).
  • python3 -m unittest discover -s tests on the Mac mini: everything else passes except two tests that fail locally on macOS only (no java in the test's PATH, /private/var vs /var temp paths); they pass on CI's Linux.

🤖 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/1074 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/input-capture-fixture` --- ### 📝 Commits (2) - [`b67b3c2`](https://github.com/horizon-rust/horizon/commit/b67b3c23edc86549a97e723b8329043984b18775) tests: the input capture fixture models #235's cursor recentring - [`386cb52`](https://github.com/horizon-rust/horizon/commit/386cb5203a99db00694ac0707c1b53045b8c1bd7) horizon-server tests: settings and config no longer share a temp folder ### 📊 Changes **2 files changed** (+44 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-server/src/settings.rs` (+1 -1) 📝 `tests/test_world_input_capture.py` (+43 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. **Main's `verify` is red since #235** (1225f89e): `test_world_input_capture.test_capture_lifecycle` compiles the client's own `capture` and `capture_loaded_world` against a small fixture, and #235 made `capture` use things the fixture didn't have (`Window::inner_size`, `set_cursor_position`, `winit::dpi::PhysicalPosition`, `HudBatch`, `Game::renderer`, `Game::cursor`). Every PR's verify fails at "Test offline research tooling" until this lands. ## What `tests/test_world_input_capture.py` only: - stubs for `winit::dpi::PhysicalPosition` (Copy, like winit's) and `PhysicalSize` (with winit's `Into<[u32; 2]>`), `Window::inner_size` and `set_cursor_position` (counts warps, keeps the last position), `HudBatch::new(size).scale`, `Game::renderer` and `Game::cursor`; - new assertions for #235's behaviour (vanilla `MouseHandler.grabMouse` / `releaseMouse`): one warp to the surface's centre on grab, two on release, the HUD cursor at the centre in GUI units, and nothing when releasing an already released pointer. Also a flaky test on main: `horizon-server`'s `a_stopped_server_saves_and_keeps_comments` (settings.rs) and `writes_properties_and_syncs_back` (config.rs) shared the temp folder `horizon-server-config-<pid>`, so running together one removed or rewrote the other's `horizon.toml` (it failed 1 run in 3 on the Mac mini). The settings test gets its own folder. No game code changes. ## Checks - `cargo test -p horizon-server`: 42 passed, three runs in a row (before: `writes_properties_and_syncs_back` failed once in three). - `python3 -m unittest tests.test_world_input_capture -v`: 2 passed (failed with 6 rustc errors before). - `python3 -m unittest discover -s tests` on the Mac mini: everything else passes except two tests that fail locally on macOS only (no `java` in the test's PATH, `/private/var` vs `/var` temp paths); they pass on CI's Linux. 🤖 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-02 16:00:53 +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#3024
No description provided.