test(docker): run mounted harnesses with image tsx · openclaw/openclaw@3b514ad
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -28,7 +28,7 @@ docker run --rm \
|
28 | 28 | "${DOCKER_E2E_HARNESS_ARGS[@]}" \ |
29 | 29 | "$IMAGE_NAME" \ |
30 | 30 | bash -lc "set -euo pipefail |
31 | | - node --import tsx scripts/e2e/crestodian-first-run-docker-client.ts |
| 31 | + tsx scripts/e2e/crestodian-first-run-docker-client.ts |
32 | 32 | " >"$RUN_LOG" 2>&1 |
33 | 33 | status=${PIPESTATUS[0]} |
34 | 34 | set -e |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -28,7 +28,7 @@ docker run --rm \
|
28 | 28 | "${DOCKER_E2E_HARNESS_ARGS[@]}" \ |
29 | 29 | "$IMAGE_NAME" \ |
30 | 30 | bash -lc "set -euo pipefail |
31 | | - node --import tsx scripts/e2e/crestodian-planner-docker-client.ts |
| 31 | + tsx scripts/e2e/crestodian-planner-docker-client.ts |
32 | 32 | " >"$RUN_LOG" 2>&1 |
33 | 33 | status=${PIPESTATUS[0]} |
34 | 34 | set -e |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -28,7 +28,7 @@ docker run --rm \
|
28 | 28 | "${DOCKER_E2E_HARNESS_ARGS[@]}" \ |
29 | 29 | "$IMAGE_NAME" \ |
30 | 30 | bash -lc "set -euo pipefail |
31 | | - node --import tsx scripts/e2e/crestodian-rescue-docker-client.ts |
| 31 | + tsx scripts/e2e/crestodian-rescue-docker-client.ts |
32 | 32 | " >"$RUN_LOG" 2>&1 |
33 | 33 | status=${PIPESTATUS[0]} |
34 | 34 | set -e |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -48,7 +48,7 @@ docker run --rm \
|
48 | 48 | export OPENCLAW_DOCKER_OPENAI_BASE_URL=\"http://127.0.0.1:\$MOCK_PORT/v1\" |
49 | 49 | node scripts/e2e/mock-openai-server.mjs >/tmp/cron-mcp-cleanup-mock-openai.log 2>&1 & |
50 | 50 | mock_pid=\$! |
51 | | - node --import tsx scripts/e2e/cron-mcp-cleanup-seed.ts >/tmp/cron-mcp-cleanup-seed.log |
| 51 | + tsx scripts/e2e/cron-mcp-cleanup-seed.ts >/tmp/cron-mcp-cleanup-seed.log |
52 | 52 | node \"\$entry\" gateway --port $PORT --bind loopback --allow-unconfigured >/tmp/cron-mcp-cleanup-gateway.log 2>&1 & |
53 | 53 | gateway_pid=\$! |
54 | 54 | stop_process() { |
@@ -101,7 +101,7 @@ docker run --rm \
|
101 | 101 | tail -n 120 /tmp/cron-mcp-cleanup-gateway.log 2>/dev/null || true |
102 | 102 | exit 1 |
103 | 103 | fi |
104 | | - node --import tsx scripts/e2e/cron-mcp-cleanup-docker-client.ts |
| 104 | + tsx scripts/e2e/cron-mcp-cleanup-docker-client.ts |
105 | 105 | " >"$CLIENT_LOG" 2>&1 |
106 | 106 | status=${PIPESTATUS[0]} |
107 | 107 | set -e |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -49,7 +49,7 @@ for i in $(seq 1 "$loops"); do
|
49 | 49 | --output-dir "$iteration_dir/otel" |
50 | 50 | |
51 | 51 | echo "== docker observability loop $i/$loops: prometheus ==" |
52 | | - pnpm openclaw qa suite \ |
| 52 | + node openclaw.mjs qa suite \ |
53 | 53 | --provider-mode mock-openai \ |
54 | 54 | --scenario docker-prometheus-smoke \ |
55 | 55 | --concurrency 1 \ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -53,7 +53,7 @@ docker run --rm \
|
53 | 53 | sleep 0.1 |
54 | 54 | done |
55 | 55 | node -e \"fetch('http://127.0.0.1:' + process.argv[1] + '/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\" \"\$mock_port\" |
56 | | - node --import tsx scripts/e2e/mcp-channels-seed.ts >/tmp/mcp-channels-seed.log |
| 56 | + tsx scripts/e2e/mcp-channels-seed.ts >/tmp/mcp-channels-seed.log |
57 | 57 | node \"\$entry\" gateway --port $PORT --bind loopback --allow-unconfigured >/tmp/mcp-channels-gateway.log 2>&1 & |
58 | 58 | gateway_pid=\$! |
59 | 59 | stop_process() { |
@@ -96,7 +96,7 @@ docker run --rm \
|
96 | 96 | tail -n 120 /tmp/mcp-channels-gateway.log 2>/dev/null || true |
97 | 97 | exit 1 |
98 | 98 | fi |
99 | | - node --import tsx scripts/e2e/mcp-channels-docker-client.ts |
| 99 | + tsx scripts/e2e/mcp-channels-docker-client.ts |
100 | 100 | " >"$CLIENT_LOG" 2>&1 |
101 | 101 | status=${PIPESTATUS[0]} |
102 | 102 | set -e |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -207,7 +207,7 @@ fi
|
207 | 207 | |
208 | 208 | export OPENCLAW_NPM_TELEGRAM_SUT_COMMAND="$(command -v openclaw)" |
209 | 209 | trap - ERR |
210 | | -node --import tsx scripts/e2e/npm-telegram-live-runner.ts |
| 210 | +tsx scripts/e2e/npm-telegram-live-runner.ts |
211 | 211 | EOF |
212 | 212 | |
213 | 213 | echo "published npm Telegram live Docker E2E passed ($PACKAGE_SPEC)" |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -27,5 +27,5 @@ export OPENCLAW_SKIP_GMAIL_WATCHER=1
|
27 | 27 | export OPENCLAW_SKIP_CRON=1 |
28 | 28 | export OPENCLAW_SKIP_CANVAS_HOST=1 |
29 | 29 | |
30 | | -node --import tsx scripts/e2e/openai-image-auth-docker-client.ts |
| 30 | +tsx scripts/e2e/openai-image-auth-docker-client.ts |
31 | 31 | ' |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ docker run --rm \
|
27 | 27 | "${DOCKER_E2E_HARNESS_ARGS[@]}" \ |
28 | 28 | "$IMAGE_NAME" \ |
29 | 29 | bash -lc "set -euo pipefail |
30 | | - node --import tsx scripts/e2e/pi-bundle-mcp-tools-docker-client.ts |
| 30 | + tsx scripts/e2e/pi-bundle-mcp-tools-docker-client.ts |
31 | 31 | " >"$RUN_LOG" 2>&1 |
32 | 32 | status=${PIPESTATUS[0]} |
33 | 33 | set -e |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ docker run --rm \
|
27 | 27 | -e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \ |
28 | 28 | "${DOCKER_E2E_HARNESS_ARGS[@]}" \ |
29 | 29 | "$IMAGE_NAME" \ |
30 | | - bash -lc 'set -euo pipefail; node --import tsx scripts/e2e/session-runtime-context-docker-client.ts' \ |
| 30 | + bash -lc 'set -euo pipefail; tsx scripts/e2e/session-runtime-context-docker-client.ts' \ |
31 | 31 | >"$RUN_LOG" 2>&1 |
32 | 32 | status=$? |
33 | 33 | set -e |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。