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

推荐订阅源

Project Zero
Project Zero
GbyAI
GbyAI
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
小众软件
小众软件
The GitHub Blog
The GitHub Blog
阮一峰的网络日志
阮一峰的网络日志
J
Java Code Geeks
WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家
F
Fortinet All Blogs
博客园 - 【当耐特】
H
Hackread – Cybersecurity News, Data Breaches, AI and More
P
Proofpoint News Feed
Schneier on Security
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
Spread Privacy
Spread Privacy
O
OpenAI News
V
V2EX
博客园 - 三生石上(FineUI控件)
AI
AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
P
Privacy International News Feed
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Jina AI
Jina AI
H
Help Net Security
L
LINUX DO - 最新话题
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Tenable Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Cisco Talos Blog
Cisco Talos Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 叶小钗
V
Vulnerabilities – Threatpost
C
Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
酷 壳 – CoolShell
酷 壳 – CoolShell
Hacker News: Ask HN
Hacker News: Ask HN
S
Security @ Cisco Blogs
S
Securelist
T
The Blog of Author Tim Ferriss
Apple Machine Learning Research
Apple Machine Learning Research
美团技术团队
雷峰网
雷峰网
V2EX - 技术
V2EX - 技术

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(installer): handle alpine apk runtime floors · openclaw/openclaw@b83dfcb
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main

@@ -109,14 +109,17 @@ describe("install.sh", () => {

109109110110

it("installs Node.js with apk on Alpine before falling back to NodeSource", () => {

111111

expect(script).toContain("finish_linux_node_install()");

112+

expect(script).toContain("is_alpine_linux()");

113+

expect(script).toContain("install_node_with_apk()");

112114

expect(script).toContain('ui_info "Installing Node.js via apk (Alpine Linux detected)"');

113115

expect(script).toContain('run_quiet_step "Installing Node.js" apk add --no-cache nodejs npm');

114116

expect(script).toContain(

115117

'run_quiet_step "Installing Node.js" sudo apk add --no-cache nodejs npm',

116118

);

119+

expect(script).toContain('run_quiet_step "Installing nodejs-current" apk add --no-cache nodejs-current npm');

117120

expect(script).toContain("if ! node_is_at_least_required; then");

118121119-

const apkIndex = script.indexOf("if command -v apk &> /dev/null; then");

122+

const apkIndex = script.indexOf("if command -v apk &> /dev/null && is_alpine_linux; then");

120123

const nodeSourceIndex = script.indexOf('ui_info "Installing Node.js via NodeSource"');

121124

expect(apkIndex).toBeGreaterThan(-1);

122125

expect(nodeSourceIndex).toBeGreaterThan(apkIndex);

@@ -130,10 +133,12 @@ describe("install.sh", () => {

130133

require_sudo() { :; }

131134

install_build_tools_linux() { return 0; }

132135

is_root() { return 0; }

136+

is_alpine_linux() { return 0; }

133137

ui_info() { printf 'info:%s\\n' "$*"; }

134138

ui_success() { printf 'success:%s\\n' "$*"; }

135139

run_quiet_step() { printf 'step:%s|%s\\n' "$1" "\${*:2}"; }

136140

apk() { :; }

141+

node_is_at_least_required() { return 0; }

137142

finish_linux_node_install() { printf 'finish-linux-node\\n'; }

138143

install_node

139144

`);

@@ -145,6 +150,182 @@ describe("install.sh", () => {

145150

expect(result.stdout).not.toContain("Installing Node.js via NodeSource");

146151

});

147152153+

it("tries nodejs-current when Alpine nodejs is below the runtime floor", () => {

154+

const result = runInstallShell(`

155+

set -euo pipefail

156+

source "${SCRIPT_PATH}"

157+

OS=linux

158+

NODE_FAKE_VERSION=v20.15.1

159+

require_sudo() { :; }

160+

install_build_tools_linux() { return 0; }

161+

is_root() { return 0; }

162+

is_alpine_linux() { return 0; }

163+

ui_info() { printf 'info:%s\\n' "$*"; }

164+

ui_success() { printf 'success:%s\\n' "$*"; }

165+

ui_warn() { printf 'warn:%s\\n' "$*"; }

166+

run_quiet_step() {

167+

printf 'step:%s|%s\\n' "$1" "\${*:2}"

168+

"\${@:2}"

169+

}

170+

apk() {

171+

printf 'apk:%s\\n' "$*"

172+

if [[ "$*" == *"nodejs-current"* ]]; then

173+

NODE_FAKE_VERSION=v22.22.2

174+

fi

175+

}

176+

node() {

177+

if [[ "\${1:-}" == "-v" ]]; then

178+

printf '%s\\n' "$NODE_FAKE_VERSION"

179+

fi

180+

}

181+

activate_supported_node_on_path() { :; }

182+

finish_linux_node_install() { printf 'finish-linux-node\\n'; }

183+

install_node

184+

`);

185+186+

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

187+

expect(result.stdout).toContain("step:Installing Node.js|apk add --no-cache nodejs npm");

188+

expect(result.stdout).toContain("warn:Alpine nodejs package installed v20.15.1");

189+

expect(result.stdout).toContain("step:Installing nodejs-current|apk add --no-cache nodejs-current npm");

190+

expect(result.stdout).toContain("finish-linux-node");

191+

});

192+193+

it("fails with Alpine version guidance when apk cannot provide the runtime floor", () => {

194+

const result = runInstallShell(`

195+

set -euo pipefail

196+

source "${SCRIPT_PATH}"

197+

OS=linux

198+

NODE_FAKE_VERSION=v20.15.1

199+

require_sudo() { :; }

200+

install_build_tools_linux() { return 0; }

201+

is_root() { return 0; }

202+

is_alpine_linux() { return 0; }

203+

ui_info() { printf 'info:%s\\n' "$*"; }

204+

ui_success() { printf 'success:%s\\n' "$*"; }

205+

ui_warn() { printf 'warn:%s\\n' "$*"; }

206+

ui_error() { printf 'error:%s\\n' "$*"; }

207+

run_quiet_step() {

208+

printf 'step:%s|%s\\n' "$1" "\${*:2}"

209+

"\${@:2}"

210+

}

211+

apk() {

212+

printf 'apk:%s\\n' "$*"

213+

if [[ "$*" == *"nodejs-current"* ]]; then

214+

NODE_FAKE_VERSION=v21.7.3

215+

fi

216+

}

217+

node() {

218+

if [[ "\${1:-}" == "-v" ]]; then

219+

printf '%s\\n' "$NODE_FAKE_VERSION"

220+

fi

221+

}

222+

activate_supported_node_on_path() { :; }

223+

install_node

224+

`);

225+226+

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

227+

expect(result.stdout).toContain("warn:Alpine nodejs package installed v20.15.1");

228+

expect(result.stdout).toContain("step:Installing nodejs-current|apk add --no-cache nodejs-current npm");

229+

expect(result.stdout).toContain("error:Alpine apk repositories did not provide Node.js v22.19+");

230+

expect(result.stdout).toContain("Use Alpine 3.21+ or install Node.js 24 manually");

231+

});

232+233+

it("installs Git with apk on Alpine", () => {

234+

const tmp = mkdtempSync(join(tmpdir(), "openclaw-install-git-apk-"));

235+

const bin = join(tmp, "bin");

236+

const apkLog = join(tmp, "apk-args.txt");

237+

mkdirSync(bin, { recursive: true });

238+

const fakeApk = join(bin, "apk");

239+

writeFileSync(

240+

fakeApk,

241+

[

242+

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

243+

"set -euo pipefail",

244+

`printf '%s\\n' "$*" >> ${JSON.stringify(apkLog)}`,

245+

"",

246+

].join("\n"),

247+

);

248+

chmodSync(fakeApk, 0o755);

249+250+

try {

251+

const result = runInstallShell(`

252+

set -euo pipefail

253+

source "${SCRIPT_PATH}"

254+

PATH=${JSON.stringify(`${bin}:/bin`)}

255+

OS=linux

256+

require_sudo() { :; }

257+

is_root() { return 0; }

258+

is_alpine_linux() { return 0; }

259+

ui_success() { printf 'success:%s\\n' "$*"; }

260+

ui_error() { printf 'error:%s\\n' "$*"; }

261+

run_quiet_step() {

262+

printf 'step:%s|%s\\n' "$1" "\${*:2}"

263+

"\${@:2}"

264+

}

265+

install_git

266+

`);

267+268+

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

269+

expect(result.stdout).toContain("step:Installing Git|apk add --no-cache git");

270+

expect(result.stdout).toContain("success:Git installed");

271+

expect(readFileSync(apkLog, "utf8").trim()).toBe("add --no-cache git");

272+

} finally {

273+

rmSync(tmp, { recursive: true, force: true });

274+

}

275+

});

276+277+

it("does not select apk Git on non-Alpine hosts", () => {

278+

const tmp = mkdtempSync(join(tmpdir(), "openclaw-install-git-native-"));

279+

const bin = join(tmp, "bin");

280+

const apkLog = join(tmp, "apk-args.txt");

281+

mkdirSync(bin, { recursive: true });

282+

const fakeApk = join(bin, "apk");

283+

const fakeApt = join(bin, "apt-get");

284+

writeFileSync(apkLog, "");

285+

writeFileSync(

286+

fakeApk,

287+

[

288+

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

289+

"set -euo pipefail",

290+

`printf '%s\\n' "$*" >> ${JSON.stringify(apkLog)}`,

291+

"",

292+

].join("\n"),

293+

);

294+

writeFileSync(fakeApt, "#!/usr/bin/env bash\nexit 0\n");

295+

chmodSync(fakeApk, 0o755);

296+

chmodSync(fakeApt, 0o755);

297+298+

try {

299+

const result = runInstallShell(`

300+

set -euo pipefail

301+

source "${SCRIPT_PATH}"

302+

PATH=${JSON.stringify(`${bin}:/bin`)}

303+

OS=linux

304+

require_sudo() { :; }

305+

is_root() { return 0; }

306+

is_alpine_linux() { return 1; }

307+

apt_get_update() { printf 'apt-update\\n'; }

308+

apt_get_install() { printf 'apt-install:%s\\n' "$*"; }

309+

ui_success() { printf 'success:%s\\n' "$*"; }

310+

ui_error() { printf 'error:%s\\n' "$*"; }

311+

run_quiet_step() {

312+

printf 'step:%s|%s\\n' "$1" "\${*:2}"

313+

"\${@:2}"

314+

}

315+

install_git

316+

`);

317+318+

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

319+

expect(result.stdout).toContain("step:Updating package index|apt_get_update");

320+

expect(result.stdout).toContain("apt-update");

321+

expect(result.stdout).toContain("step:Installing Git|apt_get_install git");

322+

expect(result.stdout).toContain("apt-install:git");

323+

expect(readFileSync(apkLog, "utf8")).toBe("");

324+

} finally {

325+

rmSync(tmp, { recursive: true, force: true });

326+

}

327+

});

328+148329

it("clears npm freshness filters for package installs", () => {

149330

expect(script).toContain("env -u NPM_CONFIG_BEFORE -u npm_config_before");

150331

expect(script).toContain('freshness_flag="--min-release-age=0"');

@@ -156,10 +337,12 @@ describe("install.sh", () => {

156337

it("does not emit --before when raw user npmrc config contains min-release-age", () => {

157338

const tmp = mkdtempSync(join(tmpdir(), "openclaw-install-npmrc-"));

158339

const bin = join(tmp, "bin");

340+

const home = join(tmp, "home");

159341

const npmrc = join(tmp, "user.npmrc");

160342

const calls = join(tmp, "npm-calls.txt");

161343

const installArgs = join(tmp, "npm-install-args.txt");

162344

mkdirSync(bin, { recursive: true });

345+

mkdirSync(home, { recursive: true });

163346

writeFileSync(npmrc, "min-release-age=7\n");

164347

const fakeNpm = join(bin, "npm");

165348

writeFileSync(

@@ -194,10 +377,11 @@ describe("install.sh", () => {

194377

'printf "cmd=%s\\n" "$LAST_NPM_INSTALL_CMD"',

195378

].join("\n"),

196379

{

380+

HOME: home,

197381

NPM_CONFIG_USERCONFIG: npmrc,

198382

NPM_FAKE_CALLS: calls,

199383

NPM_FAKE_INSTALL_ARGS: installArgs,

200-

PATH: `${bin}:${process.env.PATH}`,

384+

PATH: `${bin}:/usr/local/bin:/usr/bin:/bin`,

201385

},

202386

);

203387

@@ -638,6 +822,13 @@ describe("install.sh", () => {

638822

[

639823

`cd ${JSON.stringify(process.cwd())}`,

640824

`source ${JSON.stringify(SCRIPT_PATH)}`,

825+

"type() {",

826+

' if [[ "$*" == "-P -a node" ]]; then',

827+

` printf '%s\\n' ${JSON.stringify(staleNode)} ${JSON.stringify(supportedNode)}`,

828+

" return 0",

829+

" fi",

830+

' builtin type "$@"',

831+

"}",

641832

"set +e",

642833

"OS=linux",

643834

"promote_supported_node_binary",