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

推荐订阅源

人人都是产品经理
人人都是产品经理
宝玉的分享
宝玉的分享
小众软件
小众软件
有赞技术团队
有赞技术团队
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
MyScale Blog
MyScale Blog
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MongoDB | Blog
MongoDB | Blog
WordPress大学
WordPress大学
J
Java Code Geeks
罗磊的独立博客
V
Visual Studio Blog
雷峰网
雷峰网
H
Help Net Security
T
The Blog of Author Tim Ferriss
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
F
Fortinet All Blogs

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 malformed kitchen sink process samples · ...
vincentkoc · 2026-06-17 · via Recent Commits to openclaw:main

@@ -1678,6 +1678,9 @@ async function samplePosixProcessWithDescendants(pid, run) {

16781678

timeoutMs: 5000,

16791679

});

16801680

const rows = parsePosixProcessRows(stdout);

1681+

if (!rows) {

1682+

return null;

1683+

}

16811684

const selected = rows.find((row) => row.processId === safePid);

16821685

if (!selected) {

16831686

return null;

@@ -1698,6 +1701,9 @@ async function samplePosixProcessTree(pid, run, commandLineNeedles) {

16981701

timeoutMs: 5000,

16991702

});

17001703

const rows = parsePosixProcessRows(stdout);

1704+

if (!rows) {

1705+

return null;

1706+

}

17011707

const descendants = collectPosixProcessTree(rows, safePid).filter(

17021708

(row) => row.processId !== safePid,

17031709

);

@@ -1729,34 +1735,36 @@ async function samplePosixProcessTree(pid, run, commandLineNeedles) {

17291735

}

1730173617311737

function parsePosixProcessRows(stdout) {

1732-

return stdout

1733-

.split(/\r?\n/u)

1734-

.map((line) => {

1735-

const match = line.match(/^\s*(\d+)\s+(\d+)\s+(\d+)\s+([0-9.]+)\s+(.*)$/u);

1736-

if (!match) {

1737-

return null;

1738-

}

1739-

const [, pidRaw, ppidRaw, rssKbRaw, cpuRaw, command] = match;

1740-

const processId = Number.parseInt(pidRaw, 10);

1741-

const parentProcessId = Number.parseInt(ppidRaw, 10);

1742-

const rssKb = Number.parseInt(rssKbRaw, 10);

1743-

const cpuPercent = parseStrictNonNegativeDecimal(cpuRaw);

1744-

if (

1745-

!Number.isInteger(processId) ||

1746-

!Number.isInteger(parentProcessId) ||

1747-

!Number.isFinite(rssKb)

1748-

) {

1749-

return null;

1750-

}

1751-

return {

1752-

processId,

1753-

parentProcessId,

1754-

rssKb,

1755-

cpuPercent,

1756-

command: command ?? "",

1757-

};

1758-

})

1759-

.filter(Boolean);

1738+

const rows = [];

1739+

for (const line of stdout.split(/\r?\n/u)) {

1740+

const match = line.match(/^\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.*)$/u);

1741+

if (!match) {

1742+

continue;

1743+

}

1744+

const [, pidRaw, ppidRaw, rssKbRaw, cpuRaw, command] = match;

1745+

if (!/^\d/u.test(pidRaw) && !/^\d/u.test(ppidRaw)) {

1746+

continue;

1747+

}

1748+

const processId = parseStrictPositiveInteger(pidRaw);

1749+

const parentProcessId = parseStrictUnsignedInteger(ppidRaw);

1750+

const rssKb = parseStrictPositiveInteger(rssKbRaw);

1751+

const cpuPercent = parseStrictNonNegativeDecimal(cpuRaw);

1752+

if (

1753+

!Number.isInteger(processId) ||

1754+

!Number.isInteger(parentProcessId) ||

1755+

!Number.isInteger(rssKb)

1756+

) {

1757+

return null;

1758+

}

1759+

rows.push({

1760+

processId,

1761+

parentProcessId,

1762+

rssKb,

1763+

cpuPercent,

1764+

command: command ?? "",

1765+

});

1766+

}

1767+

return rows;

17601768

}

1761176917621770

function parseStrictNonNegativeDecimal(raw) {

@@ -1777,6 +1785,11 @@ function parseStrictUnsignedInteger(raw) {

17771785

return Number.isSafeInteger(parsed) ? parsed : null;

17781786

}

177917871788+

function parseStrictPositiveInteger(raw) {

1789+

const parsed = parseStrictUnsignedInteger(raw);

1790+

return parsed && parsed > 0 ? parsed : null;

1791+

}

1792+17801793

function parseTasklistMemoryKiB(raw) {

17811794

const text = String(raw ?? "").trim();

17821795

const match = text.match(/^((?:0|[1-9]\d*)|(?:[1-9]\d{0,2}(?:,\d{3})+))\s*K$/iu);