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

推荐订阅源

博客园_首页
B
Blog RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Engineering at Meta
Engineering at Meta
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
M
MIT News - Artificial intelligence
IT之家
IT之家
博客园 - 【当耐特】
U
Unit 42
云风的 BLOG
云风的 BLOG
L
LangChain Blog
小众软件
小众软件
Microsoft Security Blog
Microsoft Security Blog
B
Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
宝玉的分享
宝玉的分享
N
Netflix TechBlog - Medium

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(ci): restore macOS and Windows QA gates · openclaw/op...
vincentkoc · 2026-06-23 · via Recent Commits to openclaw:main

@@ -15,9 +15,6 @@ import { afterEach, describe, expect, it } from "vitest";

15151616

const tempDirs: string[] = [];

1717

const scriptPath = "scripts/e2e/lib/plugin-lifecycle-matrix/measure.mjs";

18-

const hasTimeoutCommand =

19-

process.platform === "linux" &&

20-

spawnSync("bash", ["-lc", "command -v timeout >/dev/null 2>&1"]).status === 0;

21182219

function makeTempDir(): string {

2320

const dir = mkdtempSync(path.join(tmpdir(), "openclaw-plugin-lifecycle-measure-"));

@@ -317,8 +314,8 @@ describe("plugin lifecycle resource sampler", () => {

317314

encoding: "utf8",

318315

env: {

319316

...process.env,

320-

OPENCLAW_PLUGIN_LIFECYCLE_PHASE_TIMEOUT_MS: "150",

321-

OPENCLAW_PLUGIN_LIFECYCLE_TIMEOUT_KILL_GRACE_MS: "100",

317+

OPENCLAW_PLUGIN_LIFECYCLE_PHASE_TIMEOUT_MS: "1000",

318+

OPENCLAW_PLUGIN_LIFECYCLE_TIMEOUT_KILL_GRACE_MS: "200",

322319

PID_FILE: pidFile,

323320

},

324321

timeout: 5000,

@@ -340,49 +337,51 @@ describe("plugin lifecycle resource sampler", () => {

340337

},

341338

);

342339343-

it.runIf(hasTimeoutCommand)("forwards external termination to the measured process group", () => {

344-

const dir = makeTempDir();

345-

const summary = path.join(dir, "summary.tsv");

346-

const pidFile = path.join(dir, "descendant.pid");

347-

let descendantPid;

340+

it.runIf(process.platform === "linux")(

341+

"forwards external termination to the measured process group",

342+

async () => {

343+

const dir = makeTempDir();

344+

const summary = path.join(dir, "summary.tsv");

345+

const pidFile = path.join(dir, "descendant.pid");

346+

let descendantPid;

348347349-

try {

350-

const result = spawnSync(

351-

"timeout",

352-

[

353-

"--kill-after=1s",

354-

"0.2s",

355-

"node",

356-

scriptPath,

357-

summary,

358-

"external-stop",

359-

"--",

360-

"bash",

361-

"-lc",

362-

'bash -c \'trap "" TERM; printf "%s\\n" "$$" >"$PID_FILE"; while :; do sleep 1; done\' & wait',

363-

],

364-

{

365-

cwd: process.cwd(),

366-

encoding: "utf8",

367-

env: {

368-

...process.env,

369-

OPENCLAW_PLUGIN_LIFECYCLE_PHASE_TIMEOUT_MS: "5000",

370-

OPENCLAW_PLUGIN_LIFECYCLE_TIMEOUT_KILL_GRACE_MS: "100",

371-

PID_FILE: pidFile,

348+

try {

349+

const result = spawn(

350+

process.execPath,

351+

[

352+

scriptPath,

353+

summary,

354+

"external-stop",

355+

"--",

356+

"bash",

357+

"-lc",

358+

'bash -c \'trap "" TERM; printf "%s\\n" "$$" >"$PID_FILE"; while :; do sleep 1; done\' & wait',

359+

],

360+

{

361+

cwd: process.cwd(),

362+

env: {

363+

...process.env,

364+

OPENCLAW_PLUGIN_LIFECYCLE_PHASE_TIMEOUT_MS: "5000",

365+

OPENCLAW_PLUGIN_LIFECYCLE_TIMEOUT_KILL_GRACE_MS: "200",

366+

PID_FILE: pidFile,

367+

},

368+

stdio: "ignore",

372369

},

373-

timeout: 5000,

374-

},

375-

);

370+

);

376371377-

descendantPid = Number.parseInt(readFileSync(pidFile, "utf8"), 10);

378-

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

379-

expect(waitForPidExit(descendantPid, 1000)).toBe(true);

380-

} finally {

381-

if (descendantPid > 0 && pidExists(descendantPid)) {

382-

process.kill(descendantPid, "SIGKILL");

372+

expect(waitForPath(pidFile, 2000)).toBe(true);

373+

descendantPid = Number.parseInt(readFileSync(pidFile, "utf8"), 10);

374+

result.kill("SIGTERM");

375+

const close = await waitForChildClose(result, 5000);

376+

expect(close.signal).toBe("SIGTERM");

377+

expect(waitForPidExit(descendantPid, 1000)).toBe(true);

378+

} finally {

379+

if (descendantPid > 0 && pidExists(descendantPid)) {

380+

process.kill(descendantPid, "SIGKILL");

381+

}

383382

}

384-

}

385-

});

383+

},

384+

);

386385387386

it.runIf(process.platform === "linux")(

388387

"exits promptly when externally terminated phases stop during grace",