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

推荐订阅源

F
Full Disclosure
Recorded Future
Recorded Future
T
Tenable Blog
S
Securelist
C
CERT Recently Published Vulnerability Notes
T
Threatpost
S
Schneier on Security
A
Arctic Wolf
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
Know Your Adversary
Know Your Adversary
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Register - Security
The Register - Security
Cisco Talos Blog
Cisco Talos Blog
AWS News Blog
AWS News Blog
K
Kaspersky official blog
T
True Tiger Recordings
T
Threat Research - Cisco Blogs
V
Vulnerabilities – Threatpost
P
Palo Alto Networks Blog
T
The Exploit Database - CXSecurity.com
小众软件
小众软件
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
Cyberwarzone
Cyberwarzone
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tor Project blog
Spread Privacy
Spread Privacy
Malwarebytes
Malwarebytes
P
Proofpoint News Feed
F
Fox-IT International blog
F
Fortinet All Blogs
P
Privacy & Cybersecurity Law Blog
G
GRAHAM CLULEY
量子位
Latest news
Latest news
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
Project Zero
Project Zero
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
I
Intezer
博客园_首页
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Darknet – Hacking Tools, Hacker News & Cyber Security

Recent Commits to openclaw:main

fix(docker): bound telegram npm installs · openclaw/openclaw@130464e fix(mac): use corepack pnpm for app packaging · openclaw/openclaw@728b61a fix: mark ios watch app as watchkit app · openclaw/openclaw@1600bcd test: fix bundled install mock typing · openclaw/openclaw@669bfdd docs: explain bundled plugin npm override · openclaw/openclaw@40fa750 fix: keep bundled OpenClaw plugins image-owned · openclaw/openclaw@771675e fix: preserve whatsapp inbound batch order · openclaw/openclaw@84a33c7 perf: cache npm globalconfig lookups · openclaw/openclaw@3f524a6 fix(daemon): ignore recursive Windows gateway wrapper · openclaw/openclaw@126a336 fix(docker): bound live setup commands · openclaw/openclaw@eb15c44 fix: restore ios build stability · openclaw/openclaw@1daef79 feat(plugin-sdk): add reaction approval helpers (#86735) · openclaw/openclaw@7d6b7f4 test(auto-reply): type manifest catalog harness mock · openclaw/openclaw@4f83cd6 fix(docker): bound live docker runs · openclaw/openclaw@96307ca test(auto-reply): mock manifest model catalog in trigger harness · openclaw/openclaw@989d449 fix(crabbox): scope env-wrapped macOS bootstrap · openclaw/openclaw@2f7bfdb fix(gateway): reject RPCs from invalidated device-token clients durin… · openclaw/openclaw@1e1cf14 fix(channel): handle plugin channel markdown fallback · openclaw/openclaw@6158742 fix(codex): share native hook relay registry (#73950) · openclaw/openclaw@6729dea fix(release): stabilize plugin prerelease tests · openclaw/openclaw@5a684c4 fix(diagnostics): flush OTel trace batches · openclaw/openclaw@c4b9f54 fix(memory): reject invalid CLI numeric options · openclaw/openclaw@d569e41 fix(codex): bound app-server timeout fallout · openclaw/openclaw@5a7d5c6 fix(agents): keep model browse normalization bounded · openclaw/openclaw@9fc71e9 fix: stabilize media-related tests · openclaw/openclaw@a818556 fix(ci): preserve docker pull retry failures · openclaw/openclaw@be2213e fix(build): stabilize shrinkwrap generation · openclaw/openclaw@538b537 fix(ui): ignore stale running session rows · openclaw/openclaw@1705189 ci: support windows node download fallback · openclaw/openclaw@bb48fcf test(agents): pin native anthropic replay policy · openclaw/openclaw@acd3ce0 fix(status): surface systemd gateway hygiene (#86976) · openclaw/openclaw@0a085bf fix(ui): show failed tool results as errors (#85786) ci: allow Windows Node 22 patch range · openclaw/openclaw@ce4db4f ci: enforce Node 22 floor in setup helper · openclaw/openclaw@1d972af Fix status JSON plugin scan (#87001) · openclaw/openclaw@f3e6158 fix(telegram): preserve command slots for aliases (#85270) · openclaw/openclaw@77505da fix(agents): handle deferred maintenance drain · openclaw/openclaw@94fb547 test: keep legacy tool-result error proof ci: fix post-merge Rastermill checks · openclaw/openclaw@b546998 fix(agents): mark repaired legacy tool results errored · openclaw/openclaw@8523d32 docs(changelog): note rastermill exif fix docs(changelog): regroup 2026.5.26 release notes · openclaw/openclaw@a6973ab fix: keep EXIF normalization best-effort (#86923) · openclaw/openclaw@acb942f build: update rastermill pin · openclaw/openclaw@7d4d751 build: use rastermill 0.3.0 · openclaw/openclaw@cee8c87 ci: normalize Windows toolcache paths · openclaw/openclaw@03ae999 refactor: use unified rastermill encode API · openclaw/openclaw@a3325c9 ci: satisfy opengrep git add guard · openclaw/openclaw@16d06aa refactor: delegate image processing to Rastermill · openclaw/openclaw@50b98a1 build: update rastermill dependency · openclaw/openclaw@e6edcca fix: infer realtime smoke dev server type · openclaw/openclaw@4e84229 refactor: delegate image limits to Rastermill · openclaw/openclaw@4f728f8 fix(agents): repair legacy tool results before replay · openclaw/openclaw@4e45b11 fix(config): narrow profiled tool section doctor repair (#87030) · openclaw/openclaw@3c16648 test: fix current suite drift · openclaw/openclaw@80655fe fix(lock): require owner identity proof before stale removal · openclaw/openclaw@daa7b1d fix(deps): pin shrinkwrap patch drift to pnpm lock · openclaw/openclaw@d8a14e7 revert: 60bec8c duplicate tool display guard · openclaw/openclaw@e09f89d fix(e2e): bound docker package preparation · openclaw/openclaw@38edae7 fix(cli): add Windows stack-size respawn (#87031) · openclaw/openclaw@5e8f498 fix(agents): preserve sessions_spawn transcript payloads (#82203) · openclaw/openclaw@ef86d8c fix(agents): guard duplicate tool display metadata (#87025) · openclaw/openclaw@60bec8c ci(release): port 2026.5.25 release gate fixes · openclaw/openclaw@f7e2d9b chore: update tool display snapshot · openclaw/openclaw@ad71c42 fix(web-search): keep runtime legacy merge out of validation (#86818) · openclaw/openclaw@4a85cd7 fix(cli): default logs to local timestamps (#85387) · openclaw/openclaw@3127808 fix(agents): dedupe transcripts tool display config · openclaw/openclaw@8788ae1 fix(updater): exclude prerelease tags from stable git channel (#86559) · openclaw/openclaw@e070519 fix(agents): memoize session lock owner args · openclaw/openclaw@c430fcd fix: dedupe transcripts tool display metadata · openclaw/openclaw@0f49bbb fix(cli): validate timeout and banner TTY state · openclaw/openclaw@abb85cc fix(codex): project newer history on app-server resume (#86677) fix(codex): keep turn timeouts inside Codex (#86476) fix(auto-reply): stage sandboxed workspace media · openclaw/openclaw@f22c3a5 fix(e2e): support plain telegram install timeouts fix(mac): harden restart and dSYM packaging · openclaw/openclaw@639e7ff fix(exec): avoid default approval store writes (#86964) · openclaw/openclaw@4d65936 fix(agents): restore current guard checks (#86934) · openclaw/openclaw@9b1b6d0 docs(changelog): prepare 2026.5.26 notes · openclaw/openclaw@983b338 fix(commands): keep slash handling off reply startup · openclaw/openclaw@c2b56de fix(reply): defer context compaction safely · openclaw/openclaw@ed3ae0d fix(telegram): refine typing and progress drafts · openclaw/openclaw@0afccc6 fix(codex): gate profiler timing and startup setup · openclaw/openclaw@21c25bb fix(agents): avoid runtime model hydration on hot paths · openclaw/openclaw@7951cc0 fix(reply): reduce visible reply delivery latency · openclaw/openclaw@699c047 docs(changelog): note reply latency fixes · openclaw/openclaw@29a1dc2 fix(e2e): support plain timeout wrappers fix(channels): preserve direct native progress callbacks · openclaw/openclaw@e750041 fix: tighten parser edge cases (#86999) · openclaw/openclaw@174cd49 fix(e2e): clean stale docker lane containers · openclaw/openclaw@3968288 fix(e2e): bound docker lifecycle hangs · openclaw/openclaw@71cb607 fix(gateway): bound live agent model probes fix(e2e): bound plugin binding docker smoke · openclaw/openclaw@b36fa1d fix(e2e): preserve docker run failure status feat(discord): bucket large model picker menus fix(telegram): derive DM topics from bot capability · openclaw/openclaw@aa117ec fix: improve discord voice playback and wake replies fix(e2e): kill timed kitchen rpc command groups · openclaw/openclaw@23aeb58 ci: use supported codex mini live target · openclaw/openclaw@b56ddcc fix(ci): kill wedged bun smoke commands
fix(docker): require bounded e2e docker commands · openclaw/openclaw@3736d7b
vincentkoc · 2026-05-27 · via Recent Commits to openclaw:main

@@ -1,5 +1,13 @@

11

import { execFileSync } from "node:child_process";

2-

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

2+

import {

3+

chmodSync,

4+

mkdtempSync,

5+

mkdirSync,

6+

readdirSync,

7+

readFileSync,

8+

rmSync,

9+

writeFileSync,

10+

} from "node:fs";

311

import { tmpdir } from "node:os";

412

import { join } from "node:path";

513

import { describe, expect, it } from "vitest";

@@ -244,6 +252,239 @@ grep -q '^pull openclaw-reuse-image$' "$TMPDIR/docker-seen"

244252

}

245253

});

246254255+

it("fails Docker commands fast when timeout is unavailable", () => {

256+

const workDir = mkdtempSync(join(tmpdir(), "openclaw-docker-timeout-required-"));

257+258+

try {

259+

mkdirSync(join(workDir, "bin"));

260+

const rootDir = process.cwd();

261+

const script = `

262+

set -euo pipefail

263+

ROOT_DIR=${shellQuote(rootDir)}

264+

TMPDIR=${shellQuote(workDir)}

265+

export ROOT_DIR TMPDIR

266+

export PATH="$TMPDIR/bin"

267+

export DOCKER_COMMAND_TIMEOUT=7s

268+269+

docker() {

270+

printf "%s\\n" "$*" >"$TMPDIR/docker-seen"

271+

}

272+

export -f docker

273+274+

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

275+276+

set +e

277+

docker_e2e_docker_cmd ps 2>"$TMPDIR/stderr"

278+

status="$?"

279+

set -e

280+281+

stderr="$(<"$TMPDIR/stderr")"

282+

[[ "$status" = "127" ]]

283+

[[ "$stderr" = *"timeout command not found; cannot bound Docker command after 7s"* ]]

284+

[[ ! -e "$TMPDIR/docker-seen" ]]

285+

`;

286+287+

execFileSync("bash", ["-lc", script], { encoding: "utf8" });

288+

} finally {

289+

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

290+

}

291+

});

292+293+

it("uses plain timeout when kill-after is unsupported", () => {

294+

const workDir = mkdtempSync(join(tmpdir(), "openclaw-docker-plain-timeout-"));

295+296+

try {

297+

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

298+

mkdirSync(binDir);

299+

writeFileSync(

300+

join(binDir, "timeout"),

301+

`#!/bin/bash

302+

set -euo pipefail

303+

if [[ "$1" = "--kill-after=1s" ]]; then

304+

exit 1

305+

fi

306+

printf 'plain:%s|%s\\n' "$1" "\${*:2}" >>"$TMPDIR/timeout-seen"

307+

shift

308+

"$@"

309+

`,

310+

);

311+

chmodSync(join(binDir, "timeout"), 0o755);

312+

const rootDir = process.cwd();

313+

const script = `

314+

set -euo pipefail

315+

ROOT_DIR=${shellQuote(rootDir)}

316+

TMPDIR=${shellQuote(workDir)}

317+

export ROOT_DIR TMPDIR

318+

export PATH="$TMPDIR/bin:$PATH"

319+

export DOCKER_COMMAND_TIMEOUT=9s

320+321+

docker() {

322+

printf "%s\\n" "$*" >>"$TMPDIR/docker-seen"

323+

}

324+

export -f docker

325+326+

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

327+328+

docker_e2e_docker_cmd image inspect demo

329+330+

grep -q '^plain:9s|docker image inspect demo$' "$TMPDIR/timeout-seen"

331+

grep -q '^image inspect demo$' "$TMPDIR/docker-seen"

332+

`;

333+334+

execFileSync("bash", ["-lc", script], { encoding: "utf8" });

335+

} finally {

336+

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

337+

}

338+

});

339+340+

it("uses gtimeout when timeout is unavailable", () => {

341+

const workDir = mkdtempSync(join(tmpdir(), "openclaw-docker-gtimeout-"));

342+343+

try {

344+

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

345+

mkdirSync(binDir);

346+

writeFileSync(

347+

join(binDir, "gtimeout"),

348+

`#!/bin/bash

349+

set -euo pipefail

350+

if [[ "$1" = "--kill-after=1s" ]]; then

351+

exit 0

352+

fi

353+

printf 'gtimeout:%s %s|%s\\n' "$1" "$2" "\${*:3}" >>"$TMPDIR/timeout-seen"

354+

shift 2

355+

"$@"

356+

`,

357+

);

358+

chmodSync(join(binDir, "gtimeout"), 0o755);

359+

const rootDir = process.cwd();

360+

const script = `

361+

set -euo pipefail

362+

ROOT_DIR=${shellQuote(rootDir)}

363+

TMPDIR=${shellQuote(workDir)}

364+

export ROOT_DIR TMPDIR

365+

export PATH="$TMPDIR/bin"

366+

export OPENCLAW_DOCKER_E2E_RUN_TIMEOUT=13s

367+368+

docker() {

369+

printf "%s\\n" "$*" >>"$TMPDIR/docker-seen"

370+

}

371+

export -f docker

372+373+

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

374+375+

docker_e2e_docker_run_cmd run demo

376+377+

[[ "$(<"$TMPDIR/timeout-seen")" = "gtimeout:--kill-after=30s 13s|docker run demo" ]]

378+

[[ "$(<"$TMPDIR/docker-seen")" = "run demo" ]]

379+

`;

380+381+

execFileSync("bash", ["-lc", script], { encoding: "utf8" });

382+

} finally {

383+

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

384+

}

385+

});

386+387+

it("keeps package-backed Docker runs bounded without the shared timeout helper", () => {

388+

const workDir = mkdtempSync(join(tmpdir(), "openclaw-docker-package-timeout-required-"));

389+390+

try {

391+

mkdirSync(join(workDir, "bin"));

392+

const rootDir = process.cwd();

393+

const script = `

394+

set -euo pipefail

395+

ROOT_DIR=${shellQuote(rootDir)}

396+

TMPDIR=${shellQuote(workDir)}

397+

export ROOT_DIR TMPDIR

398+

export PATH="$TMPDIR/bin"

399+

export OPENCLAW_DOCKER_E2E_RUN_TIMEOUT=11s

400+401+

dirname() {

402+

/usr/bin/dirname "$@"

403+

}

404+405+

docker_e2e_docker_cmd() {

406+

return 0

407+

}

408+409+

docker() {

410+

printf "%s\\n" "$*" >"$TMPDIR/docker-seen"

411+

}

412+

export -f docker_e2e_docker_cmd docker

413+414+

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

415+416+

set +e

417+

docker_e2e_docker_run_cmd run demo 2>"$TMPDIR/stderr"

418+

status="$?"

419+

set -e

420+421+

stderr="$(<"$TMPDIR/stderr")"

422+

[[ "$status" = "127" ]]

423+

[[ "$stderr" = *"timeout command not found; cannot bound Docker run after 11s"* ]]

424+

[[ ! -e "$TMPDIR/docker-seen" ]]

425+

`;

426+427+

execFileSync("bash", ["-lc", script], { encoding: "utf8" });

428+

} finally {

429+

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

430+

}

431+

});

432+433+

it("uses gtimeout for package-backed Docker runs without the shared timeout helper", () => {

434+

const workDir = mkdtempSync(join(tmpdir(), "openclaw-docker-package-gtimeout-"));

435+436+

try {

437+

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

438+

mkdirSync(binDir);

439+

writeFileSync(

440+

join(binDir, "gtimeout"),

441+

`#!/bin/bash

442+

set -euo pipefail

443+

if [[ "$1" = "--kill-after=1s" ]]; then

444+

exit 0

445+

fi

446+

printf 'gtimeout:%s %s|%s\\n' "$1" "$2" "\${*:3}" >>"$TMPDIR/timeout-seen"

447+

shift 2

448+

"$@"

449+

`,

450+

);

451+

chmodSync(join(binDir, "gtimeout"), 0o755);

452+

const rootDir = process.cwd();

453+

const script = `

454+

set -euo pipefail

455+

ROOT_DIR=${shellQuote(rootDir)}

456+

TMPDIR=${shellQuote(workDir)}

457+

export ROOT_DIR TMPDIR

458+

export PATH="$TMPDIR/bin"

459+

export OPENCLAW_DOCKER_E2E_RUN_TIMEOUT=15s

460+461+

dirname() {

462+

/usr/bin/dirname "$@"

463+

}

464+465+

docker_e2e_docker_cmd() {

466+

return 0

467+

}

468+469+

docker() {

470+

printf "%s\\n" "$*" >>"$TMPDIR/docker-seen"

471+

}

472+

export -f docker_e2e_docker_cmd docker

473+474+

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

475+476+

docker_e2e_docker_run_cmd run demo

477+478+

[[ "$(<"$TMPDIR/timeout-seen")" = "gtimeout:--kill-after=30s 15s|docker run demo" ]]

479+

[[ "$(<"$TMPDIR/docker-seen")" = "run demo" ]]

480+

`;

481+482+

execFileSync("bash", ["-lc", script], { encoding: "utf8" });

483+

} finally {

484+

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

485+

}

486+

});

487+247488

it("removes functional Docker build package inputs after the build", () => {

248489

const workDir = mkdtempSync(join(tmpdir(), "openclaw-docker-build-cleanup-"));

249490