[PR #11] [MERGED] Bound rejected terrain dispatch retries without retaining the dispatcher lock #2262

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

📋 Pull Request Information

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

Base: main ← Head: priority-dispatch-backoff


📝 Commits (3)

  • 9c2b506 Bound rejected DH dispatch retries and validate applied hooks
  • 93e0ac5 Install software Vulkan fallback for headless dispatcher checks
  • ec6b5f8 Record actual Fabric dispatch fixture results with measurement limits

📊 Changes

20 files changed (+479 additions, -8 deletions)

View changed files

📝 .github/workflows/ci.yml (+10 -0)
📝 README.md (+7 -2)
➕ benchmarks/dispatch-retry-2026-10-04/linux-applied-hooks.json (+34 -0)
➕ docs/dispatch-retry.md (+70 -0)
📝 docs/playable-validation.md (+1 -1)
➕ mods/horizon-lab/src/main/java/dev/horizonlab/budget/DispatchRetry.java (+14 -0)
📝 mods/horizon-lab/src/main/java/dev/horizonlab/client/HorizonClient.java (+1 -0)
➕ mods/horizon-lab/src/main/java/dev/horizonlab/mixin/DhPriorityDispatchMixin.java (+76 -0)
📝 mods/horizon-lab/src/main/java/dev/horizonlab/mixin/HorizonMixinPlugin.java (+18 -0)
📝 mods/horizon-lab/src/main/resources/fabric.mod.json (+1 -1)
📝 mods/horizon-lab/src/main/resources/horizonlab.mixins.json (+1 -1)
➕ mods/horizon-lab/src/test/java/dev/horizonlab/budget/DispatchRetryTest.java (+23 -0)
➕ mods/horizon-lab/src/test/java/dev/horizonlab/dispatch/DispatchIntegration.java (+108 -0)
📝 packs/START-HERE.txt (+7 -1)
📝 packs/mods.lock.json (+1 -1)
📝 tests/test_packs.py (+12 -0)
📝 tools/Compare-Benchmarks.html (+1 -0)
📝 tools/build_mod.py (+26 -0)
📝 tools/build_pack.py (+4 -1)
➕ tools/test_dispatch.py (+64 -0)

📄 Description

A rejected submission in DH 3.3.4 immediately requeues and retries the same task while holding the shared dispatcher lock. A local game profile repeatedly entered that exception path. The optional dispatch-retry pack now ends the rejected executor’s pass and schedules a 1 ms retry, while preserving original requeue handling, priority ordering, occupied-slot bookkeeping and shutdown behavior. Other executors can progress during the same pass. Balanced and all existing profiles keep the hook disabled.

Validation: policy tests, 21 Python checks, an actual Fabric fixture comparing the upstream and applied-hook paths, and a 120-second Linux demo-game recording followed by clean shutdown. The fixture checks task execution exactly once, independent-executor progress, empty queues, recovered occupied slots and worker termination. CI compiles on Windows, Linux and ARM macOS and runs the applied-hook fixture on headless Linux. Synthetic caller CPU/allocation measurements do not establish Minecraft FPS, whole-game RAM, terrain completion or M2 gains.

Prepares v0.10.0 with twelve portable profiles, captured dispatch-hook state and an offline viewer detail. Updates Prism instructions to enable the per-instance memory override. Restricts push CI to main so PR validation does not duplicate expensive client startup checks.


🔄 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/11 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/3/2026 **Status:** ✅ Merged **Merged:** 10/3/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `priority-dispatch-backoff` --- ### 📝 Commits (3) - [`9c2b506`](https://github.com/horizon-rust/horizon/commit/9c2b5066ec6d440671d37534a734c18d86812232) Bound rejected DH dispatch retries and validate applied hooks - [`93e0ac5`](https://github.com/horizon-rust/horizon/commit/93e0ac5beaef2ee2df98707c983a5fa691dcee70) Install software Vulkan fallback for headless dispatcher checks - [`ec6b5f8`](https://github.com/horizon-rust/horizon/commit/ec6b5f84a177860ae230cd49477ea92521a78213) Record actual Fabric dispatch fixture results with measurement limits ### 📊 Changes **20 files changed** (+479 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+10 -0) 📝 `README.md` (+7 -2) ➕ `benchmarks/dispatch-retry-2026-10-04/linux-applied-hooks.json` (+34 -0) ➕ `docs/dispatch-retry.md` (+70 -0) 📝 `docs/playable-validation.md` (+1 -1) ➕ `mods/horizon-lab/src/main/java/dev/horizonlab/budget/DispatchRetry.java` (+14 -0) 📝 `mods/horizon-lab/src/main/java/dev/horizonlab/client/HorizonClient.java` (+1 -0) ➕ `mods/horizon-lab/src/main/java/dev/horizonlab/mixin/DhPriorityDispatchMixin.java` (+76 -0) 📝 `mods/horizon-lab/src/main/java/dev/horizonlab/mixin/HorizonMixinPlugin.java` (+18 -0) 📝 `mods/horizon-lab/src/main/resources/fabric.mod.json` (+1 -1) 📝 `mods/horizon-lab/src/main/resources/horizonlab.mixins.json` (+1 -1) ➕ `mods/horizon-lab/src/test/java/dev/horizonlab/budget/DispatchRetryTest.java` (+23 -0) ➕ `mods/horizon-lab/src/test/java/dev/horizonlab/dispatch/DispatchIntegration.java` (+108 -0) 📝 `packs/START-HERE.txt` (+7 -1) 📝 `packs/mods.lock.json` (+1 -1) 📝 `tests/test_packs.py` (+12 -0) 📝 `tools/Compare-Benchmarks.html` (+1 -0) 📝 `tools/build_mod.py` (+26 -0) 📝 `tools/build_pack.py` (+4 -1) ➕ `tools/test_dispatch.py` (+64 -0) </details> ### 📄 Description A rejected submission in DH 3.3.4 immediately requeues and retries the same task while holding the shared dispatcher lock. A local game profile repeatedly entered that exception path. The optional `dispatch-retry` pack now ends the rejected executor’s pass and schedules a 1 ms retry, while preserving original requeue handling, priority ordering, occupied-slot bookkeeping and shutdown behavior. Other executors can progress during the same pass. Balanced and all existing profiles keep the hook disabled. Validation: policy tests, 21 Python checks, an actual Fabric fixture comparing the upstream and applied-hook paths, and a 120-second Linux demo-game recording followed by clean shutdown. The fixture checks task execution exactly once, independent-executor progress, empty queues, recovered occupied slots and worker termination. CI compiles on Windows, Linux and ARM macOS and runs the applied-hook fixture on headless Linux. Synthetic caller CPU/allocation measurements do not establish Minecraft FPS, whole-game RAM, terrain completion or M2 gains. Prepares v0.10.0 with twelve portable profiles, captured dispatch-hook state and an offline viewer detail. Updates Prism instructions to enable the per-instance memory override. Restricts push CI to main so PR validation does not duplicate expensive client startup checks. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:54:28 +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#2262
No description provided.