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

推荐订阅源

V
Visual Studio Blog
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
MyScale Blog
MyScale Blog
H
Help Net Security
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏

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(test): fail empty gateway startup samples · openclaw/...
vincentkoc · 2026-05-24 · via Recent Commits to openclaw:main

@@ -73,6 +73,12 @@ type CaseResult = {

7373

};

7474

};

757576+

type BenchmarkFailure = {

77+

id: string;

78+

reason: string;

79+

sampleIndex: number;

80+

};

81+7682

type PluginFixtureResult = {

7783

pluginIds: string[];

7884

pluginsDir: string;

@@ -372,6 +378,58 @@ function summarizeCase(benchCase: GatewayBenchCase, samples: GatewaySample[]): C

372378

};

373379

}

374380381+

function collectResultFailures(

382+

results: CaseResult[],

383+

options: { processMetricsRequired?: boolean } = {},

384+

): BenchmarkFailure[] {

385+

const processMetricsRequired = options.processMetricsRequired ?? process.platform !== "win32";

386+

const failures: BenchmarkFailure[] = [];

387+

for (const result of results) {

388+

result.samples.forEach((sample, index) => {

389+

const missing: string[] = [];

390+

if (sample.healthz.status !== 200 || sample.healthz.ms == null) {

391+

missing.push("/healthz");

392+

}

393+

if (sample.readyz.status !== 200 || sample.readyz.ms == null) {

394+

missing.push("/readyz");

395+

}

396+

if (processMetricsRequired) {

397+

if (sample.cpuMs == null || sample.cpuCoreRatio == null) {

398+

missing.push("cpu");

399+

}

400+

if (sample.maxRssMb == null) {

401+

missing.push("rss");

402+

}

403+

}

404+

if (missing.length > 0) {

405+

failures.push({

406+

id: result.id,

407+

reason: `missing ${missing.join(", ")}`,

408+

sampleIndex: index + 1,

409+

});

410+

}

411+

});

412+

}

413+

return failures;

414+

}

415+416+

function printBenchmarkFailures(failures: BenchmarkFailure[]): void {

417+

if (failures.length === 0) {

418+

return;

419+

}

420+

console.error(

421+

`[gateway-startup-bench] failed: ${failures.length} sample(s) did not produce ready probes or process metrics`,

422+

);

423+

for (const failure of failures.slice(0, 8)) {

424+

console.error(

425+

`[gateway-startup-bench] ${failure.id} run ${failure.sampleIndex}: ${failure.reason}`,

426+

);

427+

}

428+

if (failures.length > 8) {

429+

console.error(`[gateway-startup-bench] ${failures.length - 8} more sample failure(s) omitted`);

430+

}

431+

}

432+375433

function formatMs(value: number | null): string {

376434

if (value == null) {

377435

return "n/a";

@@ -1029,16 +1087,23 @@ async function main() {

10291087

}

10301088

if (options.json) {

10311089

console.log(JSON.stringify(payload, null, 2));

1032-

return;

1090+

} else {

1091+

for (const result of results) {

1092+

printResult(result);

1093+

}

10331094

}

1034-

for (const result of results) {

1035-

printResult(result);

1095+1096+

const failures = collectResultFailures(results);

1097+

if (failures.length > 0) {

1098+

printBenchmarkFailures(failures);

1099+

process.exitCode = 1;

10361100

}

10371101

}

1038110210391103

export const testing = {

10401104

classifyGatewayReadyLog,

10411105

classifyProbeErrorKind,

1106+

collectResultFailures,

10421107

collectStartupTrace,

10431108

parseNonNegativeInt,

10441109

parsePositiveInt,