[PR #424] [MERGED] tools/lan_e2e.py: a LAN host and guest, checked from both sides #2555

Closed
opened 2026-11-02 15:57:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: test/lan-e2e


📝 Commits (1)

  • fd1acd5 tools/lan_e2e.py: a host and a guest on LAN, checked from both sides

📊 Changes

2 files changed (+336 additions, -1 deletions)

View changed files

📝 docs/agent-control.md (+3 -1)
➕ tools/lan_e2e.py (+333 -0)

📄 Description

What

tools/lan_e2e.py: a reusable LAN test with two real games. A host opens a survival world to LAN with commands allowed, a guest joins by address, and the script checks from both sides what a guest sees and can do:

  • tab: the guest's player list shows the host and the guest under their own names;
  • self: the guest's own model (F5, inventory preview);
  • armour: each side draws the other player in that player's armour;
  • nametags: each side shows the other player's name tag;
  • chest: the guest opens a chest; the lid opens on both sides and closes on both;
  • crafting: planks in the 2x2 grid, sticks at a crafting table;
  • damage: a 12-block fall hurts, a fall into water doesn't.

Each check runs and reports on its own, with screenshots of both sides in --out. On macOS both games render offscreen; on Linux they need vscreen. docs/agent-control.md mentions it next to the other end-to-end scripts.

python3 tools/lan_e2e.py --bin-dir target/fast [--check chest ...] [--out DIR]

Why

#366 lists guest bugs that only show with two games. This makes each one reproducible in one command and proves the fixes.

Results

check origin/main with the six fixes
tab PASS, but the host shows as "Player" PASS (Guest, Player10560)
self FAIL (no model) PASS
armour FAIL PASS
nametags FAIL (none) PASS
chest FAIL (lid 0 / 0) PASS (open 1.0 / 1.0, closed 0 / 0)
crafting FAIL (0 planks) PASS (4 planks; 4 sticks)
damage FAIL (20 → 20) PASS (20 → 13; water 14.3)

Merge it last, after the six fixes, so a run on main passes.

Self-check

Python only, plus one docs line; no Rust change. The test ran against origin/main and against the six fixes merged (table above). On those fixes: fmt clean, clippy -D warnings clean (workspace, and each branch alone), cargo test -p horizon-client 743 passed, tools/parity.py --changed origin/main 81/81.

What needs Ludovic

Nothing. It needs .local/horizon-client resources; on Linux it needs vscreen (the desktop), and I ran it only on macOS.

Fixes #366 (merge last, after the six fixes).

🤖 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/424 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `test/lan-e2e` --- ### 📝 Commits (1) - [`fd1acd5`](https://github.com/horizon-rust/horizon/commit/fd1acd5ed76349a3547c5813921a98196f8da7cc) tools/lan_e2e.py: a host and a guest on LAN, checked from both sides ### 📊 Changes **2 files changed** (+336 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/agent-control.md` (+3 -1) ➕ `tools/lan_e2e.py` (+333 -0) </details> ### 📄 Description ## What `tools/lan_e2e.py`: a reusable LAN test with two real games. A host opens a survival world to LAN with commands allowed, a guest joins by address, and the script checks from both sides what a guest sees and can do: - `tab`: the guest's player list shows the host and the guest under their own names; - `self`: the guest's own model (F5, inventory preview); - `armour`: each side draws the other player in that player's armour; - `nametags`: each side shows the other player's name tag; - `chest`: the guest opens a chest; the lid opens on both sides and closes on both; - `crafting`: planks in the 2x2 grid, sticks at a crafting table; - `damage`: a 12-block fall hurts, a fall into water doesn't. Each check runs and reports on its own, with screenshots of both sides in `--out`. On macOS both games render offscreen; on Linux they need vscreen. `docs/agent-control.md` mentions it next to the other end-to-end scripts. python3 tools/lan_e2e.py --bin-dir target/fast [--check chest ...] [--out DIR] ## Why #366 lists guest bugs that only show with two games. This makes each one reproducible in one command and proves the fixes. ## Results | check | origin/main | with the six fixes | |---|---|---| | tab | PASS, but the host shows as "Player" | PASS (`Guest`, `Player10560`) | | self | FAIL (no model) | PASS | | armour | FAIL | PASS | | nametags | FAIL (none) | PASS | | chest | FAIL (lid 0 / 0) | PASS (open 1.0 / 1.0, closed 0 / 0) | | crafting | FAIL (0 planks) | PASS (4 planks; 4 sticks) | | damage | FAIL (20 → 20) | PASS (20 → 13; water 14.3) | Merge it last, after the six fixes, so a run on main passes. ## Self-check Python only, plus one docs line; no Rust change. The test ran against origin/main and against the six fixes merged (table above). On those fixes: fmt clean, clippy `-D warnings` clean (workspace, and each branch alone), `cargo test -p horizon-client` 743 passed, `tools/parity.py --changed origin/main` 81/81. ## What needs Ludovic Nothing. It needs `.local/horizon-client` resources; on Linux it needs vscreen (the desktop), and I ran it only on macOS. Fixes #366 (merge last, after the six fixes). 🤖 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 15:57:09 +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#2555
No description provided.