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

推荐订阅源

C
Check Point Blog
有赞技术团队
有赞技术团队
博客园 - 三生石上(FineUI控件)
博客园_首页
博客园 - 【当耐特】
WordPress大学
WordPress大学
月光博客
月光博客
博客园 - 叶小钗
S
SegmentFault 最新的问题
雷峰网
雷峰网
H
Help Net Security
宝玉的分享
宝玉的分享
A
About on SuperTechFans
IT之家
IT之家
J
Java Code Geeks
Hugging Face - Blog
Hugging Face - Blog
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Hackread – Cybersecurity News, Data Breaches, AI and More
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(diagnostics): flush OTel trace batches · openclaw/ope...
vincentkoc · 2026-05-27 · via Recent Commits to openclaw:main

@@ -923,6 +923,47 @@ function isLatestGenAiModelCallSpan(span: CapturedSpan): boolean {

923923

);

924924

}

925925926+

async function delay(ms: number): Promise<void> {

927+

await new Promise((resolve) => setTimeout(resolve, ms));

928+

}

929+930+

function hasRequiredSmokeSignals(receiver: ReturnType<typeof startLocalOtlpReceiver>): boolean {

931+

const spanNames = new Set(receiver.capturedSpans.map((span) => span.name));

932+

const metricNames = new Set(receiver.capturedMetrics.map((metric) => metric.name));

933+

return (

934+

REQUIRED_SPAN_NAMES.every((name) => spanNames.has(name)) &&

935+

receiver.capturedSpans.some(isLatestGenAiModelCallSpan) &&

936+

REQUIRED_METRIC_NAMES.every((name) => metricNames.has(name)) &&

937+

receiver.capturedLogRecords.length > 0 &&

938+

["traces", "metrics", "logs"].every((signal) =>

939+

receiver.capturedRequests.some((request) => request.signal === signal)

940+

)

941+

);

942+

}

943+944+

async function waitForExpectedTelemetry(

945+

receiver: ReturnType<typeof startLocalOtlpReceiver>,

946+

timeoutMs: number,

947+

): Promise<void> {

948+

const deadline = Date.now() + timeoutMs;

949+

while (Date.now() < deadline) {

950+

if (hasRequiredSmokeSignals(receiver)) {

951+

return;

952+

}

953+

await delay(250);

954+

}

955+

}

956+957+

function formatBoundedList(values: readonly string[], maxItems: number): string {

958+

if (values.length === 0) {

959+

return "(none)";

960+

}

961+

const visible = values.slice(0, maxItems);

962+

const suffix =

963+

values.length > visible.length ? `, ... (${values.length - visible.length} more)` : "";

964+

return `${visible.join(", ")}${suffix}`;

965+

}

966+926967

function assertSmoke(params: {

927968

childExitCode: number;

928969

disallowedBodyNeedles: string[];

@@ -1075,7 +1116,11 @@ async function main() {

10751116

child.stdout?.on("data", (chunk) => process.stdout.write(chunk));

10761117

child.stderr?.on("data", (chunk) => process.stderr.write(chunk));

10771118

childExitCode = await waitForChild(child);

1078-

await new Promise((resolve) => setTimeout(resolve, 3000));

1119+

if (childExitCode === 0) {

1120+

await waitForExpectedTelemetry(receiver, 15_000);

1121+

} else {

1122+

await delay(3000);

1123+

}

10791124

} finally {

10801125

try {

10811126

await collector?.close();

@@ -1136,6 +1181,20 @@ async function main() {

11361181

for (const failure of assertion.failures) {

11371182

process.stderr.write(`qa-otel-smoke: ${failure}\n`);

11381183

}

1184+

process.stderr.write(

1185+

`qa-otel-smoke: captured request counts traces=${assertion.signalRequestCounts.traces} ` +

1186+

`metrics=${assertion.signalRequestCounts.metrics} logs=${assertion.signalRequestCounts.logs}\n`,

1187+

);

1188+

process.stderr.write(

1189+

`qa-otel-smoke: captured decoded counts spans=${receiver.capturedSpans.length} ` +

1190+

`metrics=${receiver.capturedMetrics.length} logs=${receiver.capturedLogRecords.length}\n`,

1191+

);

1192+

process.stderr.write(

1193+

`qa-otel-smoke: captured span names: ${formatBoundedList(assertion.spanNames, 40)}\n`,

1194+

);

1195+

process.stderr.write(

1196+

`qa-otel-smoke: captured metric names: ${formatBoundedList(assertion.metricNames, 40)}\n`,

1197+

);

11391198

for (const [signal, contexts] of Object.entries(assertion.leakContexts)) {

11401199

for (const context of contexts ?? []) {

11411200

process.stderr.write(`qa-otel-smoke: ${signal} leak context: ${context}\n`);