[PR #6894] [MERGED] test_world_input_capture: stub the input trace in the native mouse fixture #7176

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6894
Author: @levzzz5154
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @levzzz5154

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


📝 Commits (1)

  • 4397ada test_world_input_capture: stub the input trace in the native mouse fixture

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 tests/test_world_input_capture.py (+6 -0)

📄 Description

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

The verify job fails on main and on every PR based on it: tests/test_world_input_capture.py::test_native_split_mouse_turns_only_its_owner copies Game::device_event from game.rs into a small standalone Rust program, and since #6712 that method calls self.note_input(input_trace::InputOrigin::User, input_trace::TraceKind::Motion { x, y }). The fixture had no input_trace module and no note_input, so it no longer compiled (E0433 input_trace, E0599 note_input).

This change adds a stub input_trace module and a note_input that does nothing. Recording the input does not change the turn, which is what the test checks. The test's cases and expected rotations are unchanged.

Seen on: #6884 (verify run 41408947621).

Tests

  • python3 -m unittest tests.test_world_input_capture: 4 tests OK. Before this change, the same test failed on hr/main 57c3055ce with the errors above.

Test-only, so labeled skip-release.

Refs #6712

🤖 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/6894 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/input-capture-fixture-trace` --- ### 📝 Commits (1) - [`4397ada`](https://github.com/horizon-rust/horizon/commit/4397ada8e0d5796e2ca051c2373000833801b918) test_world_input_capture: stub the input trace in the native mouse fixture ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_world_input_capture.py` (+6 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 personally. The `verify` job fails on main and on every PR based on it: `tests/test_world_input_capture.py::test_native_split_mouse_turns_only_its_owner` copies `Game::device_event` from game.rs into a small standalone Rust program, and since #6712 that method calls `self.note_input(input_trace::InputOrigin::User, input_trace::TraceKind::Motion { x, y })`. The fixture had no `input_trace` module and no `note_input`, so it no longer compiled (`E0433 input_trace`, `E0599 note_input`). This change adds a stub `input_trace` module and a `note_input` that does nothing. Recording the input does not change the turn, which is what the test checks. The test's cases and expected rotations are unchanged. Seen on: #6884 (`verify` run 41408947621). **Tests** - `python3 -m unittest tests.test_world_input_capture`: 4 tests OK. Before this change, the same test failed on hr/main 57c3055ce with the errors above. Test-only, so labeled `skip-release`. Refs #6712 🤖 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 06:35: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#7176
No description provided.