[PR #7385] [CLOSED] xtask: the placeholder test no longer reads a stamped fragment #7568

Closed
opened 2026-11-03 07:19:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7385
Author: @arismoko
Created: 11/2/2026
Status: ❌ Closed

Base: main ← Head: v2/ses_01M6BECNQ499TYMMBQBDF00VJ5-xtask-fragment-test


📝 Commits (1)

  • aa5bbd3 xtask: the placeholder test drops item_damaged's mod_api from the catalog

📊 Changes

1 file changed (+16 additions, -6 deletions)

View changed files

📝 xtask/src/mod_api.rs (+16 -6)

📄 Description

🤖 Opened by Aria's agent swarm, Dyna, not by Aria.

cargo test -p xtask fails on main. mod_api::tests::new_hook_placeholder_is_reported_then_filled panics reading tools/native-hook-fragments/native_item_damaged.json. The test came from the work on #6910. 48c63bc09 stamped the pending fragments into native-hooks.json, which deleted that file, so every PR's pr_ready now shows this failure.

The step that reads the file checks that a hook with no mod_api entry fails by name. That step now removes item_damaged's mod_api from the test's own copy of native-hooks.json (the copy the test already makes under target/). It checks the same error, hook item_damaged has no mod_api entry: add one, then copies the shipped catalog back. The rest of the test is unchanged. The test now relies only on the stamped catalog, so it holds whichever fragments are pending.

The change is only in this test: 1 file, +16 −6. Nothing outside xtask's tests changes.

Tested

  • cargo test -p xtask: 19 passed. At main fdd290b99, without this change, this test fails at the fragment read.
  • cargo clippy -p xtask --all-targets -- -D warnings: clean.

Not tested in game. No game, launcher or generated code changes, and the generator itself is untouched, so there is nothing to run in game. For the same reason, the end-to-end route for native mods (horizon-machine-sample) doesn't apply and wasn't used.

pr_ready

Run at head aa5bbd3c35.

pr_ready (tools/pr_ready.py --quick --base fdd290b99 on f2196cc12001, against fdd290b99 at fdd290b99, 2 min 3 s)

Check Result
Scope ✅ 1 files, +16 −6
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (32 s)
rustfmt ✅ (7 s)
clippy ✅ (58 s)
tests: xtask ✅ 19 passed (14 s)
doc tests ➖ no library touched
content root tests ➖ content root untouched
mod API up to date ✅ (12 s)
tokens.css up to date ✅
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Dyna.


🔄 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/7385 **Author:** [@arismoko](https://github.com/arismoko) **Created:** 11/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `v2/ses_01M6BECNQ499TYMMBQBDF00VJ5-xtask-fragment-test` --- ### 📝 Commits (1) - [`aa5bbd3`](https://github.com/horizon-rust/horizon/commit/aa5bbd3c35013fd88f6889df8c7f911527d46934) xtask: the placeholder test drops item_damaged's mod_api from the catalog ### 📊 Changes **1 file changed** (+16 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `xtask/src/mod_api.rs` (+16 -6) </details> ### 📄 Description > 🤖 Opened by Aria's agent swarm, Dyna, not by Aria. `cargo test -p xtask` fails on main. `mod_api::tests::new_hook_placeholder_is_reported_then_filled` panics reading `tools/native-hook-fragments/native_item_damaged.json`. The test came from the work on #6910. 48c63bc09 stamped the pending fragments into `native-hooks.json`, which deleted that file, so every PR's pr_ready now shows this failure. The step that reads the file checks that a hook with no `mod_api` entry fails by name. That step now removes `item_damaged`'s `mod_api` from the test's own copy of `native-hooks.json` (the copy the test already makes under `target/`). It checks the same error, `hook item_damaged has no mod_api entry: add one`, then copies the shipped catalog back. The rest of the test is unchanged. The test now relies only on the stamped catalog, so it holds whichever fragments are pending. The change is only in this test: 1 file, +16 −6. Nothing outside `xtask`'s tests changes. ## Tested - `cargo test -p xtask`: 19 passed. At main fdd290b99, without this change, this test fails at the fragment read. - `cargo clippy -p xtask --all-targets -- -D warnings`: clean. **Not tested in game.** No game, launcher or generated code changes, and the generator itself is untouched, so there is nothing to run in game. For the same reason, the end-to-end route for native mods ([horizon-machine-sample](https://github.com/arismoko/horizon-machine-sample)) doesn't apply and wasn't used. ## pr_ready Run at head aa5bbd3c35. **pr_ready** (`tools/pr_ready.py --quick --base fdd290b99` on f2196cc12001, against fdd290b99 at fdd290b99, 2 min 3 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +16 −6 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (32 s) | | rustfmt | ✅ (7 s) | | clippy | ✅ (58 s) | | tests: xtask | ✅ 19 passed (14 s) | | doc tests | ➖ no library touched | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (12 s) | | tokens.css up to date | ✅ | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with Dyna. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:19:58 +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#7568
No description provided.