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

推荐订阅源

Martin Fowler
Martin Fowler
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
博客园_首页
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
美团技术团队
IT之家
IT之家
罗磊的独立博客
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
月光博客
月光博客
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
博客园 - 叶小钗
M
MIT News - Artificial intelligence
B
Blog RSS Feed
有赞技术团队
有赞技术团队
Y
Y Combinator 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(qa): reject loose tasklist RSS samples · openclaw/ope...
vincentkoc · 2026-06-17 · via Recent Commits to openclaw:main

@@ -1418,6 +1418,103 @@ describe("kitchen-sink RPC process sampling", () => {

14181418

]);

14191419

});

142014201421+

it("falls back to strict tasklist RSS when Windows PowerShell sampling fails", async () => {

1422+

const calls: string[] = [];

1423+

const sample = await sampleWindowsProcessByPort(19675, {

1424+

runCommand: async (command: string) => {

1425+

calls.push(command);

1426+

if (command === "netstat.exe") {

1427+

return {

1428+

stdout: [

1429+

" Proto Local Address Foreign Address State PID",

1430+

" TCP 127.0.0.1:19675 0.0.0.0:0 LISTENING 6789",

1431+

].join("\r\n"),

1432+

stderr: "",

1433+

};

1434+

}

1435+

if (command === "powershell.exe" || command === "powershell") {

1436+

throw new Error("powershell unavailable");

1437+

}

1438+

if (command === "tasklist.exe") {

1439+

return {

1440+

stdout: '"node.exe","6789","Console","1","262,144 K"',

1441+

stderr: "",

1442+

};

1443+

}

1444+

throw new Error(`unexpected command ${command}`);

1445+

},

1446+

});

1447+1448+

expect(sample).toEqual({

1449+

cpuPercent: null,

1450+

cpuSeconds: null,

1451+

processId: 6789,

1452+

rssMiB: 256,

1453+

});

1454+

expect(calls).toEqual(["netstat.exe", "powershell.exe", "powershell", "tasklist.exe"]);

1455+

});

1456+1457+

it("falls back to the known Windows pid when tasklist reports malformed pid text", async () => {

1458+

const sample = await sampleWindowsProcessByPort(19675, {

1459+

runCommand: async (command: string) => {

1460+

if (command === "netstat.exe") {

1461+

return {

1462+

stdout: [

1463+

" Proto Local Address Foreign Address State PID",

1464+

" TCP 127.0.0.1:19675 0.0.0.0:0 LISTENING 6789",

1465+

].join("\r\n"),

1466+

stderr: "",

1467+

};

1468+

}

1469+

if (command === "powershell.exe" || command === "powershell") {

1470+

throw new Error("powershell unavailable");

1471+

}

1472+

if (command === "tasklist.exe") {

1473+

return {

1474+

stdout: '"node.exe","9999x","Console","1","262,144 K"',

1475+

stderr: "",

1476+

};

1477+

}

1478+

throw new Error(`unexpected command ${command}`);

1479+

},

1480+

});

1481+1482+

expect(sample).toEqual({

1483+

cpuPercent: null,

1484+

cpuSeconds: null,

1485+

processId: 6789,

1486+

rssMiB: 256,

1487+

});

1488+

});

1489+1490+

it("rejects malformed tasklist RSS instead of stripping digits", async () => {

1491+

const sample = await sampleWindowsProcessByPort(19675, {

1492+

runCommand: async (command: string) => {

1493+

if (command === "netstat.exe") {

1494+

return {

1495+

stdout: [

1496+

" Proto Local Address Foreign Address State PID",

1497+

" TCP 127.0.0.1:19675 0.0.0.0:0 LISTENING 6789",

1498+

].join("\r\n"),

1499+

stderr: "",

1500+

};

1501+

}

1502+

if (command === "powershell.exe" || command === "powershell") {

1503+

throw new Error("powershell unavailable");

1504+

}

1505+

if (command === "tasklist.exe") {

1506+

return {

1507+

stdout: '"node.exe","6789","Console","1","262x144 K"',

1508+

stderr: "",

1509+

};

1510+

}

1511+

throw new Error(`unexpected command ${command}`);

1512+

},

1513+

});

1514+1515+

expect(sample).toBeNull();

1516+

});

1517+14211518

it("samples direct POSIX gateway RSS with descendants", async () => {

14221519

const sample = await sampleProcess(4321, {

14231520

platform: "linux",