fix(test): mount upgrade survivor helper · openclaw/openclaw@5f03154
vincentkoc
·
2026-05-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,6 +9,7 @@ Docs: https://docs.openclaw.ai
|
9 | 9 | ### Fixes |
10 | 10 | |
11 | 11 | - Channels/iMessage: advance the startup catchup cursor from live-handled rows after a completed catchup pass, including rows received while catchup is still running, so restarts do not replay them. (#85475) Thanks @TurboTheTurtle. |
| 12 | +- Tests: mount the shared Windows command helper into bare Docker E2E harness containers so published upgrade-survivor config walks can start on Linux. |
12 | 13 | - Tests: keep kitchen-sink plugin assertion fixtures on a configurable temp root so native Windows runs no longer skip full-surface diagnostic coverage. |
13 | 14 | - Tests: fail Gateway startup benchmarks when a child startup never produces ready probes or process metrics instead of reporting all `n/a` samples as passing. |
14 | 15 | - Config/secrets: allow exec SecretRef ids to include `#` selectors so AWS-style `secret#json_key` ids validate consistently. (#80731) Thanks @TurboTheTurtle. |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -60,7 +60,11 @@ docker_e2e_package_mount_args() {
|
60 | 60 | } |
61 | 61 | |
62 | 62 | docker_e2e_harness_mount_args() { |
63 | | - DOCKER_E2E_HARNESS_ARGS=(-v "$ROOT_DIR/scripts/e2e:/app/scripts/e2e:ro" -v "$ROOT_DIR/scripts/lib:/app/scripts/lib:ro") |
| 63 | + DOCKER_E2E_HARNESS_ARGS=( |
| 64 | + -v "$ROOT_DIR/scripts/e2e:/app/scripts/e2e:ro" |
| 65 | + -v "$ROOT_DIR/scripts/lib:/app/scripts/lib:ro" |
| 66 | + -v "$ROOT_DIR/scripts/windows-cmd-helpers.mjs:/app/scripts/windows-cmd-helpers.mjs:ro" |
| 67 | + ) |
64 | 68 | } |
65 | 69 | |
66 | 70 | docker_e2e_run_with_harness() { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,6 +6,7 @@ import { describe, expect, it } from "vitest";
|
6 | 6 | |
7 | 7 | const HELPER_PATH = "scripts/lib/docker-build.sh"; |
8 | 8 | const DOCKER_ALL_SCHEDULER_PATH = "scripts/test-docker-all.mjs"; |
| 9 | +const DOCKER_E2E_PACKAGE_HELPER_PATH = "scripts/lib/docker-e2e-package.sh"; |
9 | 10 | const DOCKER_E2E_IMAGE_HELPER_PATH = "scripts/lib/docker-e2e-image.sh"; |
10 | 11 | const DOCKER_E2E_SCENARIOS_PATH = "scripts/lib/docker-e2e-scenarios.mjs"; |
11 | 12 | const INSTALL_E2E_RUNNER_PATH = "scripts/docker/install-sh-e2e/run.sh"; |
@@ -124,6 +125,14 @@ describe("docker build helper", () => {
|
124 | 125 | } |
125 | 126 | }); |
126 | 127 | |
| 128 | +it("mounts root helper modules imported by bare Docker E2E scripts", () => { |
| 129 | +const helper = readFileSync(DOCKER_E2E_PACKAGE_HELPER_PATH, "utf8"); |
| 130 | + |
| 131 | +expect(helper).toContain( |
| 132 | +'-v "$ROOT_DIR/scripts/windows-cmd-helpers.mjs:/app/scripts/windows-cmd-helpers.mjs:ro"', |
| 133 | +); |
| 134 | +}); |
| 135 | + |
127 | 136 | it("preserves pnpm lookup paths for scheduled Docker child lanes", () => { |
128 | 137 | const scheduler = readFileSync(DOCKER_ALL_SCHEDULER_PATH, "utf8"); |
129 | 138 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。