From 5335354658cbbb1970c9bba6d9605f88e1419eda Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 26 Oct 2026 05:10:19 +0100 Subject: [PATCH] CI: runners clone what the shared source gained after their first copy The release runner, now parity-main's, cloned the shared source before the sounds were added to it; vanilla-data.sh only copied on the first run, so ambient_sound, audio_attributes and music failed there with "Sound assets missing". Each run now clones any entry the runner's copy lacks. Co-Authored-By: Claude Opus 5.5 --- tools/ci/vanilla-data.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tools/ci/vanilla-data.sh b/tools/ci/vanilla-data.sh index e8dfb36cc..ebebf3219 100755 --- a/tools/ci/vanilla-data.sh +++ b/tools/ci/vanilla-data.sh @@ -13,17 +13,15 @@ source="${HORIZON_SHARED_SOURCE:-$HOME/code/horizon-parity/shared-local}" version=$(sed -n 's/.*"version": *"\([^"]*\)".*/\1/p' research-lock.json | head -1) if [ ! -f "$shared/minecraft/$version/prepared.json" ]; then [ -f "$source/minecraft/$version/prepared.json" ] || { echo "::error::no imported Minecraft $version in $source"; exit 1; } - mkdir -p "$shared" - if [ "$(uname)" = Darwin ]; then - for entry in "$source"/*; do - [ "$(basename "$entry")" = horizon-client ] || cp -cR "$entry" "$shared/" - done - else - for entry in "$source"/*; do - [ "$(basename "$entry")" = horizon-client ] || cp -R --reflink=auto "$entry" "$shared/" - done - fi fi +# Whatever the source holds and this runner's copy doesn't yet: all of it the first time, and later additions (the +# sounds came after the release runner's first clone, and its audio harnesses failed for want of them). +mkdir -p "$shared" +for entry in "$source"/*; do + name=$(basename "$entry") + [ "$name" = horizon-client ] || [ -e "$shared/$name" ] && continue + if [ "$(uname)" = Darwin ]; then cp -cR "$entry" "$shared/"; else cp -R --reflink=auto "$entry" "$shared/"; fi +done mkdir -p .local "$shared/prepared" for entry in "$shared"/*; do name=$(basename "$entry")