fix(e2e): clean skill install package mounts · openclaw/openclaw@d3bbfa1
vincentkoc
·
2026-05-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,11 +15,9 @@ docker_e2e_package_mount_args "$PACKAGE_TGZ"
|
15 | 15 | docker_e2e_build_or_reuse "$IMAGE_NAME" skill-install "$ROOT_DIR/scripts/e2e/Dockerfile" "$ROOT_DIR" "bare" |
16 | 16 | |
17 | 17 | echo "Running live ClawHub skill install Docker E2E..." |
18 | | -docker_e2e_harness_mount_args |
19 | 18 | run_logged_print \ |
20 | 19 | skill-install-run \ |
21 | | - docker run --rm \ |
22 | | -"${DOCKER_E2E_HARNESS_ARGS[@]}" \ |
| 20 | + docker_e2e_run_with_harness \ |
23 | 21 | -e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \ |
24 | 22 | -e "OPENCLAW_TEST_STATE_SCRIPT_B64=$OPENCLAW_TEST_STATE_SCRIPT_B64" \ |
25 | 23 | -e "OPENCLAW_SKILL_INSTALL_E2E_QUERY=${OPENCLAW_SKILL_INSTALL_E2E_QUERY:-homeassistant}" \ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -23,6 +23,7 @@ const KITCHEN_SINK_PLUGIN_DOCKER_E2E_PATH = "scripts/e2e/kitchen-sink-plugin-doc
|
23 | 23 | const KITCHEN_SINK_RPC_DOCKER_E2E_PATH = "scripts/e2e/kitchen-sink-rpc-docker.sh"; |
24 | 24 | const CODEX_NPM_PLUGIN_LIVE_DOCKER_E2E_PATH = |
25 | 25 | "scripts/e2e/codex-npm-plugin-live-docker.sh"; |
| 26 | +const SKILL_INSTALL_DOCKER_E2E_PATH = "scripts/e2e/skill-install-docker.sh"; |
26 | 27 | const PLUGIN_BINDING_COMMAND_ESCAPE_DOCKER_E2E_PATH = |
27 | 28 | "scripts/e2e/plugin-binding-command-escape-docker.sh"; |
28 | 29 | const PLUGIN_BINDING_COMMAND_ESCAPE_DOCKERFILE_PATH = |
@@ -360,6 +361,17 @@ test -f "$external_dir/openclaw-current.tgz"
|
360 | 361 | expect(runner).not.toContain('rm -f "$run_log"\n exit 1'); |
361 | 362 | }); |
362 | 363 | |
| 364 | +it("runs skill install through the package-cleaning Docker harness", () => { |
| 365 | +const runner = readFileSync(SKILL_INSTALL_DOCKER_E2E_PATH, "utf8"); |
| 366 | + |
| 367 | +expect(runner).toContain('docker_e2e_package_mount_args "$PACKAGE_TGZ"'); |
| 368 | +expect(runner).toMatch( |
| 369 | +/run_logged_print \\\n\s+skill-install-run \\\n\s+docker_e2e_run_with_harness \\/u, |
| 370 | +); |
| 371 | +expect(runner).not.toContain("docker_e2e_harness_mount_args"); |
| 372 | +expect(runner).not.toContain("docker run --rm"); |
| 373 | +}); |
| 374 | + |
363 | 375 | it("includes procps in the shared Docker E2E image for process watchdogs", () => { |
364 | 376 | const dockerfile = readFileSync("scripts/e2e/Dockerfile", "utf8"); |
365 | 377 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。