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

推荐订阅源

Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
量子位
The Cloudflare Blog
T
The Blog of Author Tim Ferriss
博客园_首页
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
阮一峰的网络日志
阮一峰的网络日志
L
LangChain 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
test: pin cron diagnostics entries · openclaw/openclaw@7c...
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main

@@ -21,7 +21,7 @@ describe("cron run diagnostics", () => {

21212222

expect(diagnostics?.entries).toHaveLength(10);

2323

expect(diagnostics?.entries[0]?.message).toBe("entry 2");

24-

expect(diagnostics?.entries.at(-1)?.message).toMatch(/$/);

24+

expect(diagnostics?.entries.at(-1)?.message.endsWith("…")).toBe(true);

2525

expect(diagnostics?.entries.at(-1)?.message).not.toContain("sk-1234567890abcdef");

2626

expect(diagnostics?.entries.at(-1)?.truncated).toBe(true);

2727

expect(diagnostics?.summary).toHaveLength(2_000);

@@ -47,7 +47,8 @@ describe("cron run diagnostics", () => {

47474848

expect(diagnostics?.entries).toHaveLength(10);

4949

expect(diagnostics?.entries.map((entry) => entry.message)).not.toContain("tool warning 0");

50-

expect(diagnostics?.entries.at(-1)).toMatchObject({

50+

expect(diagnostics?.entries.at(-1)).toEqual({

51+

ts: 11,

5152

source: "delivery",

5253

severity: "error",

5354

message: "delivery failed",

@@ -118,8 +119,11 @@ describe("cron run diagnostics", () => {

118119

"retry limit exceeded",

119120

"SYSTEM_RUN_DENIED",

120121

]);

121-

expect(diagnostics?.entries[1]).toMatchObject({

122+

expect(diagnostics?.entries[1]).toEqual({

123+

ts: 123,

122124

source: "exec",

125+

severity: "warn",

126+

message: "stdout\nstderr failure",

123127

toolName: "exec",

124128

exitCode: 2,

125129

});

@@ -146,26 +150,30 @@ describe("cron run diagnostics", () => {

146150

});

147151148152

it("captures silent failed exec details with a fallback message", () => {

149-

const diagnostics = createCronRunDiagnosticsFromAgentResult({

150-

payloads: [

151-

{

152-

toolName: "exec",

153-

details: {

154-

status: "completed",

155-

exitCode: 2,

153+

const diagnostics = createCronRunDiagnosticsFromAgentResult(

154+

{

155+

payloads: [

156+

{

157+

toolName: "exec",

158+

details: {

159+

status: "completed",

160+

exitCode: 2,

161+

},

156162

},

157-

},

158-

],

159-

});

163+

],

164+

},

165+

{ nowMs: () => 500 },

166+

);

160167161168

expect(diagnostics?.entries).toEqual([

162-

expect.objectContaining({

169+

{

170+

ts: 500,

163171

source: "exec",

164172

severity: "warn",

165173

message: "exec failed with exit code 2",

166174

toolName: "exec",

167175

exitCode: 2,

168-

}),

176+

},

169177

]);

170178

});

171179

});