[PR #7084] Improve parity oracle handling and sugar-cane query order #7324

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7084
Author: @yosifdheef
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/sugarcane-water


📝 Commits (6)

  • 1c1d24a Make vanilla oracle errors fail parity tests
  • 63ad854 Match vanilla sugar cane survival query order
  • 39b923f Merge remote-tracking branch 'upstream/main' into fix/sugarcane-water
  • b99d686 Remove synthetic sugar cane query-order test
  • 616ddd3 Merge remote-tracking branch 'upstream/main' into fix/sugarcane-water
  • 20d7f08 Merge remote-tracking branch 'upstream/main' into fix/sugarcane-water

📊 Changes

3 files changed (+7 additions, -5 deletions)

View changed files

📝 crates/horizon-world/src/level/survive.rs (+3 -1)
📝 tools/block_update_harness.py (+3 -3)
📝 tools/test_dispenser_parity.py (+1 -1)

📄 Description

Changes

Parity test reliability

  • Oracle errors now count as parity test failures (total + skipped in block_update_harness.py and test_dispenser_parity.py).
  • Corrected the shared block-update harness and dispenser harness.

Sugar-cane survival query order

  • Match the vanilla block-state and fluid-state query order in survive.rs.

Verification

  • Sugar-cane regression: passed.
  • Full horizon-world suite: 384 passed, 0 failed, 4 ignored.
  • Block-update parity: 40,000 cases matched.
  • Block-removal parity: 4,000 cases matched.

Review follow-up

  • Merged upstream/main (2050c4e0f) into the branch; the diff is the three intended files.
  • Dropped the synthetic query-order unit test, as requested. It pinned an implementation detail; survive.rs keeps the vanilla order.
  • The run-parity job on this head will give the real block-update and dispenser numbers with oracle errors counted as skipped-and-failed.

Scope clarification

This PR does not claim to fix underwater sugar-cane placement. That reported behaviour is consistent with vanilla Minecraft.


🔄 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/7084 **Author:** [@yosifdheef](https://github.com/yosifdheef) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/sugarcane-water` --- ### 📝 Commits (6) - [`1c1d24a`](https://github.com/horizon-rust/horizon/commit/1c1d24a9da9c513eebb61f6756213e83c5d33718) Make vanilla oracle errors fail parity tests - [`63ad854`](https://github.com/horizon-rust/horizon/commit/63ad854317cb507688cb1baea230c1c5d5fe2bab) Match vanilla sugar cane survival query order - [`39b923f`](https://github.com/horizon-rust/horizon/commit/39b923f668f311f27fee5aeed96471e1d690bcbf) Merge remote-tracking branch 'upstream/main' into fix/sugarcane-water - [`b99d686`](https://github.com/horizon-rust/horizon/commit/b99d6860569d0d5e4e202ad23262dff53f3b1839) Remove synthetic sugar cane query-order test - [`616ddd3`](https://github.com/horizon-rust/horizon/commit/616ddd3563c22b847735dcd3c852ea75bf18c8cf) Merge remote-tracking branch 'upstream/main' into fix/sugarcane-water - [`20d7f08`](https://github.com/horizon-rust/horizon/commit/20d7f08f0cbd2de38cbfb89f8198c652ec73e1bf) Merge remote-tracking branch 'upstream/main' into fix/sugarcane-water ### 📊 Changes **3 files changed** (+7 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-world/src/level/survive.rs` (+3 -1) 📝 `tools/block_update_harness.py` (+3 -3) 📝 `tools/test_dispenser_parity.py` (+1 -1) </details> ### 📄 Description ## Changes ### Parity test reliability - Oracle errors now count as parity test failures (`total + skipped` in `block_update_harness.py` and `test_dispenser_parity.py`). - Corrected the shared block-update harness and dispenser harness. ### Sugar-cane survival query order - Match the vanilla block-state and fluid-state query order in `survive.rs`. ## Verification - Sugar-cane regression: passed. - Full horizon-world suite: 384 passed, 0 failed, 4 ignored. - Block-update parity: 40,000 cases matched. - Block-removal parity: 4,000 cases matched. ## Review follow-up - Merged `upstream/main` (`2050c4e0f`) into the branch; the diff is the three intended files. - Dropped the synthetic query-order unit test, as requested. It pinned an implementation detail; `survive.rs` keeps the vanilla order. - The `run-parity` job on this head will give the real block-update and dispenser numbers with oracle errors counted as skipped-and-failed. ## Scope clarification This PR does not claim to fix underwater sugar-cane placement. That reported behaviour is consistent with vanilla Minecraft. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7324
No description provided.