From 82b928232e072d06ff2e867f57ebbdaed909c709 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 27 Apr 2026 01:02:35 +0100 Subject: [PATCH] test(docker): stabilize package update lanes --- scripts/docker/install-sh-e2e/run.sh | 3 ++- scripts/e2e/update-channel-switch-docker.sh | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/docker/install-sh-e2e/run.sh b/scripts/docker/install-sh-e2e/run.sh index d9cbdffb7aa..908e21da806 100755 --- a/scripts/docker/install-sh-e2e/run.sh +++ b/scripts/docker/install-sh-e2e/run.sh @@ -350,7 +350,8 @@ const payloads = []; const texts = payloads.map((x) => String(x?.text ?? "").trim()).filter(Boolean); const match = texts.find((text) => text === expected); -process.stdout.write(match ?? texts[0] ?? ""); +const containingMatch = texts.find((text) => text.includes(expected)); +process.stdout.write(match ?? (containingMatch ? expected : texts[0]) ?? ""); NODE } diff --git a/scripts/e2e/update-channel-switch-docker.sh b/scripts/e2e/update-channel-switch-docker.sh index c9bca848fb8..dc52e3f3526 100755 --- a/scripts/e2e/update-channel-switch-docker.sh +++ b/scripts/e2e/update-channel-switch-docker.sh @@ -41,6 +41,9 @@ git_root="/tmp/openclaw-git" mkdir -p "$git_root" # Build the fake git install from the packed package contents, not the checkout. tar -xzf "$package_tgz" -C "$git_root" --strip-components=1 +# The package-derived fixture can carry patchedDependencies whose targets are +# absent from the trimmed tarball install; that should not block update preflight. +printf "\nallow-unused-patches=true\n" >>"$git_root/.npmrc" ( cd "$git_root" npm install --omit=optional --no-fund --no-audit >/tmp/openclaw-git-install.log 2>&1