fix(test): preserve testbox docker build fallback · openclaw/openclaw@e84b719
vincentkoc
·
2026-06-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -38,13 +38,13 @@ if [ -z "${OPENAI_API_KEY:-}" ]; then
|
38 | 38 | echo "ERROR: OPENAI_API_KEY was not available after sourcing $PROFILE_STATUS." >&2 |
39 | 39 | exit 1 |
40 | 40 | fi |
| 41 | +docker_e2e_build_or_reuse "$IMAGE_NAME" mcp-code-mode-gateway-live |
| 42 | +OPENCLAW_TEST_STATE_SCRIPT_B64="$(docker_e2e_test_state_shell_b64 mcp-code-mode-gateway-live empty)" |
| 43 | + |
41 | 44 | # The profile is only a credential source. Keep this lane's OpenClaw runtime |
42 | 45 | # isolated from host/testbox mode flags that can change packaged behavior. |
43 | 46 | unset OPENCLAW_TESTBOX |
44 | 47 | |
45 | | -docker_e2e_build_or_reuse "$IMAGE_NAME" mcp-code-mode-gateway-live |
46 | | -OPENCLAW_TEST_STATE_SCRIPT_B64="$(docker_e2e_test_state_shell_b64 mcp-code-mode-gateway-live empty)" |
47 | | - |
48 | 48 | echo "Running live Docker Gateway code-mode MCP API-file smoke..." |
49 | 49 | echo "Profile file: $PROFILE_STATUS" |
50 | 50 | set +e |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,6 +35,8 @@ const ONBOARD_DOCKER_E2E_PATH = "scripts/e2e/onboard-docker.sh";
|
35 | 35 | const KITCHEN_SINK_PLUGIN_DOCKER_E2E_PATH = "scripts/e2e/kitchen-sink-plugin-docker.sh"; |
36 | 36 | const KITCHEN_SINK_RPC_DOCKER_E2E_PATH = "scripts/e2e/kitchen-sink-rpc-docker.sh"; |
37 | 37 | const CODEX_ON_DEMAND_DOCKER_E2E_PATH = "scripts/e2e/codex-on-demand-docker.sh"; |
| 38 | +const MCP_CODE_MODE_GATEWAY_LIVE_DOCKER_E2E_PATH = |
| 39 | +"scripts/e2e/mcp-code-mode-gateway-live-docker.sh"; |
38 | 40 | const CODEX_MEDIA_PATH_SCENARIO_PATH = "scripts/e2e/lib/codex-media-path/scenario.sh"; |
39 | 41 | const OPENAI_CHAT_TOOLS_SCENARIO_PATH = "scripts/e2e/lib/openai-chat-tools/scenario.sh"; |
40 | 42 | const CODEX_NPM_PLUGIN_LIVE_DOCKER_E2E_PATH = "scripts/e2e/codex-npm-plugin-live-docker.sh"; |
@@ -297,6 +299,16 @@ docker_build_transient_failure "$LOG_PATH"
|
297 | 299 | ); |
298 | 300 | }); |
299 | 301 | |
| 302 | +it("keeps Testbox image-build fallback before isolating live MCP code-mode runtime flags", () => { |
| 303 | +const script = readFileSync(MCP_CODE_MODE_GATEWAY_LIVE_DOCKER_E2E_PATH, "utf8"); |
| 304 | +const buildIndex = script.indexOf('docker_e2e_build_or_reuse "$IMAGE_NAME"'); |
| 305 | +const unsetIndex = script.indexOf("unset OPENCLAW_TESTBOX"); |
| 306 | + |
| 307 | +expect(buildIndex).toBeGreaterThanOrEqual(0); |
| 308 | +expect(unsetIndex).toBeGreaterThan(buildIndex); |
| 309 | +expect(script).toContain("host/testbox mode flags that can change packaged behavior"); |
| 310 | +}); |
| 311 | + |
300 | 312 | it("wraps centralized Docker builds with the timeout helper", () => { |
301 | 313 | const workDir = mkdtempSync(join(tmpdir(), "openclaw-docker-build-timeout-")); |
302 | 314 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。