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

推荐订阅源

小众软件
小众软件
C
Check Point Blog
Vercel News
Vercel News
Y
Y Combinator Blog
G
Google Developers Blog
P
Proofpoint News Feed
WordPress大学
WordPress大学
MongoDB | Blog
MongoDB | Blog
博客园 - 司徒正美
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
L
LangChain Blog
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
博客园_首页
B
Blog RSS Feed
The Cloudflare Blog
MyScale Blog
MyScale Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Security Blog
Microsoft Security Blog

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(test): route install helper scripts · openclaw/opencl...
vincentkoc · 2026-06-21 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1075,6 +1075,14 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([

10751075

"scripts/docker/install-sh-e2e/run.sh",

10761076

["test/scripts/docker-build-helper.test.ts", "test/scripts/test-install-sh-docker.test.ts"],

10771077

],

1078+

[

1079+

"scripts/docker/install-sh-common/cli-verify.sh",

1080+

["test/scripts/test-install-sh-docker.test.ts"],

1081+

],

1082+

[

1083+

"scripts/docker/install-sh-common/version-parse.sh",

1084+

["test/scripts/test-install-sh-docker.test.ts"],

1085+

],

10781086

["scripts/docker/install-sh-nonroot/Dockerfile", INSTALL_DOCKERFILE_TEST_TARGETS],

10791087

["scripts/docker/install-sh-nonroot/run.sh", ["test/scripts/test-install-sh-docker.test.ts"]],

10801088

["scripts/docker/install-sh-smoke/Dockerfile", INSTALL_DOCKERFILE_TEST_TARGETS],

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,13 @@

11

// Test Install Sh Docker tests cover test install sh docker script behavior.

22

import { spawn, spawnSync } from "node:child_process";

3-

import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";

3+

import {

4+

existsSync,

5+

mkdirSync,

6+

mkdtempSync,

7+

readFileSync,

8+

rmSync,

9+

writeFileSync,

10+

} from "node:fs";

411

import { tmpdir } from "node:os";

512

import path, { join } from "node:path";

613

import { runInNewContext } from "node:vm";

@@ -322,6 +329,62 @@ describe("test-install-sh-docker", () => {

322329

expect(nonrootDockerfile).toContain("NPM_CONFIG_UPDATE_NOTIFIER=false");

323330

});

324331
332+

it("keeps shared install helpers parsing and verifying installed CLI versions", () => {

333+

const root = tempDirs.make("openclaw-install-helper-");

334+

const binDir = join(root, "bin");

335+

mkdirSync(binDir, { recursive: true });

336+

writeFileSync(

337+

join(binDir, "openclaw"),

338+

[

339+

"#!/usr/bin/env bash",

340+

"set -euo pipefail",

341+

'case "${1:-}" in',

342+

" --version)",

343+

" printf 'OpenClaw v2026.6.21-beta.1\\r\\n'",

344+

" ;;",

345+

" --help)",

346+

" printf 'usage\\n'",

347+

" ;;",

348+

" *)",

349+

" exit 2",

350+

" ;;",

351+

"esac",

352+

"",

353+

].join("\n"),

354+

{ mode: 0o755 },

355+

);

356+
357+

const result = spawnSync(

358+

"bash",

359+

[

360+

"-c",

361+

[

362+

"set -euo pipefail",

363+

"source scripts/docker/install-sh-common/cli-verify.sh",

364+

"printf 'parsed=%s\\n' \"$(extract_openclaw_semver 'OpenClaw v2026.6.21-beta.1+build.7')\"",

365+

"verify_installed_cli openclaw 2026.6.21-beta.1",

366+

].join("\n"),

367+

],

368+

{

369+

cwd: process.cwd(),

370+

encoding: "utf8",

371+

env: {

372+

...process.env,

373+

HOME: root,

374+

PATH: `${binDir}${path.delimiter}${process.env.PATH ?? ""}`,

375+

},

376+

},

377+

);

378+
379+

expect(result.status).toBe(0);

380+

expect(result.stderr).toBe("");

381+

expect(result.stdout).toContain("parsed=2026.6.21-beta.1+build.7");

382+

expect(result.stdout).toContain(

383+

"cli=openclaw installed=2026.6.21-beta.1 expected=2026.6.21-beta.1",

384+

);

385+

expect(result.stdout).toContain("==> Sanity: CLI runs");

386+

});

387+
325388

it("can reuse dist from the already-built root Docker smoke image", () => {

326389

const script = readFileSync(SCRIPT_PATH, "utf8");

327390

const dockerfile = readFileSync("Dockerfile", "utf8");

Original file line numberDiff line numberDiff line change

@@ -1823,6 +1823,14 @@ describe("scripts/test-projects changed-target routing", () => {

18231823

"scripts/docker/install-sh-e2e/run.sh",

18241824

["test/scripts/docker-build-helper.test.ts", "test/scripts/test-install-sh-docker.test.ts"],

18251825

],

1826+

[

1827+

"scripts/docker/install-sh-common/cli-verify.sh",

1828+

["test/scripts/test-install-sh-docker.test.ts"],

1829+

],

1830+

[

1831+

"scripts/docker/install-sh-common/version-parse.sh",

1832+

["test/scripts/test-install-sh-docker.test.ts"],

1833+

],

18261834

[

18271835

"scripts/docker/install-sh-nonroot/Dockerfile",

18281836

[