From 51d211e6665fe4e2467ef79ae306fd6005814b42 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Thu, 18 Jun 2026 04:39:23 +0200 Subject: [PATCH] fix(test): target remaining docker runner scripts --- scripts/test-projects.test-support.mjs | 73 +++++++++++++++++++++++ test/scripts/test-projects.test.ts | 80 ++++++++++++++++++++++++++ 2 files changed, 153 insertions(+) diff --git a/scripts/test-projects.test-support.mjs b/scripts/test-projects.test-support.mjs index 5107ffaa38c..87770267f29 100644 --- a/scripts/test-projects.test-support.mjs +++ b/scripts/test-projects.test-support.mjs @@ -567,6 +567,15 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([ "src/commitments/store.test.ts", ], ], + [ + "scripts/e2e/commitments-safety-docker.sh", + [ + "test/scripts/docker-e2e-clients.test.ts", + "test/scripts/docker-e2e-plan.test.ts", + "src/commitments/runtime.test.ts", + "src/commitments/store.test.ts", + ], + ], [ "scripts/e2e/session-runtime-context-docker-client.ts", [ @@ -575,6 +584,15 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([ "src/agents/embedded-agent-runner/transcript-rewrite.test.ts", ], ], + [ + "scripts/e2e/session-runtime-context-docker.sh", + [ + "test/scripts/docker-e2e-clients.test.ts", + "test/scripts/docker-e2e-plan.test.ts", + "src/agents/embedded-agent-runner/run/runtime-context-prompt.test.ts", + "src/agents/embedded-agent-runner/transcript-rewrite.test.ts", + ], + ], [ "scripts/e2e/mcp-channels-docker.sh", [ @@ -734,6 +752,10 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([ ["scripts/verify-pr-hosted-gates.mjs", ["test/scripts/verify-pr-hosted-gates.test.ts"]], ["scripts/zai-fallback-repro.ts", ["test/scripts/zai-fallback-repro.test.ts"]], ["scripts/repro/code-mode-namespace-live.ts", ["test/scripts/code-mode-namespace-live.test.ts"]], + [ + "scripts/repro/code-mode-namespace-live-docker.sh", + ["test/scripts/code-mode-namespace-live.test.ts", "test/scripts/docker-build-helper.test.ts"], + ], ["scripts/lib/extension-test-plan.mjs", ["test/scripts/test-extension.test.ts"]], ["scripts/lib/vitest-batch-runner.mjs", ["test/scripts/test-extension.test.ts"]], ["scripts/lib/ci-node-test-plan.mjs", ["test/scripts/ci-node-test-plan.test.ts"]], @@ -770,6 +792,57 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([ "scripts/e2e/onboard-docker.sh", ["test/scripts/docker-build-helper.test.ts", "test/scripts/openclaw-test-state.test.ts"], ], + [ + "scripts/e2e/agents-delete-shared-workspace-docker.sh", + [ + "test/scripts/docker-e2e-plan.test.ts", + "src/scripts/ci-changed-scope.test.ts", + "src/commands/agents.delete.test.ts", + ], + ], + [ + "scripts/e2e/browser-cdp-snapshot-docker.sh", + [ + "test/scripts/docker-build-helper.test.ts", + "test/scripts/browser-cdp-snapshot.test.ts", + "test/scripts/e2e-helper-env-limits.test.ts", + ], + ], + [ + "scripts/e2e/channel-plugin-trust-docker.sh", + ["test/scripts/docker-build-helper.test.ts", "test/scripts/test-projects.test.ts"], + ], + [ + "scripts/e2e/config-reload-source-docker.sh", + [ + "test/scripts/docker-e2e-plan.test.ts", + "test/scripts/package-acceptance-workflow.test.ts", + "test/scripts/fixture-config.test.ts", + "test/scripts/e2e-mock-config-limits.test.ts", + "src/gateway/config-reload.test.ts", + ], + ], + [ + "scripts/e2e/gateway-network-docker.sh", + [ + "test/scripts/docker-build-helper.test.ts", + "test/scripts/docker-e2e-plan.test.ts", + "test/scripts/package-acceptance-workflow.test.ts", + "test/scripts/gateway-network-client.test.ts", + "src/scripts/ci-changed-scope.test.ts", + ], + ], + [ + "scripts/e2e/npm-onboard-channel-agent-docker.sh", + [ + "test/scripts/docker-build-helper.test.ts", + "test/scripts/docker-e2e-plan.test.ts", + "test/scripts/package-acceptance-workflow.test.ts", + "test/scripts/npm-onboard-channel-agent-assertions.test.ts", + "test/scripts/plugin-prerelease-test-plan.test.ts", + ], + ], + ["scripts/e2e/npm-telegram-live-docker.sh", ["test/scripts/npm-telegram-live.test.ts"]], [ "scripts/e2e/multi-node-update-docker.sh", ["test/scripts/docker-build-helper.test.ts", "test/scripts/docker-e2e-plan.test.ts"], diff --git a/test/scripts/test-projects.test.ts b/test/scripts/test-projects.test.ts index 20dab4cd33c..50d3ec3c94f 100644 --- a/test/scripts/test-projects.test.ts +++ b/test/scripts/test-projects.test.ts @@ -567,6 +567,15 @@ describe("scripts/test-projects changed-target routing", () => { "src/commitments/store.test.ts", ], ], + [ + "scripts/e2e/commitments-safety-docker.sh", + [ + "test/scripts/docker-e2e-clients.test.ts", + "test/scripts/docker-e2e-plan.test.ts", + "src/commitments/runtime.test.ts", + "src/commitments/store.test.ts", + ], + ], [ "scripts/e2e/session-runtime-context-docker-client.ts", [ @@ -575,6 +584,15 @@ describe("scripts/test-projects changed-target routing", () => { "src/agents/embedded-agent-runner/transcript-rewrite.test.ts", ], ], + [ + "scripts/e2e/session-runtime-context-docker.sh", + [ + "test/scripts/docker-e2e-clients.test.ts", + "test/scripts/docker-e2e-plan.test.ts", + "src/agents/embedded-agent-runner/run/runtime-context-prompt.test.ts", + "src/agents/embedded-agent-runner/transcript-rewrite.test.ts", + ], + ], ["scripts/e2e/mcp-channels-seed.ts", ["test/scripts/docker-e2e-seeds.test.ts"]], ["scripts/e2e/docker-openai-seed.ts", ["test/scripts/docker-e2e-seeds.test.ts"]], [ @@ -608,6 +626,57 @@ describe("scripts/test-projects changed-target routing", () => { ["test/scripts/e2e-shell-tempfiles.test.ts", "test/scripts/openclaw-test-state.test.ts"], ], ["scripts/e2e/lib/package-compat.mjs", ["test/scripts/docker-build-helper.test.ts"]], + [ + "scripts/e2e/agents-delete-shared-workspace-docker.sh", + [ + "test/scripts/docker-e2e-plan.test.ts", + "src/scripts/ci-changed-scope.test.ts", + "src/commands/agents.delete.test.ts", + ], + ], + [ + "scripts/e2e/browser-cdp-snapshot-docker.sh", + [ + "test/scripts/docker-build-helper.test.ts", + "test/scripts/browser-cdp-snapshot.test.ts", + "test/scripts/e2e-helper-env-limits.test.ts", + ], + ], + [ + "scripts/e2e/channel-plugin-trust-docker.sh", + ["test/scripts/docker-build-helper.test.ts", "test/scripts/test-projects.test.ts"], + ], + [ + "scripts/e2e/config-reload-source-docker.sh", + [ + "test/scripts/docker-e2e-plan.test.ts", + "test/scripts/package-acceptance-workflow.test.ts", + "test/scripts/fixture-config.test.ts", + "test/scripts/e2e-mock-config-limits.test.ts", + "src/gateway/config-reload.test.ts", + ], + ], + [ + "scripts/e2e/gateway-network-docker.sh", + [ + "test/scripts/docker-build-helper.test.ts", + "test/scripts/docker-e2e-plan.test.ts", + "test/scripts/package-acceptance-workflow.test.ts", + "test/scripts/gateway-network-client.test.ts", + "src/scripts/ci-changed-scope.test.ts", + ], + ], + [ + "scripts/e2e/npm-onboard-channel-agent-docker.sh", + [ + "test/scripts/docker-build-helper.test.ts", + "test/scripts/docker-e2e-plan.test.ts", + "test/scripts/package-acceptance-workflow.test.ts", + "test/scripts/npm-onboard-channel-agent-assertions.test.ts", + "test/scripts/plugin-prerelease-test-plan.test.ts", + ], + ], + ["scripts/e2e/npm-telegram-live-docker.sh", ["test/scripts/npm-telegram-live.test.ts"]], [ "scripts/e2e/multi-node-update-docker.sh", ["test/scripts/docker-build-helper.test.ts", "test/scripts/docker-e2e-plan.test.ts"], @@ -833,6 +902,17 @@ describe("scripts/test-projects changed-target routing", () => { }); }); + it("routes code-mode namespace live Docker repro changes through its regression tests", () => { + expect(resolveChangedTestTargetPlan(["scripts/repro/code-mode-namespace-live-docker.sh"])) + .toEqual({ + mode: "targets", + targets: [ + "test/scripts/code-mode-namespace-live.test.ts", + "test/scripts/docker-build-helper.test.ts", + ], + }); + }); + it("routes group visible reply config changes through channel delivery regressions", () => { expect( resolveChangedTestTargetPlan([