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

推荐订阅源

V
V2EX
P
Proofpoint News Feed
D
DataBreaches.Net
C
Check Point Blog
L
LangChain Blog
量子位
美团技术团队
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
V
Visual Studio Blog
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42
腾讯CDC
M
MIT News - Artificial intelligence
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale

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(qa-lab): wait for qa cli stdio close · openclaw/openc...
vincentkoc · 2026-06-20 · via Recent Commits to openclaw:main

@@ -106,7 +106,7 @@ describe("qa suite runtime agent process helpers", () => {

106106107107

await waitForSpawnCount(1);

108108

child.stdout.emit("data", Buffer.from("ok\n"));

109-

child.emit("exit", 0);

109+

child.emit("close", 0);

110110111111

await expect(pending).resolves.toBe("ok");

112112

const spawnCall = firstSpawnCall();

@@ -142,7 +142,7 @@ describe("qa suite runtime agent process helpers", () => {

142142

await waitForSpawnCount(1);

143143

expect(timeoutSpy).toHaveBeenCalledWith(expect.any(Function), MAX_TIMER_TIMEOUT_MS);

144144

child.stdout.emit("data", Buffer.from("ok\n"));

145-

child.emit("exit", 0);

145+

child.emit("close", 0);

146146

await expect(pending).resolves.toBe("ok");

147147

} finally {

148148

timeoutSpy.mockRestore();

@@ -208,7 +208,7 @@ describe("qa suite runtime agent process helpers", () => {

208208209209

await waitForSpawnCount(1);

210210

child.stdout.emit("data", Buffer.from("ok\n"));

211-

child.emit("exit", 0);

211+

child.emit("close", 0);

212212213213

await expect(pending).resolves.toBe("ok");

214214

const spawnCall = firstSpawnCall();

@@ -246,7 +246,7 @@ describe("qa suite runtime agent process helpers", () => {

246246247247

await waitForSpawnCount(1);

248248

child.stdout.emit("data", Buffer.from('{"ok":true}\n'));

249-

child.emit("exit", 0);

249+

child.emit("close", 0);

250250251251

await expect(pending).resolves.toEqual({ ok: true });

252252

});

@@ -277,7 +277,7 @@ describe("qa suite runtime agent process helpers", () => {

277277

'\u001b[35m[plugins]\u001b[39m \u001b[36mcodex loaded plugin package metadata\u001b[39m\n{"results":[{"text":"ORBIT-10"}]}\n',

278278

),

279279

);

280-

child.emit("exit", 0);

280+

child.emit("close", 0);

281281282282

await expect(pending).resolves.toEqual({ results: [{ text: "ORBIT-10" }] });

283283

});

@@ -308,11 +308,38 @@ describe("qa suite runtime agent process helpers", () => {

308308

'[plugins] memory-core loaded plugin package metadata\n{\n "results": [\n {\n "text": "ORBIT-10"\n }\n ]\n}\n',

309309

),

310310

);

311-

child.emit("exit", 0);

311+

child.emit("close", 0);

312312313313

await expect(pending).resolves.toEqual({ results: [{ text: "ORBIT-10" }] });

314314

});

315315316+

it("waits for stdio close before parsing qa cli stdout", async () => {

317+

const child = createSpawnedProcess();

318+

spawnMock.mockReturnValue(child);

319+320+

const pending = runQaCli(

321+

{

322+

repoRoot: "/repo",

323+

gateway: {

324+

tempRoot: "/tmp/runtime",

325+

runtimeEnv: {},

326+

},

327+

primaryModel: "openai/gpt-5.5",

328+

alternateModel: "openai/gpt-5.5-mini",

329+

providerMode: "mock-openai",

330+

} as never,

331+

["memory", "search", "--json"],

332+

{ json: true },

333+

);

334+335+

await waitForSpawnCount(1);

336+

child.emit("exit", 0);

337+

child.stdout.emit("data", Buffer.from('{"results":[{"text":"LATE-STDOUT"}]}\n'));

338+

child.emit("close", 0);

339+340+

await expect(pending).resolves.toEqual({ results: [{ text: "LATE-STDOUT" }] });

341+

});

342+316343

it("rejects oversized qa cli stdout instead of parsing truncated output", async () => {

317344

const child = createSpawnedProcess();

318345

spawnMock.mockReturnValue(child);

@@ -334,7 +361,7 @@ describe("qa suite runtime agent process helpers", () => {

334361335362

await waitForSpawnCount(1);

336363

child.stdout.emit("data", Buffer.alloc(QA_CHILD_STDOUT_MAX_BYTES + 1, "x"));

337-

child.emit("exit", 0);

364+

child.emit("close", 0);

338365339366

await expect(pending).rejects.toThrow(

340367

`qa cli stdout exceeded ${QA_CHILD_STDOUT_MAX_BYTES} bytes; refusing to parse truncated output`,

@@ -365,7 +392,7 @@ describe("qa suite runtime agent process helpers", () => {

365392

"data",

366393

Buffer.from(`head-marker\n${"x".repeat(QA_CHILD_STDERR_TAIL_BYTES)}\ntail-marker`),

367394

);

368-

child.emit("exit", 1);

395+

child.emit("close", 1);

369396370397

const error = await pending.catch((value: unknown) => value);

371398

expect(error).toBeInstanceOf(Error);