[PR #5848] [MERGED] Server: a joining player's attributes wait for its first chunk batch (dedicated_server flake) #6522

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

📋 Pull Request Information

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

Base: main ← Head: fix/main-build-attributes-after-first-batch


📝 Commits (1)

  • d10b514 Server: a joining player's attributes wait for its first chunk batch

📊 Changes

1 file changed (+9 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/lan/hub.rs (+9 -2)

📄 Description

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

What

With random_tick fixed (#5810), parity-main on b4e123280 still fails, now on dedicated_server (run 41289334815: 357 passed, 1 failed, then failed again on the head):

+play-start minecraft:update_attributes

This is #5560 coming back under load. #5597 held the join tick's dirty attribute instances (block_interaction_range, entity_interaction_range, movement_speed) for one tick, because vanilla syncs them on the next tick, after tickChildren sent the first chunk batch. But this server sends no batch before placed_at + 2, and only once the player's chunks are ready (next_batch). On the busy runner the first batch came after that next tick, so the attributes went out before it. The harness's play-start window ends at the first chunk_batch_start.

They now also wait until a batch has gone (unacknowledged > 0, or the client already acknowledged one, max_unacknowledged > 1). That keeps vanilla's order however long the chunks take. In the usual case nothing changes: they still go on the tick after the batch.

The CI bisect blamed #5767, but that PR only changes the anticheat's replay (prediction.rs, off by default) and touches no attribute. Its single run per commit just landed on a failing one: the same bisect passed at older and newer commits.

Checks

  • python3 tools/parity.py dedicated_server server_entities server_player_damage friends_integration (run together, loaded): 4 passed; dedicated_server again on its own: passed.
  • cargo test -p horizon-client --lib lan::: 129 passed; --test lan_bot: 15 passed; cargo clippy -p horizon-client --lib --tests -D warnings: clean.

🤖 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/5848 **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/main-build-attributes-after-first-batch` --- ### 📝 Commits (1) - [`d10b514`](https://github.com/horizon-rust/horizon/commit/d10b514182199db91082b409ac9ab6d0acdb4dcc) Server: a joining player's attributes wait for its first chunk batch ### 📊 Changes **1 file changed** (+9 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/lan/hub.rs` (+9 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What With `random_tick` fixed (#5810), parity-main on b4e123280 still fails, now on `dedicated_server` (run 41289334815: 357 passed, 1 failed, then failed again on the head): ``` +play-start minecraft:update_attributes ``` This is #5560 coming back under load. #5597 held the join tick's dirty attribute instances (`block_interaction_range`, `entity_interaction_range`, `movement_speed`) for one tick, because vanilla syncs them on the next tick, after `tickChildren` sent the first chunk batch. But this server sends no batch before `placed_at + 2`, and only once the player's chunks are ready (`next_batch`). On the busy runner the first batch came after that next tick, so the attributes went out before it. The harness's `play-start` window ends at the first `chunk_batch_start`. They now also wait until a batch has gone (`unacknowledged > 0`, or the client already acknowledged one, `max_unacknowledged > 1`). That keeps vanilla's order however long the chunks take. In the usual case nothing changes: they still go on the tick after the batch. The CI bisect blamed #5767, but that PR only changes the anticheat's replay (`prediction.rs`, off by default) and touches no attribute. Its single run per commit just landed on a failing one: the same bisect passed at older and newer commits. ## Checks - `python3 tools/parity.py dedicated_server server_entities server_player_damage friends_integration` (run together, loaded): 4 passed; `dedicated_server` again on its own: passed. - `cargo test -p horizon-client --lib lan::`: 129 passed; `--test lan_bot`: 15 passed; `cargo clippy -p horizon-client --lib --tests -D warnings`: clean. 🤖 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:22:20 +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#6522
No description provided.