[PR #6959] [MERGED] CI: clone the languages into each preparation, as the sounds are #7231

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

📋 Pull Request Information

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

Base: main ← Head: ci/runner-languages


📝 Commits (3)

  • 3a74f01 CI: clone the languages into each preparation, as the sounds are
  • e2b0cad Merge remote-tracking branch 'origin/main' into ci/runner-languages
  • 3a42c67 Merge remote-tracking branch 'origin/main' into ci/runner-languages

📊 Changes

1 file changed (+14 additions, -2 deletions)

View changed files

📝 tools/ci/vanilla-data.sh (+14 -2)

📄 Description

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

Why

Since #6129, tools/test_pack_screen_parity.py draws ten languages (af_za, isv, mk_mk, vp_vl, io_en, oc_fr, ca_es, tl_ph, fr_fr, de_de). horizon-prepare copies them from the official launcher's asset store (horizon-prepare languages), and no Mac runner has one. Every runner preparation held en_us alone, so pack_screen failed on every PR in its scope.

What

tools/ci/vanilla-data.sh handles the languages like the sounds. They depend only on the Minecraft version, so they are kept once in the shared source, languages/<version>/ (assets/pack.mcmeta, the language list, and assets/minecraft/lang/). The existing loop clones them into the runner's copy like any later addition, and they are then cloned (APFS clones or reflinks) into each preparation that lacks them. They are not linked into .local/.

The shared source on the Mac mini already holds languages/26.3/: the 142 language files of asset index 34, sha1-checked against it, plus pack.mcmeta. They were fetched into the version store's launcher-shaped copy, as tools/port_harness.py does for the sounds.

Checked

  • In a scratch runner workspace, the script ran twice against a preparation holding en_us alone. The first run added the languages and pack.mcmeta and kept en_us. The second run changed nothing. No .local/languages link was made.
  • The same files, added by hand on 2026-11-02 to the runners' existing preparations, made pack_screen PASS on #6879's parity run (41408443628). It had failed on #6503, #6535 and #6672. A preparation made since (f08f9a3e) is back to en_us alone: this PR keeps that from happening again.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at ed32f2ec4, 1 min 53 s)

Check Result
Scope ✅ 1 files, +14 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 610 passed (1 min 53 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 16 affected, to run in CI (--quick): armor_stand_frost, armor_stand_turtle_egg, arrow_wind_charge, boat_authority, boat_paddle_reset, boat_submerged, dragon_render, enchantment_components, fishing_hook_entities, inline_object, item_use_order, lan_integration and 4 more
Label skip-release

🤖 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/6959 **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:** `ci/runner-languages` --- ### 📝 Commits (3) - [`3a74f01`](https://github.com/horizon-rust/horizon/commit/3a74f011e167e060d3866544aabdc23977546f9f) CI: clone the languages into each preparation, as the sounds are - [`e2b0cad`](https://github.com/horizon-rust/horizon/commit/e2b0cadb6d37ba195e245e8a067b1ce3ea7a494f) Merge remote-tracking branch 'origin/main' into ci/runner-languages - [`3a42c67`](https://github.com/horizon-rust/horizon/commit/3a42c67b1af27f30793ecb04c62ef76410a422ce) Merge remote-tracking branch 'origin/main' into ci/runner-languages ### 📊 Changes **1 file changed** (+14 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/ci/vanilla-data.sh` (+14 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## Why Since #6129, `tools/test_pack_screen_parity.py` draws ten languages (af_za, isv, mk_mk, vp_vl, io_en, oc_fr, ca_es, tl_ph, fr_fr, de_de). `horizon-prepare` copies them from the official launcher's asset store (`horizon-prepare languages`), and no Mac runner has one. Every runner preparation held `en_us` alone, so pack_screen failed on every PR in its scope. ## What `tools/ci/vanilla-data.sh` handles the languages like the sounds. They depend only on the Minecraft version, so they are kept once in the shared source, `languages/<version>/` (`assets/pack.mcmeta`, the language list, and `assets/minecraft/lang/`). The existing loop clones them into the runner's copy like any later addition, and they are then cloned (APFS clones or reflinks) into each preparation that lacks them. They are not linked into `.local/`. The shared source on the Mac mini already holds `languages/26.3/`: the 142 language files of asset index 34, sha1-checked against it, plus `pack.mcmeta`. They were fetched into the version store's launcher-shaped copy, as `tools/port_harness.py` does for the sounds. ## Checked - In a scratch runner workspace, the script ran twice against a preparation holding `en_us` alone. The first run added the languages and `pack.mcmeta` and kept `en_us`. The second run changed nothing. No `.local/languages` link was made. - The same files, added by hand on 2026-11-02 to the runners' existing preparations, made pack_screen PASS on #6879's parity run (41408443628). It had failed on #6503, #6535 and #6672. A preparation made since (f08f9a3e) is back to `en_us` alone: this PR keeps that from happening again. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at ed32f2ec4, 1 min 53 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +14 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 610 passed (1 min 53 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 16 affected, to run in CI (--quick): armor_stand_frost, armor_stand_turtle_egg, arrow_wind_charge, boat_authority, boat_paddle_reset, boat_submerged, dragon_render, enchantment_components, fishing_hook_entities, inline_object, item_use_order, lan_integration and 4 more | | Label | `skip-release` | 🤖 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:36:02 +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#7231
No description provided.