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

推荐订阅源

GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
博客园 - 【当耐特】
D
Docker
Y
Y Combinator Blog
L
LangChain Blog
博客园 - 三生石上(FineUI控件)
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
F
Fortinet All Blogs
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
B
Blog
The GitHub Blog
The GitHub Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
爱范儿
爱范儿
A
About on SuperTechFans
量子位
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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(bench): force taskkill gateway bench trees on windows...
vincentkoc · 2026-06-21 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -153,6 +153,55 @@ export function registerStopChildBehaviorTests<TChild>(params: {

153153

expect(child.unref).toHaveBeenCalledOnce();

154154

});

155155
156+

it("force-kills Windows child process trees when graceful taskkill fails", async () => {

157+

const child = new EventEmitter() as EventEmitter & {

158+

exitCode: number | null;

159+

kill: ReturnType<typeof vi.fn>;

160+

pid: number;

161+

signalCode: NodeJS.Signals | null;

162+

stderr: { destroy: ReturnType<typeof vi.fn> };

163+

stdin: { destroy: ReturnType<typeof vi.fn> };

164+

stdout: { destroy: ReturnType<typeof vi.fn> };

165+

unref: ReturnType<typeof vi.fn>;

166+

};

167+

child.exitCode = null;

168+

child.kill = vi.fn(() => true);

169+

child.pid = 4450;

170+

child.signalCode = null;

171+

child.stderr = { destroy: vi.fn() };

172+

child.stdin = { destroy: vi.fn() };

173+

child.stdout = { destroy: vi.fn() };

174+

child.unref = vi.fn();

175+

const runTaskkill = vi

176+

.fn()

177+

.mockReturnValueOnce({ error: undefined, status: 1 })

178+

.mockReturnValueOnce({ error: undefined, status: 0 })

179+

.mockReturnValueOnce({ error: undefined, status: 0 });

180+
181+

await expect(

182+

params.stopChild(child as unknown as TChild, {

183+

killGraceMs: 1,

184+

platform: "win32",

185+

runTaskkill,

186+

teardownGraceMs: 1,

187+

}),

188+

).resolves.toEqual({

189+

exitedBeforeTeardown: false,

190+

exitCode: null,

191+

signal: "SIGKILL",

192+

});

193+

expect(runTaskkill).toHaveBeenNthCalledWith(1, "taskkill", ["/PID", "4450", "/T"], {

194+

stdio: "ignore",

195+

});

196+

expect(runTaskkill).toHaveBeenNthCalledWith(2, "taskkill", ["/PID", "4450", "/T", "/F"], {

197+

stdio: "ignore",

198+

});

199+

expect(runTaskkill).toHaveBeenNthCalledWith(3, "taskkill", ["/PID", "4450", "/T", "/F"], {

200+

stdio: "ignore",

201+

});

202+

expect(child.kill).not.toHaveBeenCalled();

203+

});

204+
156205

it.skipIf(process.platform === "win32")(

157206

"preserves pre-teardown wrapper exits while cleaning the process group",

158207

async () => {