[PR #7145] [MERGED] prepare_output: leave out files the preparer's export doesn't write #7372

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

📋 Pull Request Information

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

Base: main ← Head: fix/prepare-output-skip-languages


📝 Commits (1)

  • 00e7177 prepare_output: leave out files the preparer's export doesn't write

📊 Changes

2 files changed (+27 additions, -3 deletions)

View changed files

📝 tests/test_prepare_output.py (+13 -0)
📝 tools/prepare_output.py (+14 -3)

📄 Description

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

Every PR's parity job has failed in its first step since #6959 merged, for example #7119, #7107, #7093, #7087 and #7086:

the prepared output changed (23198 files, digest 0ee941a1…) but OUTPUT_VERSION is still 3

The preparer did not change. tools/prepare_output.py digests every file in the runner's preparation, including files that other steps put there:

  • The 142 other languages and assets/pack.mcmeta. Since #6959, tools/ci/vanilla-data.sh clones them into each preparation; only en_us.json and deprecated.json come from the client JAR.
  • asset-index.json, written by the sounds step (crates/horizon-prepare/src/sounds.rs).
  • The game's run-time caches horizon-sprites.cache and horizon-data.bin (sprite_cache.rs, prepared_files.rs). The digest therefore depended on whether a harness had already run the game on that preparation.

The tool now leaves those files out, just as it already did with the sounds. Proof on real data: all 8 preparations on the two Mac runners, old and new, with 2 or 144 language files, now give the digest recorded for OUTPUT_VERSION 3 (5e50c240…, 23,055 files). output-versions.txt is unchanged and players won't have to prepare again.

tests/test_prepare_output.py now adds these files to the second preparation and checks that the digest is the same, and that a change to en_us.json still counts.

🤖 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/7145 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/prepare-output-skip-languages` --- ### 📝 Commits (1) - [`00e7177`](https://github.com/horizon-rust/horizon/commit/00e717781ffd589f8fbd803f2b2fccfe7f1b5e1a) prepare_output: leave out files the preparer's export doesn't write ### 📊 Changes **2 files changed** (+27 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_prepare_output.py` (+13 -0) 📝 `tools/prepare_output.py` (+14 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Every PR's parity job has failed in its first step since #6959 merged, for example #7119, #7107, #7093, #7087 and #7086: ``` the prepared output changed (23198 files, digest 0ee941a1…) but OUTPUT_VERSION is still 3 ``` The preparer did not change. `tools/prepare_output.py` digests every file in the runner's preparation, including files that other steps put there: - **The 142 other languages and `assets/pack.mcmeta`.** Since #6959, `tools/ci/vanilla-data.sh` clones them into each preparation; only `en_us.json` and `deprecated.json` come from the client JAR. - **`asset-index.json`**, written by the sounds step (`crates/horizon-prepare/src/sounds.rs`). - **The game's run-time caches** `horizon-sprites.cache` and `horizon-data.bin` (`sprite_cache.rs`, `prepared_files.rs`). The digest therefore depended on whether a harness had already run the game on that preparation. The tool now leaves those files out, just as it already did with the sounds. Proof on real data: all 8 preparations on the two Mac runners, old and new, with 2 or 144 language files, now give the digest recorded for OUTPUT_VERSION 3 (`5e50c240…`, 23,055 files). `output-versions.txt` is unchanged and players won't have to prepare again. `tests/test_prepare_output.py` now adds these files to the second preparation and checks that the digest is the same, and that a change to `en_us.json` still counts. 🤖 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:38:33 +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#7372
No description provided.