Skip to content

Commit 5f03154

Browse files
committed
fix(test): mount upgrade survivor helper
1 parent c452510 commit 5f03154

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Docs: https://docs.openclaw.ai
99
### Fixes
1010

1111
- 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.
1213
- Tests: keep kitchen-sink plugin assertion fixtures on a configurable temp root so native Windows runs no longer skip full-surface diagnostic coverage.
1314
- 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.
1415
- Config/secrets: allow exec SecretRef ids to include `#` selectors so AWS-style `secret#json_key` ids validate consistently. (#80731) Thanks @TurboTheTurtle.

scripts/lib/docker-e2e-package.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ docker_e2e_package_mount_args() {
6060
}
6161

6262
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+
)
6468
}
6569

6670
docker_e2e_run_with_harness() {

test/scripts/docker-build-helper.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { describe, expect, it } from "vitest";
66

77
const HELPER_PATH = "scripts/lib/docker-build.sh";
88
const DOCKER_ALL_SCHEDULER_PATH = "scripts/test-docker-all.mjs";
9+
const DOCKER_E2E_PACKAGE_HELPER_PATH = "scripts/lib/docker-e2e-package.sh";
910
const DOCKER_E2E_IMAGE_HELPER_PATH = "scripts/lib/docker-e2e-image.sh";
1011
const DOCKER_E2E_SCENARIOS_PATH = "scripts/lib/docker-e2e-scenarios.mjs";
1112
const INSTALL_E2E_RUNNER_PATH = "scripts/docker/install-sh-e2e/run.sh";
@@ -124,6 +125,14 @@ describe("docker build helper", () => {
124125
}
125126
});
126127

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+
127136
it("preserves pnpm lookup paths for scheduled Docker child lanes", () => {
128137
const scheduler = readFileSync(DOCKER_ALL_SCHEDULER_PATH, "utf8");
129138

0 commit comments

Comments
 (0)