From 1a1f6437a91e9f7cb4a318d3734746de09616446 Mon Sep 17 00:00:00 2001 From: autocommit Date: Tue, 26 May 2026 16:12:57 -0700 Subject: [PATCH] =?UTF-8?q?perf(autoplay):=20=E2=9A=A1=20Implement=20conta?= =?UTF-8?q?iner=20mode=20detection=20for=20AUTOPLAY=5FGODOD=5FBIN=20to=20s?= =?UTF-8?q?kip=20rebuilds=20in=20Docker=20environments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- tools/autoplay-batch.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/autoplay-batch.sh b/tools/autoplay-batch.sh index 74d2dc26..98a4bc36 100755 --- a/tools/autoplay-batch.sh +++ b/tools/autoplay-batch.sh @@ -144,7 +144,12 @@ echo "============================================================" # Remote mode delegates to run_ap3.sh on the remote host, which is expected to # have a fresh build already (or the caller ran build-gdext.sh manually). # Uses a timestamped CARGO_TARGET_DIR to avoid collisions on multi-tenant hosts. -if [ -z "$AUTOPLAY_HOST" ]; then +# +# Container mode (AUTOPLAY_GODOT_BIN set): the mc-ai docker image bakes the .so +# at image-build time and the entrypoint installs it into the bind-mounted +# worktree before this script runs, so the rebuild is both unnecessary and +# unrunnable (the runtime image has no cargo). +if [ -z "$AUTOPLAY_HOST" ] && [ -z "${AUTOPLAY_GODOT_BIN:-}" ]; then echo "--- p1-45: rebuilding GDExtension before batch (CARGO_TARGET_DIR isolation) ---" MC_BUILD_STAMP="$(date +%s)" export CARGO_TARGET_DIR="/tmp/mc-build-${MC_BUILD_STAMP}/target"