[PR #5691] [MERGED] lunge_motion: name a server tick that ran without a move, retry the harness once (#5656) #6438

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5691
Author: @ludovic111
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/lunge-motion-skipped-tick


📝 Commits (1)

  • 9228c44 lunge_motion: name a server tick that ran without a move, and retry the harness once (#5656)

📊 Changes

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

View changed files

📝 mods/horizon/src/test/java/dev/horizonlab/parity/LocatorBarClient.java (+10 -3)
📝 tools/parity_hosts.json (+2 -1)

📄 Description

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

Fixes #5656. lunge_motion failed on #5502 and #5542 with Alice's falling motion at -0.3015 against vanilla's -0.2277.

No merge broke it. I looked for a regression and found none:

  • main b6ac0602d passes 5 times out of 5, and 3 more times with a fresh vanilla oracle.
  • main 76dc5e3bd (the main CI merged into #5502) passes alone, 2 times out of 2.
  • The exact tree CI failed on (#5502's head 19c46b3fd merged into 76dc5e3bd) passes 2 times out of 2.

What it is. -0.2277 → -0.3015 is exactly one tick more of gravity ((v - 0.08) * 0.98). arc sends one move a tick and waits for the server's game time to move on (nextTick). On a loaded machine, though, a server that is catching up runs two ticks for one move. In the tick with no move, the server's copy of the player falls anyway (vanilla's and Horizon's alike), so a jab after that tick sends one more tick of fall. With this PR's check in place, a loaded run (9 harnesses, 4 at a time) recorded "the server ran 2 ticks for move 7 of the jump" and "for move 10". Those landed after the jab, so they didn't change what's compared. One landing before the jab gives #5656's numbers. In the same loaded run, vanilla's own oracle once sent an extra motion while sprinting, so the variance isn't on Horizon's side alone.

Change (harness only, the game is untouched):

  • LocatorBarClient.nextTick returns how many ticks the server ran. arc records error the server ran N ticks for move M of the jump when that happens up to the jab, so the failure names its cause instead of looking like a parity diff.
  • lunge_motion joins known_flaky in tools/parity_hosts.json, with the reason, so the runner gives it its one retry.

Checks on this head: python3 tools/parity.py --changed-files (the 9 harnesses that use LocatorBarClient: locator_bar, lunge_motion, pearl_death, pearl_wind_charge, server_dimension_players, server_ops_feedback, server_player_targets, cursor_death, hardcore_respawn) gives 9 passed. python3 -m unittest discover -s tests -p "test_parity*.py" is ok.

🤖 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/5691 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lunge-motion-skipped-tick` --- ### 📝 Commits (1) - [`9228c44`](https://github.com/horizon-rust/horizon/commit/9228c441234543b5ede8a00371f6a1679cf6d258) lunge_motion: name a server tick that ran without a move, and retry the harness once (#5656) ### 📊 Changes **2 files changed** (+12 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/LocatorBarClient.java` (+10 -3) 📝 `tools/parity_hosts.json` (+2 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #5656. `lunge_motion` failed on #5502 and #5542 with Alice's falling motion at -0.3015 against vanilla's -0.2277. **No merge broke it.** I looked for a regression and found none: - main b6ac0602d passes 5 times out of 5, and 3 more times with a fresh vanilla oracle. - main 76dc5e3bd (the main CI merged into #5502) passes alone, 2 times out of 2. - The exact tree CI failed on (#5502's head 19c46b3fd merged into 76dc5e3bd) passes 2 times out of 2. **What it is.** -0.2277 → -0.3015 is exactly one tick more of gravity (`(v - 0.08) * 0.98`). `arc` sends one move a tick and waits for the server's game time to move on (`nextTick`). On a loaded machine, though, a server that is catching up runs two ticks for one move. In the tick with no move, the server's copy of the player falls anyway (vanilla's and Horizon's alike), so a jab after that tick sends one more tick of fall. With this PR's check in place, a loaded run (9 harnesses, 4 at a time) recorded "the server ran 2 ticks for move 7 of the jump" and "for move 10". Those landed after the jab, so they didn't change what's compared. One landing before the jab gives #5656's numbers. In the same loaded run, vanilla's own oracle once sent an extra motion while sprinting, so the variance isn't on Horizon's side alone. **Change** (harness only, the game is untouched): - `LocatorBarClient.nextTick` returns how many ticks the server ran. `arc` records `error the server ran N ticks for move M of the jump` when that happens up to the jab, so the failure names its cause instead of looking like a parity diff. - `lunge_motion` joins `known_flaky` in `tools/parity_hosts.json`, with the reason, so the runner gives it its one retry. Checks on this head: `python3 tools/parity.py --changed-files` (the 9 harnesses that use `LocatorBarClient`: locator_bar, lunge_motion, pearl_death, pearl_wind_charge, server_dimension_players, server_ops_feedback, server_player_targets, cursor_death, hardcore_respawn) gives 9 passed. `python3 -m unittest discover -s tests -p "test_parity*.py"` is ok. 🤖 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:20:37 +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#6438
No description provided.