perf: speed up Docker aggregate smokes

This commit is contained in:
Peter Steinberger
2026-04-24 19:38:21 +01:00
parent 3bd2ee78b6
commit dcf01ce72f
4 changed files with 67 additions and 12 deletions

View File

@@ -2,6 +2,25 @@
openclaw_live_stage_source_tree() {
local dest_dir="${1:?destination directory required}"
local stage_mode="${OPENCLAW_LIVE_DOCKER_SOURCE_STAGE_MODE:-copy}"
if [ "$stage_mode" = "symlink" ]; then
mkdir -p "$dest_dir"
local entry
while IFS= read -r -d "" entry; do
entry="${entry#./}"
case "$entry" in
.git | node_modules | dist | .pnpm-store | .tmp | .tmp-precommit-venv | .worktrees | __openclaw_vitest__ | relay.sock)
continue
;;
*.sock)
continue
;;
esac
ln -s "/src/$entry" "$dest_dir/$entry"
done < <(cd /src && find . -mindepth 1 -maxdepth 1 -print0)
return 0
fi
set +e
tar -C /src \