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

推荐订阅源

Y
Y Combinator Blog
GbyAI
GbyAI
爱范儿
爱范儿
H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
Check Point Blog
M
MIT News - Artificial intelligence
量子位
宝玉的分享
宝玉的分享
MongoDB | Blog
MongoDB | Blog
V
Visual Studio Blog
罗磊的独立博客
F
Fortinet All Blogs
美团技术团队
博客园_首页
博客园 - 【当耐特】
L
LangChain Blog
月光博客
月光博客
腾讯CDC
The Cloudflare Blog
D
Docker
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
奇客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
fix(testing): fail plugin gauntlet on failed qa summaries...
vincentkoc · 2026-06-02 · via Recent Commits to openclaw:main

@@ -795,6 +795,91 @@ setInterval(() => {}, 1000);

795795

).resolves.toBe("alpha,qa-channel,qa-lab,qa-matrix");

796796

});

797797798+

it("fails successful QA chunks whose summary reports failed scenarios", async () => {

799+

const outputDir = path.join(repoRoot, "artifacts");

800+

const qaSummaryJson = JSON.stringify({

801+

counts: { failed: 1, passed: 1, total: 2 },

802+

metrics: { gatewayCpuCoreRatio: 0, wallMs: 1 },

803+

run: {

804+

concurrency: 1,

805+

fastMode: false,

806+

finishedAt: "2026-05-30T00:00:01.000Z",

807+

primaryModel: "mock-openai/gpt-5.5",

808+

primaryModelName: "gpt-5.5",

809+

primaryProvider: "mock-openai",

810+

providerMode: "mock-openai",

811+

scenarioIds: ["channel-chat-baseline", "gateway-restart-inflight-run"],

812+

startedAt: "2026-05-30T00:00:00.000Z",

813+

},

814+

scenarios: [

815+

{ name: "channel-chat-baseline", status: "pass", steps: [] },

816+

{ name: "gateway-restart-inflight-run", status: "fail", steps: [] },

817+

],

818+

});

819+

await writeManifest("alpha", "openclaw.plugin.json", JSON.stringify({ id: "alpha" }));

820+

await fs.writeFile(path.join(repoRoot, "extensions", "alpha", "index.ts"), "export {};\n");

821+

await fs.mkdir(path.join(repoRoot, "scripts"), { recursive: true });

822+

await fs.writeFile(

823+

path.join(repoRoot, "scripts", "run-node.mjs"),

824+

[

825+

'import fs from "node:fs";',

826+

'import path from "node:path";',

827+

'const outputArgIndex = process.argv.indexOf("--output-dir");',

828+

"const outputDir = path.resolve(process.cwd(), process.argv[outputArgIndex + 1]);",

829+

"fs.mkdirSync(outputDir, { recursive: true });",

830+

`fs.writeFileSync(path.join(outputDir, "qa-suite-summary.json"), ${JSON.stringify(qaSummaryJson)}, "utf8");`,

831+

].join("\n"),

832+

"utf8",

833+

);

834+835+

const result = spawnSync(

836+

process.execPath,

837+

[

838+

path.resolve("scripts/check-plugin-gateway-gauntlet.mjs"),

839+

"--repo-root",

840+

repoRoot,

841+

"--output-dir",

842+

outputDir,

843+

"--skip-prebuild",

844+

"--skip-lifecycle",

845+

"--skip-slash-help",

846+

"--plugin",

847+

"alpha",

848+

"--qa-scenario",

849+

"channel-chat-baseline",

850+

"--qa-scenario",

851+

"gateway-restart-inflight-run",

852+

],

853+

{

854+

cwd: path.resolve("."),

855+

encoding: "utf8",

856+

},

857+

);

858+859+

expect(result.status, result.stdout).toBe(1);

860+

expect(result.stdout).toContain("diagnostic=qa-summary-failed-scenarios");

861+

const summary = JSON.parse(

862+

await fs.readFile(path.join(outputDir, "plugin-gateway-gauntlet-summary.json"), "utf8"),

863+

);

864+

expect(summary.failures).toEqual([

865+

expect.objectContaining({

866+

diagnosticDetail: "QA suite reported 1 failed scenario(s)",

867+

diagnosticFailure: "qa-summary-failed-scenarios",

868+

phase: "qa:rpc",

869+

pluginId: "alpha",

870+

status: 0,

871+

}),

872+

]);

873+

expect(summary.rows[0]).toEqual(

874+

expect.objectContaining({

875+

diagnosticFailure: "qa-summary-failed-scenarios",

876+

qaMetrics: { gatewayCpuCoreRatio: 0, wallMs: 1 },

877+

}),

878+

);

879+

expect(summary.isolatedRunRootPreserved).toBe(true);

880+

await fs.rm(summary.isolatedRunRoot, { recursive: true, force: true });

881+

});

882+798883

it("fails successful QA chunks that do not write the requested summary", async () => {

799884

const outputDir = path.join(repoRoot, "artifacts");

800885

await writeManifest("alpha", "openclaw.plugin.json", JSON.stringify({ id: "alpha" }));