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

推荐订阅源

IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
G
Google Developers Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 【当耐特】
腾讯CDC
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
C
Check Point Blog
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
博客园_首页
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

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
test: tighten diagnostics lifecycle parent assertions · o...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -1831,22 +1831,23 @@ describe("diagnostics-otel service", () => {

18311831

const modelSpanId = modelSpan?.spanContext.mock.results[0]?.value?.spanId;

1832183218331833

expect(telemetryState.tracer.setSpanContext).toHaveBeenCalledTimes(2);

1834-

expect(telemetryState.tracer.setSpanContext.mock.calls.map((call) => call[1])).toEqual([

1835-

expect.objectContaining({ traceId: TRACE_ID, spanId: runSpanId }),

1836-

expect.objectContaining({ traceId: TRACE_ID, spanId: modelSpanId }),

1837-

]);

1834+

const linkedSpanContexts = telemetryState.tracer.setSpanContext.mock.calls.map(

1835+

(call) => call[1] as Record<string, unknown>,

1836+

);

1837+

expect(linkedSpanContexts[0]?.traceId).toBe(TRACE_ID);

1838+

expect(linkedSpanContexts[0]?.spanId).toBe(runSpanId);

1839+

expect(linkedSpanContexts[1]?.traceId).toBe(TRACE_ID);

1840+

expect(linkedSpanContexts[1]?.spanId).toBe(modelSpanId);

1838184118391842

const parentBySpanName = Object.fromEntries(

18401843

telemetryState.tracer.startSpan.mock.calls.map((call) => [

18411844

call[0],

18421845

(call[2] as { spanContext?: { spanId?: string } } | undefined)?.spanContext?.spanId,

18431846

]),

18441847

);

1845-

expect(parentBySpanName).toMatchObject({

1846-

"openclaw.run": undefined,

1847-

"openclaw.model.call": runSpanId,

1848-

"openclaw.tool.execution": modelSpanId,

1849-

});

1848+

expect(parentBySpanName["openclaw.run"]).toBeUndefined();

1849+

expect(parentBySpanName["openclaw.model.call"]).toBe(runSpanId);

1850+

expect(parentBySpanName["openclaw.tool.execution"]).toBe(modelSpanId);

18501851

expect(toolSpan?.setStatus).toHaveBeenCalledWith({

18511852

code: 2,

18521853

message: "TypeError",

@@ -1906,15 +1907,16 @@ describe("diagnostics-otel service", () => {

19061907

(call) => call[0] === "openclaw.model.usage",

19071908

);

190819091909-

expect(telemetryState.tracer.setSpanContext).toHaveBeenCalledWith(

1910-

expect.anything(),

1911-

expect.objectContaining({ traceId: TRACE_ID, spanId: runSpanId }),

1912-

);

1910+

const linkedSpanContext = telemetryState.tracer.setSpanContext.mock.calls[0]?.[1] as

1911+

| Record<string, unknown>

1912+

| undefined;

1913+

expect(linkedSpanContext?.traceId).toBe(TRACE_ID);

1914+

expect(linkedSpanContext?.spanId).toBe(runSpanId);

19131915

expect(

19141916

(modelUsageCall?.[2] as { spanContext?: { spanId?: string } } | undefined)?.spanContext

19151917

?.spanId,

19161918

).toBe(runSpanId);

1917-

expect(runSpan?.end).toHaveBeenCalledWith(expect.any(Number));

1919+

expect(runSpan?.end.mock.calls[0]?.[0]).toBeTypeOf("number");

19181920

await service.stop?.(ctx);

19191921

});

19201922