[PR #1909] [MERGED] Migrate player integration coverage to server-thread hosting #3856

Closed
opened 2026-11-03 04:12:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1909
Author: @rdbtCVS
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: t3/server-thread-integration-clean


📝 Commits (5)

  • bd09f8b Migrate player integration coverage to server-thread hosting
  • 2631eca Drop the migration's validation ledger from the docs
  • ab92ab3 Merge remote-tracking branch 'origin/main' into cg15/1909
  • 3df60c2 tests: compare resolved paths in the prepared-report fallback test
  • e3e0891 parity: run lan_integration only when named and in the nightly audit

📊 Changes

31 files changed (+662 additions, -102 deletions)

View changed files

📝 AGENTS.md (+4 -4)
📝 crates/horizon-client/src/bin/horizon-ctl/main.rs (+6 -1)
📝 crates/horizon-client/src/game.rs (+3 -0)
📝 crates/horizon-client/src/game/agent.rs (+3 -0)
📝 crates/horizon-client/src/game/control.rs (+57 -0)
📝 crates/horizon-client/src/game/creatures.rs (+3 -0)
📝 crates/horizon-client/src/game/integrated.rs (+6 -0)
📝 crates/horizon-client/src/game/remote_projectiles.rs (+2 -1)
📝 docs/architecture.md (+1 -1)
📝 docs/parity-workflow.md (+50 -0)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/ParityFont.java (+39 -1)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaPackScreenOracle.java (+1 -1)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaTabListOracle.java (+19 -7)
📝 tests/test_game_home.py (+1 -0)
➕ tests/test_integration_env.py (+50 -0)
📝 tests/test_parity_runner.py (+5 -0)
📝 tools/agent_control_e2e.py (+2 -0)
➕ tools/integration_env.py (+54 -0)
📝 tools/lan_e2e.py (+237 -59)
📝 tools/oracle_harness.py (+4 -1)

...and 11 more files

📄 Description

🤖 Opened by rdbtCVS's AI agent (OpenAI Codex, GPT-6.1).

LAN and friends integration tests now default to the integrated server thread players use, with explicit --in-frame comparisons preserved. Traced parity entry points and named Cargo binary targets include the real-client suites in normal affected-test selection.

Fixture setup and inspection reach the authoritative world; player actions use client input and normal packets. The prediction barrier keeps transport running, observable waits synchronize replication, and launched games use isolated game, launcher and XDG homes. Resource preflight requires both pinned reports. Fixture corrections preserve input cadence and the seven-tick flight rule, observe XP orbs after two controlled ticks, and provide complete landing areas. Tab-list and pack-screen Java oracles load vanilla's full font chain. No failing case is skipped, comparison relaxed, or assertion timeout raised.

The gameplay fixes have been removed from this PR's net diff and split into three independent PRs against main:

  • #1903 — /clear off-hand handling and vanilla inventory-slot order, with command-oracle regressions.
  • #1904 — remote fireball motion and authoritative corrections, with acceleration and connected-client regressions.
  • #1905 — per-player server sculk events and history, with host/guest regressions in both hosting modes.

This migration stays draft until those dependencies land and the full suite is rerun. Its sensor and deflection checks and full-sequence hoe check continue to expose the corresponding unfixed gameplay behavior on main.

Before extraction, combined snapshot cc9410b6 passed 119/119 full LAN cases, zero skipped, the 14-case in-frame comparison plus XP, friends and dedicated-server integration, and a full readiness gate covering 118 affected harnesses. These are historical results for the combined implementation, not a passing claim for this migration by itself. The validation ledger preserves earlier failures, diagnoses, final combined runs and the scope split.

Post-split source validation passes below. Full integration validation remains pending the gameplay dependencies.

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at 8177a6f45, 3 min 15 s)

Check Result
Scope ✅ 29 files, +928 −100
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 290 passed (21 s)
rustfmt ✅ (5 s)
clippy ✅ (25 s)
tests: horizon-client ✅ 1241 passed (2 min 11 s)
doc tests ✅ 0 passed (2 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 70 affected, to run in CI (--quick): arrow, auto_jump, block_entity_render, block_particles, block_removal, breaking_model, camera, chat_screen, cloud_render, command_exec, composter, container_screen and 58 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with OpenAI Codex.


🔄 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/1909 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `t3/server-thread-integration-clean` --- ### 📝 Commits (5) - [`bd09f8b`](https://github.com/horizon-rust/horizon/commit/bd09f8b03eb2338086a7c0a1fe49c19e0c37fc7e) Migrate player integration coverage to server-thread hosting - [`2631eca`](https://github.com/horizon-rust/horizon/commit/2631eca00b66b81ea5582b5421a7ed6c30197b7b) Drop the migration's validation ledger from the docs - [`ab92ab3`](https://github.com/horizon-rust/horizon/commit/ab92ab346cb79b4dd7f2810a32f8d92aebab12d8) Merge remote-tracking branch 'origin/main' into cg15/1909 - [`3df60c2`](https://github.com/horizon-rust/horizon/commit/3df60c21c2ca64b9ce2703c803e4aa555d7f23d0) tests: compare resolved paths in the prepared-report fallback test - [`e3e0891`](https://github.com/horizon-rust/horizon/commit/e3e08911ba77eea2fb561c8879f109f00fab9cd1) parity: run lan_integration only when named and in the nightly audit ### 📊 Changes **31 files changed** (+662 additions, -102 deletions) <details> <summary>View changed files</summary> 📝 `AGENTS.md` (+4 -4) 📝 `crates/horizon-client/src/bin/horizon-ctl/main.rs` (+6 -1) 📝 `crates/horizon-client/src/game.rs` (+3 -0) 📝 `crates/horizon-client/src/game/agent.rs` (+3 -0) 📝 `crates/horizon-client/src/game/control.rs` (+57 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+3 -0) 📝 `crates/horizon-client/src/game/integrated.rs` (+6 -0) 📝 `crates/horizon-client/src/game/remote_projectiles.rs` (+2 -1) 📝 `docs/architecture.md` (+1 -1) 📝 `docs/parity-workflow.md` (+50 -0) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/ParityFont.java` (+39 -1) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaPackScreenOracle.java` (+1 -1) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaTabListOracle.java` (+19 -7) 📝 `tests/test_game_home.py` (+1 -0) ➕ `tests/test_integration_env.py` (+50 -0) 📝 `tests/test_parity_runner.py` (+5 -0) 📝 `tools/agent_control_e2e.py` (+2 -0) ➕ `tools/integration_env.py` (+54 -0) 📝 `tools/lan_e2e.py` (+237 -59) 📝 `tools/oracle_harness.py` (+4 -1) _...and 11 more files_ </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (OpenAI Codex, GPT-6.1). LAN and friends integration tests now default to the integrated server thread players use, with explicit `--in-frame` comparisons preserved. Traced parity entry points and named Cargo binary targets include the real-client suites in normal affected-test selection. Fixture setup and inspection reach the authoritative world; player actions use client input and normal packets. The prediction barrier keeps transport running, observable waits synchronize replication, and launched games use isolated game, launcher and XDG homes. Resource preflight requires both pinned reports. Fixture corrections preserve input cadence and the seven-tick flight rule, observe XP orbs after two controlled ticks, and provide complete landing areas. Tab-list and pack-screen Java oracles load vanilla's full font chain. No failing case is skipped, comparison relaxed, or assertion timeout raised. The gameplay fixes have been removed from this PR's net diff and split into three independent PRs against `main`: - #1903 — `/clear` off-hand handling and vanilla inventory-slot order, with command-oracle regressions. - #1904 — remote fireball motion and authoritative corrections, with acceleration and connected-client regressions. - #1905 — per-player server sculk events and history, with host/guest regressions in both hosting modes. This migration stays **draft until those dependencies land and the full suite is rerun**. Its sensor and deflection checks and full-sequence hoe check continue to expose the corresponding unfixed gameplay behavior on main. Before extraction, combined snapshot `cc9410b6` passed **119/119 full LAN cases, zero skipped**, the **14-case in-frame comparison plus XP**, friends and dedicated-server integration, and a full readiness gate covering **118 affected harnesses**. These are historical results for the combined implementation, not a passing claim for this migration by itself. The [validation ledger](https://github.com/rdbtCVS/horizon/blob/t3/server-thread-integration-clean/docs/validation/server-thread-migration.md) preserves earlier failures, diagnoses, final combined runs and the scope split. Post-split source validation passes below. Full integration validation remains pending the gameplay dependencies. **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 8177a6f45, 3 min 15 s) | Check | Result | | --- | --- | | Scope | ✅ 29 files, +928 −100 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 290 passed (21 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (25 s) | | tests: horizon-client | ✅ 1241 passed (2 min 11 s) | | doc tests | ✅ 0 passed (2 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 70 affected, to run in CI (--quick): arrow, auto_jump, block_entity_render, block_particles, block_removal, breaking_model, camera, chat_screen, cloud_render, command_exec, composter, container_screen and 58 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:12:49 +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#3856
No description provided.