Mac runner: the game's sounds in each preparation; save_roundtrip Linux-only

The first audit on the Mac mini failed 7 audio harnesses (no sounds in the prepared resources: the Mac mini has
no official launcher for horizon-prepare sounds to copy from) and save_roundtrip (it needs vscreen). The
sounds depend only on the Minecraft version: kept once in shared-local/sounds/<version>/ and linked into each
preparation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-14 20:17:23 +02:00
parent 7b82ee8c16
commit cfad57d0b1
3 changed files with 19 additions and 7 deletions
+8 -4
View File
@@ -25,7 +25,10 @@ copy is: the Mac mini. Its runner runs as the maintainer's account and keeps its
2. `tools/ci/vanilla-data.sh` links `.local/` to the runner's copy of the vanilla data, cloned once from
`~/code/horizon-parity/shared-local` into `~/.actions-runners/horizon/_work/horizon/shared-local`, and
prepares `.local/horizon-client` with the pull request's own `horizon-prepare` once per preparer version
(its sources, the exporters in `mods/horizon/src/test/java` and `research-lock.json`).
(its sources, the exporters in `mods/horizon/src/test/java` and `research-lock.json`). The game's sounds, which
depend only on the Minecraft version, are kept once in `shared-local/sounds/<version>/` (copied from a folder
`horizon-prepare sounds` made from the maintainer's own game; the Mac mini has no official launcher of its own)
and linked into each preparation, for the audio harnesses.
3. `tools/parity.py --changed <base sha>` picks the harnesses whose traced dependencies (their script, Python
modules, Java oracles and every Rust source their probes compile) changed since the merge base, plus any
harness nothing is recorded about yet, and runs those that have no pass for their current inputs. A change to
@@ -35,9 +38,10 @@ Failed harnesses' logs are uploaded as the `parity-logs` artifact.
**Platform-specific harnesses.** A harness listed under `linux_only` in `tools/parity_hosts.json` gives
different results on macOS for a reason that is not a Horizon bug (the reason is printed). `parity.py` skips it on
other platforms unless it is named on the command line. The list is empty today: `options`, `chunk_generation`,
`world_border_render` and `mob_ai`, which once differed on macOS through the platform's libm, pass on the Mac mini
since `horizon_core::jmath` computes what HotSpot computes (checked 2026-10-14).
other platforms unless it is named on the command line. Today it holds only `save_roundtrip` (it needs `vscreen`):
`options`, `chunk_generation`, `world_border_render` and `mob_ai`, which once differed on macOS through the
platform's libm, pass on the Mac mini since `horizon_core::jmath` computes what HotSpot computes (checked
2026-10-14).
**Pull requests from forks** never run code on the Mac mini by themselves. A maintainer who has read the change
adds the `run-parity` label: that runs the job once, on the commit the pull request had then. To run it again
+8 -2
View File
@@ -26,7 +26,7 @@ fi
mkdir -p .local "$shared/prepared"
for entry in "$shared"/*; do
name=$(basename "$entry")
case "$name" in prepared|*.log) continue ;; esac
case "$name" in prepared|sounds|*.log) continue ;; esac
if [ -L ".local/$name" ] || [ ! -e ".local/$name" ]; then ln -sfn "$entry" ".local/$name"; fi
done
@@ -66,13 +66,19 @@ fi
# the same neighbours as in the shared folder.
for entry in "$shared"/*; do
name=$(basename "$entry")
case "$name" in prepared|*.log) continue ;; esac
case "$name" in prepared|sounds|*.log) continue ;; esac
[ -e "$prepared/$name" ] || ln -sfn "$entry" "$prepared/$name"
done
while read -r name; do
if [ -L ".local/$name" ] || [ ! -e ".local/$name" ]; then ln -sfn "$prepared/$name" ".local/$name"; else
echo "::error::.local/$name is not a link to the prepared resources"; exit 1; fi
done < "$prepared/.entries"
# The game's sounds (horizon-prepare sounds copies them from the official launcher's asset store) depend only on the
# Minecraft version: kept once in $shared/sounds/<version>/ (sounds.json and sounds/) and linked into each preparation.
assets="$prepared/horizon-client/$version/assets/minecraft"
if [ -f "$shared/sounds/$version/sounds.json" ] && [ -d "$assets" ]; then
for entry in sounds.json sounds; do [ -e "$assets/$entry" ] || ln -sfn "$shared/sounds/$version/$entry" "$assets/$entry"; done
fi
touch "$prepared"
# The four newest preparations stay.
ls -1dt "$shared/prepared"/*/ 2>/dev/null | tail -n +5 | while read -r old; do rm -rf "$old"; done
+3 -1
View File
@@ -27,5 +27,7 @@
"local_only": {
"save_roundtrip": "runs the game on a virtual screen (vscreen) with a null ALSA device"
},
"linux_only": {}
"linux_only": {
"save_roundtrip": "runs the game on a virtual screen (vscreen), which only the Linux desktop has"
}
}