From 373b5f35a38715f42f85f31082eba514b4990658 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 3 Dec 2026 00:09:48 +0100 Subject: [PATCH] Playtest launcher: the build container gets the git safe.directory and machine-id the verify jobs get, and keeps its build log --- scripts/playtest-yggdrasil.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/playtest-yggdrasil.sh b/scripts/playtest-yggdrasil.sh index 773c6f8..e094c04 100644 --- a/scripts/playtest-yggdrasil.sh +++ b/scripts/playtest-yggdrasil.sh @@ -54,9 +54,10 @@ bin=$bin_dir/ghostlight-dungeon-$rev if [ ! -x "$bin" ]; then sudo docker run --rm --cpus=4 --memory=6g \ -v "$PWD:/src" -v eureka-cargo-home:/cargo-home -e CARGO_HOME=/cargo-home \ + -v /etc/machine-id:/etc/machine-id:ro -e GIT_CONFIG_COUNT=1 -e GIT_CONFIG_KEY_0=safe.directory -e GIT_CONFIG_VALUE_0='*' \ -e GHOSTLIGHT_BUILD_COMMIT="$rev" -v "$bin_dir:/out" -w /src "$IMAGE" bash -c ' set -euo pipefail - exe=$(cargo test --locked -p ghostlight-dungeon --no-run --message-format=json 2>/dev/null \ + exe=$(cargo test --locked -p ghostlight-dungeon --no-run --message-format=json 2>/out/build.log \ | grep "\"test\":true" | grep "\"executable\":\"[^\"]*/ghostlight_dungeon-" \ | sed "s/.*\"executable\":\"\([^\"]*\)\".*/\1/" | tail -1) test -n "$exe"