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

推荐订阅源

B
Blog RSS Feed
博客园 - 叶小钗
F
Fortinet All Blogs
GbyAI
GbyAI
Martin Fowler
Martin Fowler
博客园 - 聂微东
I
InfoQ
B
Blog
IT之家
IT之家
美团技术团队
L
LangChain Blog
小众软件
小众软件
C
Check Point Blog
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
Last Week in AI
Last Week in AI
A
About on SuperTechFans
博客园 - Franky
P
Proofpoint News Feed
罗磊的独立博客
月光博客
月光博客
V
Visual Studio Blog
MyScale Blog
MyScale 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(e2e): reap exited gateway process groups · openclaw/o...
vincentkoc · 2026-06-20 · via Recent Commits to openclaw:main

@@ -371,6 +371,89 @@ process.exit(2);

371371

await waitFor(() => !isProcessAlive(mockPid));

372372

});

373373374+

posixIt("cleans gateway descendants after a failed gateway leader exits", async () => {

375+

const root = makeTempDir();

376+

const outputDir = makeTempDir();

377+

const mockScript = path.join(root, "scripts/e2e/mock-openai-server.mjs");

378+

const gatewayScript = path.join(root, "gateway-leader-exits.mjs");

379+

const gatewayGrandchildPidPath = path.join(root, "gateway-grandchild.pid");

380+

let gatewayGrandchildPid = 0;

381+

fs.mkdirSync(path.dirname(mockScript), { recursive: true });

382+

writeExecutable(

383+

mockScript,

384+

`

385+

process.stdout.write("mock-openai listening\\n");

386+

process.on("SIGTERM", () => process.exit(0));

387+

setInterval(() => {}, 1000);

388+

`,

389+

);

390+

writeExecutable(

391+

gatewayScript,

392+

`

393+

import { spawn } from "node:child_process";

394+

import fs from "node:fs";

395+396+

const grandchild = spawn(process.execPath, [

397+

"-e",

398+

"process.on('SIGTERM', () => process.exit(0)); setInterval(() => {}, 1000);",

399+

], { stdio: "ignore" });

400+

fs.writeFileSync(${JSON.stringify(gatewayGrandchildPidPath)}, String(grandchild.pid));

401+

process.exit(2);

402+

`,

403+

);

404+405+

try {

406+

await expect(

407+

startLocalSut(

408+

{

409+

gatewayPort: 19042,

410+

groupId: "group",

411+

mockPort: 19043,

412+

mockResponseText: "ok",

413+

outputDir,

414+

repoRoot: root,

415+

sutToken: "token",

416+

testerId: "tester",

417+

},

418+

{

419+

createGatewaySpawnSpec: () => ({

420+

args: [gatewayScript],

421+

command: process.execPath,

422+

options: { cwd: root, env: process.env },

423+

}),

424+

drainUpdates: async () => ({

425+

drained: 0,

426+

webhookUrlSet: false,

427+

}),

428+

waitForOutputReady: async (child, _pattern, output, label) => {

429+

if (label === "mock-openai") {

430+

await waitFor(() => output().includes("mock-openai listening"));

431+

return;

432+

}

433+

await waitFor(() => fs.existsSync(gatewayGrandchildPidPath));

434+

gatewayGrandchildPid = Number.parseInt(

435+

fs.readFileSync(gatewayGrandchildPidPath, "utf8"),

436+

10,

437+

);

438+

if (child.exitCode === null && child.signalCode === null) {

439+

await new Promise<void>((resolve) => {

440+

child.once("exit", () => resolve());

441+

});

442+

}

443+

throw new Error("gateway exited before ready");

444+

},

445+

},

446+

),

447+

).rejects.toThrow("gateway exited before ready");

448+449+

await waitFor(() => !isProcessAlive(gatewayGrandchildPid));

450+

} finally {

451+

if (gatewayGrandchildPid && isProcessAlive(gatewayGrandchildPid)) {

452+

process.kill(gatewayGrandchildPid, "SIGKILL");

453+

}

454+

}

455+

});

456+374457

posixIt("stops Crabbox recording when the desktop probe fails", async () => {

375458

const root = makeTempDir();

376459

const recorderPath = path.join(root, "fake-crabbox-recorder.mjs");