Skip to content

Commit 11f0aee

Browse files
committed
test(docker): use matrix live gateway image
1 parent 359c609 commit 11f0aee

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

‎scripts/lib/docker-e2e-scenarios.mjs‎

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ const LIVE_RETRY_PATTERNS = [
2121
/ECONNRESET|ETIMEDOUT|ENOTFOUND/i,
2222
];
2323

24-
function liveDockerScriptCommand(script, envPrefix = "") {
24+
function liveDockerScriptCommand(script, envPrefix = "", options = {}) {
2525
const prefix = envPrefix ? `${envPrefix} ` : "";
26-
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}"'`;
26+
const skipBuild = options.skipBuild === false ? "" : "OPENCLAW_SKIP_DOCKER_BUILD=1 ";
27+
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}"'`;
2728
}
2829

2930
function lane(name, command, options = {}) {
@@ -128,11 +129,19 @@ export const mainLanes = [
128129
timeoutMs: LIVE_PROFILE_TIMEOUT_MS,
129130
weight: 4,
130131
}),
131-
liveLane("live-gateway", liveDockerScriptCommand("test-live-gateway-models-docker.sh"), {
132-
providers: ["claude-cli", "codex-cli", "google-gemini-cli"],
133-
timeoutMs: LIVE_PROFILE_TIMEOUT_MS,
134-
weight: 4,
135-
}),
132+
liveLane(
133+
"live-gateway",
134+
liveDockerScriptCommand(
135+
"test-live-gateway-models-docker.sh",
136+
"OPENCLAW_IMAGE=openclaw:local-live-gateway OPENCLAW_DOCKER_BUILD_EXTENSIONS=matrix",
137+
{ skipBuild: false },
138+
),
139+
{
140+
providers: ["claude-cli", "codex-cli", "google-gemini-cli"],
141+
timeoutMs: LIVE_PROFILE_TIMEOUT_MS,
142+
weight: 4,
143+
},
144+
),
136145
liveLane(
137146
"live-cli-backend-claude",
138147
liveDockerScriptCommand(

‎scripts/test-live-gateway-models-docker.sh‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ DOCKER_RUN_ARGS=(docker run --rm -t \
174174
-e HOME=/home/node \
175175
-e NODE_OPTIONS=--disable-warning=ExperimentalWarning \
176176
-e OPENCLAW_SKIP_CHANNELS=1 \
177-
-e OPENCLAW_DISABLE_BUNDLED_PLUGINS="${OPENCLAW_DISABLE_BUNDLED_PLUGINS:-1}" \
178177
-e OPENCLAW_SUPPRESS_NOTES=1 \
179178
-e OPENCLAW_DOCKER_AUTH_PRESTAGED="$DOCKER_AUTH_PRESTAGED" \
180179
-e OPENCLAW_DOCKER_AUTH_DIRS_RESOLVED="$AUTH_DIRS_CSV" \

0 commit comments

Comments
 (0)