惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
腾讯CDC
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
博客园_首页
D
DataBreaches.Net
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
月光博客
月光博客
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
Vercel News
Vercel News
WordPress大学
WordPress大学
J
Java Code Geeks
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(e2e): route focused docker smokes through run helper ...
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -221,7 +221,7 @@ run_logged() {

221221

}

222222
223223

echo "Running package Telegram live Docker E2E ($PACKAGE_LABEL)..."

224-

run_logged docker run --rm \

224+

run_logged docker_e2e_docker_run_cmd run --rm \

225225

-e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \

226226

-e OPENCLAW_NPM_TELEGRAM_INSTALL_SOURCE="$package_install_source" \

227227

-e OPENCLAW_NPM_TELEGRAM_PACKAGE_LABEL="$PACKAGE_LABEL" \

Original file line numberDiff line numberDiff line change

@@ -249,7 +249,7 @@ run_logged() {

249249

}

250250
251251

echo "Installing ${PACKAGE_LABEL} from ${package_install_source}..."

252-

run_logged docker run --rm \

252+

run_logged docker_e2e_docker_run_cmd run --rm \

253253

"${install_env[@]}" \

254254

${package_mount_args[@]+"${package_mount_args[@]}"} \

255255

-v "$npm_prefix_host:/npm-global" \

@@ -269,7 +269,7 @@ node -p "require('/npm-global/lib/node_modules/openclaw/package.json').version"

269269

EOF

270270
271271

echo "Running package Telegram RTT Docker E2E ($PACKAGE_LABEL)..."

272-

run_logged docker run --rm \

272+

run_logged docker_e2e_docker_run_cmd run --rm \

273273

"${docker_env[@]}" \

274274

-v "$ROOT_DIR/scripts:/app/scripts:ro" \

275275

-v "$ROOT_DIR/.artifacts:/app/.artifacts" \

Original file line numberDiff line numberDiff line change

@@ -13,7 +13,7 @@ RUN_LOG="$(mktemp -t openclaw-plugin-binding-command-escape-log.XXXXXX)"

1313

FOCUSED_TEST_REGEX="lets authorized plugin-owned binding commands fall through to command processing|keeps authorized unknown slash text in a plugin-owned binding routed to the bound plugin|keeps unauthorized plugin-owned binding slash text routed to the bound plugin"

1414
1515

cleanup() {

16-

docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

16+

docker_e2e_docker_cmd rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

1717

rm -f "$RUN_LOG"

1818

}

1919

trap cleanup EXIT

@@ -26,7 +26,7 @@ docker_e2e_build_or_reuse \

2626
2727

echo "Running plugin binding command escape Docker E2E..."

2828

set +e

29-

docker run --rm \

29+

docker_e2e_docker_run_cmd run --rm \

3030

--name "$CONTAINER_NAME" \

3131

-e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \

3232

-e "FOCUSED_TEST_REGEX=$FOCUSED_TEST_REGEX" \

Original file line numberDiff line numberDiff line change

@@ -3,6 +3,7 @@ set -euo pipefail

33
44

ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"

55

source "$ROOT_DIR/scripts/lib/docker-build.sh"

6+

source "$ROOT_DIR/scripts/lib/docker-e2e-container.sh"

67

IMAGE_NAME="${OPENCLAW_QR_SMOKE_IMAGE:-openclaw-qr-smoke}"

78

DOCKER_BUILD_ARGS=()

89

@@ -22,4 +23,4 @@ docker_build_run qr-import-build \

2223

"$ROOT_DIR"

2324
2425

echo "Running qrcode import smoke..."

25-

run_logged qr-import-run docker run --rm -t "$IMAGE_NAME" node -e "import('qrcode').then(async (m)=>{const q=m.default??m;process.stdout.write(await q.toString('qr-smoke',{small:true,type:'terminal'}))})"

26+

run_logged qr-import-run docker_e2e_docker_run_cmd run --rm -t "$IMAGE_NAME" node -e "import('qrcode').then(async (m)=>{const q=m.default??m;process.stdout.write(await q.toString('qr-smoke',{small:true,type:'terminal'}))})"

Original file line numberDiff line numberDiff line change

@@ -32,6 +32,7 @@ const PLUGIN_BINDING_COMMAND_ESCAPE_DOCKER_E2E_PATH =

3232

"scripts/e2e/plugin-binding-command-escape-docker.sh";

3333

const PLUGIN_BINDING_COMMAND_ESCAPE_DOCKERFILE_PATH =

3434

"scripts/e2e/plugin-binding-command-escape.Dockerfile";

35+

const QR_IMPORT_DOCKER_E2E_PATH = "scripts/e2e/qr-import-docker.sh";

3536

const MULTI_NODE_UPDATE_DOCKER_E2E_PATH = "scripts/e2e/multi-node-update-docker.sh";

3637

const BUNDLED_PLUGIN_INSTALL_UNINSTALL_E2E_PATH =

3738

"scripts/e2e/bundled-plugin-install-uninstall-docker.sh";

@@ -802,11 +803,22 @@ test -f "$TMPDIR/docker-cmd-seen"

802803
803804

expect(runner).toContain("--reporter=verbose -t");

804805

expect(runner).not.toContain("-- --reporter=verbose");

806+

expect(runner).toContain("docker_e2e_docker_run_cmd run --rm");

807+

expect(runner).toContain('docker_e2e_docker_cmd rm -f "$CONTAINER_NAME"');

808+

expect(runner).not.toMatch(/(^|\n)docker run --rm/u);

805809

expect(runner).toContain("expected focused Vitest summary for exactly 3 passed tests");

806810

expect(dockerfile).toContain("OPENCLAW_DISABLE_BUNDLED_PLUGIN_POSTINSTALL=1");

807811

expect(dockerfile).toContain("pnpm install --frozen-lockfile --ignore-scripts --filter openclaw");

808812

});

809813
814+

it("routes QR import Docker smoke through the timeout-aware run helper", () => {

815+

const runner = readFileSync(QR_IMPORT_DOCKER_E2E_PATH, "utf8");

816+
817+

expect(runner).toContain("scripts/lib/docker-e2e-container.sh");

818+

expect(runner).toContain("run_logged qr-import-run docker_e2e_docker_run_cmd run --rm -t");

819+

expect(runner).not.toContain("run_logged qr-import-run docker run --rm");

820+

});

821+
810822

it("covers plugin install/update sources in the Docker plugin sweep", () => {

811823

const sweep = readFileSync(PLUGINS_DOCKER_SWEEP_PATH, "utf8");

812824

const clawhub = readFileSync(PLUGINS_DOCKER_CLAWHUB_PATH, "utf8");

Original file line numberDiff line numberDiff line change

@@ -43,6 +43,8 @@ describe("package Telegram live Docker E2E", () => {

4343

expect(installRun).toContain('npm install -g "$install_source" --no-fund --no-audit');

4444

expect(installRun).toContain('"${package_mount_args[@]}"');

4545

expect(installRun).not.toContain('"${docker_env[@]}"');

46+

expect(installRun).toContain("run_logged docker_e2e_docker_run_cmd run --rm");

47+

expect(installRun).not.toContain("run_logged docker run --rm");

4648

expect(script).toContain("run_logged docker_e2e_run_with_harness");

4749

expect(script).toContain('"${docker_env[@]}"');

4850

expect(script).toContain('if [ -z "$credential_role" ] && [ -n "${CI:-}" ]');

Original file line numberDiff line numberDiff line change

@@ -143,6 +143,8 @@ describe("RTT harness", () => {

143143

expect(installEnvSnapshotIndex).toBeGreaterThanOrEqual(0);

144144

expect(convexSecretForwardIndex).toBeGreaterThan(installEnvSnapshotIndex);

145145

expect(packageInstallIndex).toBeLessThan(credentialAcquireIndex);

146+

expect(script).toContain("run_logged docker_e2e_docker_run_cmd run --rm");

147+

expect(script).not.toContain("run_logged docker run --rm");

146148

expect(heartbeatStartIndex).toBeGreaterThan(sourceIndex);

147149

expect(heartbeatStartIndex).toBeLessThan(driverIndex);

148150

expect(script).toContain("start_credential_heartbeat() {\n (\n set +e");