diff --git a/scripts/e2e/gateway-network-docker.sh b/scripts/e2e/gateway-network-docker.sh index d99cefc22013..d3abacd50400 100644 --- a/scripts/e2e/gateway-network-docker.sh +++ b/scripts/e2e/gateway-network-docker.sh @@ -46,7 +46,7 @@ if ! docker_e2e_wait_container_bash "$GW_NAME" 180 0.5 "source scripts/lib/openc fi echo "Running client container (connect + health)..." -run_logged gateway-network-client timeout "$CLIENT_TIMEOUT" docker run --rm \ +DOCKER_COMMAND_TIMEOUT="$CLIENT_TIMEOUT" run_logged gateway-network-client docker_e2e_docker_run_cmd run --rm \ "${DOCKER_E2E_HARNESS_ARGS[@]}" \ --network "$NET_NAME" \ -e "GW_URL=ws://$GW_NAME:$PORT" \ diff --git a/test/scripts/docker-build-helper.test.ts b/test/scripts/docker-build-helper.test.ts index 79ac99167892..5b58ca96f659 100644 --- a/test/scripts/docker-build-helper.test.ts +++ b/test/scripts/docker-build-helper.test.ts @@ -58,6 +58,7 @@ const PACKAGE_COMPAT_PATH = "scripts/e2e/lib/package-compat.mjs"; const UPDATE_CHANNEL_SWITCH_DOCKER_E2E_PATH = "scripts/e2e/update-channel-switch-docker.sh"; const UPDATE_CHANNEL_SWITCH_ASSERTIONS_PATH = "scripts/e2e/lib/update-channel-switch/assertions.mjs"; +const GATEWAY_NETWORK_DOCKER_E2E_PATH = "scripts/e2e/gateway-network-docker.sh"; const CENTRALIZED_BUILD_SCRIPTS = [ "scripts/docker/setup.sh", "scripts/e2e/browser-cdp-snapshot-docker.sh", @@ -578,6 +579,15 @@ test -f "$TMPDIR/docker-cmd-seen" } }); + it("routes the gateway network client through the timeout-aware run helper", () => { + const runner = readFileSync(GATEWAY_NETWORK_DOCKER_E2E_PATH, "utf8"); + + expect(runner).toContain( + 'DOCKER_COMMAND_TIMEOUT="$CLIENT_TIMEOUT" run_logged gateway-network-client docker_e2e_docker_run_cmd run --rm', + ); + expect(runner).not.toContain('run_logged gateway-network-client timeout "$CLIENT_TIMEOUT" docker run --rm'); + }); + it("copies root lifecycle scripts before cleanup-smoke installs dependencies", () => { const dockerfile = readFileSync(CLEANUP_SMOKE_DOCKERFILE_PATH, "utf8"); const installIndex = dockerfile.indexOf("pnpm install --frozen-lockfile");