From 11f0aeeb62f6140500e1401b8b01ff4fffd8c2a3 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Tue, 5 May 2026 19:32:21 -0700 Subject: [PATCH] test(docker): use matrix live gateway image --- scripts/lib/docker-e2e-scenarios.mjs | 23 +++++++++++++++------- scripts/test-live-gateway-models-docker.sh | 1 - 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/scripts/lib/docker-e2e-scenarios.mjs b/scripts/lib/docker-e2e-scenarios.mjs index c9bf66c45e2..8baa783f47f 100644 --- a/scripts/lib/docker-e2e-scenarios.mjs +++ b/scripts/lib/docker-e2e-scenarios.mjs @@ -21,9 +21,10 @@ const LIVE_RETRY_PATTERNS = [ /ECONNRESET|ETIMEDOUT|ENOTFOUND/i, ]; -function liveDockerScriptCommand(script, envPrefix = "") { +function liveDockerScriptCommand(script, envPrefix = "", options = {}) { const prefix = envPrefix ? `${envPrefix} ` : ""; - return `${prefix}OPENCLAW_SKIP_DOCKER_BUILD=1 bash -c 'harness="\${OPENCLAW_DOCKER_E2E_TRUSTED_HARNESS_DIR:-}"; if [ -z "$harness" ]; then if [ -d .release-harness/scripts ]; then harness=.release-harness; else harness=.; fi; fi; OPENCLAW_LIVE_DOCKER_REPO_ROOT="\${OPENCLAW_DOCKER_E2E_REPO_ROOT:-$PWD}" bash "$harness/scripts/${script}"'`; + const skipBuild = options.skipBuild === false ? "" : "OPENCLAW_SKIP_DOCKER_BUILD=1 "; + return `${prefix}${skipBuild}bash -c 'harness="\${OPENCLAW_DOCKER_E2E_TRUSTED_HARNESS_DIR:-}"; if [ -z "$harness" ]; then if [ -d .release-harness/scripts ]; then harness=.release-harness; else harness=.; fi; fi; OPENCLAW_LIVE_DOCKER_REPO_ROOT="\${OPENCLAW_DOCKER_E2E_REPO_ROOT:-$PWD}" bash "$harness/scripts/${script}"'`; } function lane(name, command, options = {}) { @@ -128,11 +129,19 @@ export const mainLanes = [ timeoutMs: LIVE_PROFILE_TIMEOUT_MS, weight: 4, }), - liveLane("live-gateway", liveDockerScriptCommand("test-live-gateway-models-docker.sh"), { - providers: ["claude-cli", "codex-cli", "google-gemini-cli"], - timeoutMs: LIVE_PROFILE_TIMEOUT_MS, - weight: 4, - }), + liveLane( + "live-gateway", + liveDockerScriptCommand( + "test-live-gateway-models-docker.sh", + "OPENCLAW_IMAGE=openclaw:local-live-gateway OPENCLAW_DOCKER_BUILD_EXTENSIONS=matrix", + { skipBuild: false }, + ), + { + providers: ["claude-cli", "codex-cli", "google-gemini-cli"], + timeoutMs: LIVE_PROFILE_TIMEOUT_MS, + weight: 4, + }, + ), liveLane( "live-cli-backend-claude", liveDockerScriptCommand( diff --git a/scripts/test-live-gateway-models-docker.sh b/scripts/test-live-gateway-models-docker.sh index 0faf7c0c6e6..cda14239cd0 100755 --- a/scripts/test-live-gateway-models-docker.sh +++ b/scripts/test-live-gateway-models-docker.sh @@ -174,7 +174,6 @@ DOCKER_RUN_ARGS=(docker run --rm -t \ -e HOME=/home/node \ -e NODE_OPTIONS=--disable-warning=ExperimentalWarning \ -e OPENCLAW_SKIP_CHANNELS=1 \ - -e OPENCLAW_DISABLE_BUNDLED_PLUGINS="${OPENCLAW_DISABLE_BUNDLED_PLUGINS:-1}" \ -e OPENCLAW_SUPPRESS_NOTES=1 \ -e OPENCLAW_DOCKER_AUTH_PRESTAGED="$DOCKER_AUTH_PRESTAGED" \ -e OPENCLAW_DOCKER_AUTH_DIRS_RESOLVED="$AUTH_DIRS_CSV" \