[PR #1099] [MERGED] lan_e2e: put the host back after the xp check (swings flake) #3045

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

📋 Pull Request Information

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

Base: main ← Head: fix/lan-e2e-xp-host-back


📝 Commits (1)

  • 5c3b059 lan_e2e: put the host back after the xp check

📊 Changes

1 file changed (+24 additions, -16 deletions)

View changed files

📝 tools/lan_e2e.py (+24 -16)

📄 Description

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

What

tools/lan_e2e.py: check_xp now puts the host back in survival where it stood, as check_trials already does.

Why

lan_e2e swings failed now and then with interact …: no face of block … is visible from here, in both modes (found on #1072's server-thread switch, and earlier on other branches in-frame). It never failed alone: --check swings passed 3 of 3.

Root cause, from a failing run with the guest's own view of the blocks dumped:

  • check_xp makes the host a spectator (out of the orbs' way) and never undid it.
  • A spectator sinks. Player.travel keeps 0.6 of the vertical speed each tick, so from standing (−0.0784) it sinks about 0.2 blocks. Measured in single player in both modes: 65.0 → 64.81, then still. That matches vanilla, so the game is right.
  • swings, the first later check that sets survival again, dropped the host to y=64.0, inside the floor block. face_each_other then teleported the guest beside it at the same height.
  • With the guest's feet in the floor's stone, that stone hid the dirt it tills from every angle. The dump showed stone at the block the guest stood in.

How tested (Mac mini)

On the #1072 switch branch, which carries this same commit:

  • lan_e2e --server-thread: 37/39 before (swings failed as above; portals also failed in that run, after the host had been left inside the floor), 39/39 after.
  • lan_e2e in-frame: 39/39 after.
  • python3 -m py_compile tools/lan_e2e.py. No Rust changes, and no parity harness reads this file.

Labels: skip-release (test tool only).

🤖 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/1099 **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/lan-e2e-xp-host-back` --- ### 📝 Commits (1) - [`5c3b059`](https://github.com/horizon-rust/horizon/commit/5c3b05938f097848d8d8ca06e70b76e29b4c59bd) lan_e2e: put the host back after the xp check ### 📊 Changes **1 file changed** (+24 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `tools/lan_e2e.py` (+24 -16) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What `tools/lan_e2e.py`: `check_xp` now puts the host back in survival where it stood, as `check_trials` already does. ## Why `lan_e2e swings` failed now and then with `interact …: no face of block … is visible from here`, in both modes (found on #1072's server-thread switch, and earlier on other branches in-frame). It never failed alone: `--check swings` passed 3 of 3. Root cause, from a failing run with the guest's own view of the blocks dumped: - `check_xp` makes the host a spectator (out of the orbs' way) and never undid it. - A spectator sinks. `Player.travel` keeps 0.6 of the vertical speed each tick, so from standing (−0.0784) it sinks about 0.2 blocks. Measured in single player in both modes: 65.0 → 64.81, then still. That matches vanilla, so the game is right. - `swings`, the first later check that sets survival again, dropped the host to y=64.0, inside the floor block. `face_each_other` then teleported the guest beside it at the same height. - With the guest's feet in the floor's stone, that stone hid the dirt it tills from every angle. The dump showed stone at the block the guest stood in. ## How tested (Mac mini) On the #1072 switch branch, which carries this same commit: - `lan_e2e --server-thread`: 37/39 before (`swings` failed as above; `portals` also failed in that run, after the host had been left inside the floor), 39/39 after. - `lan_e2e` in-frame: 39/39 after. - `python3 -m py_compile tools/lan_e2e.py`. No Rust changes, and no parity harness reads this file. Labels: `skip-release` (test tool only). 🤖 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:01:03 +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#3045
No description provided.