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

推荐订阅源

WordPress大学
WordPress大学
M
MIT News - Artificial intelligence
MyScale Blog
MyScale Blog
博客园_首页
G
Google Developers Blog
博客园 - 【当耐特】
美团技术团队
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
Vercel News
Vercel News
小众软件
小众软件
博客园 - 司徒正美
雷峰网
雷峰网
T
Tailwind CSS Blog
V
V2EX
博客园 - 三生石上(FineUI控件)
F
Fortinet All Blogs
罗磊的独立博客
量子位
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - 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(scripts): fail gauntlet on missing qa summaries · ope...
vincentkoc · 2026-05-31 · via Recent Commits to openclaw:main

@@ -41,6 +41,25 @@ describe("plugin gateway gauntlet helpers", () => {

4141

await fs.writeFile(path.join(dir, fileName), source, "utf8");

4242

}

434344+

function minimalQaSuiteSummary(metrics: Record<string, number>) {

45+

return {

46+

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

47+

metrics,

48+

run: {

49+

concurrency: 1,

50+

fastMode: false,

51+

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

52+

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

53+

primaryModelName: "gpt-5.5",

54+

primaryProvider: "mock-openai",

55+

providerMode: "mock-openai",

56+

scenarioIds: ["channel-chat-baseline"],

57+

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

58+

},

59+

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

60+

};

61+

}

62+4463

it("stops parsing options after the argument terminator", () => {

4564

expect(parseArgs(["--plugin", "telegram", "--", "--plugin", "discord"])).toMatchObject({

4665

pluginIds: ["telegram"],

@@ -645,6 +664,9 @@ describe("plugin gateway gauntlet helpers", () => {

645664646665

it("carries bounded build ids into QA run-node chunks", async () => {

647666

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

667+

const qaSummaryJson = JSON.stringify(

668+

minimalQaSuiteSummary({ gatewayCpuCoreRatio: 0, wallMs: 1 }),

669+

);

648670

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

649671

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

650672

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

@@ -657,7 +679,7 @@ describe("plugin gateway gauntlet helpers", () => {

657679

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

658680

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

659681

'fs.writeFileSync(path.join(outputDir, "env.txt"), process.env.OPENCLAW_BUNDLED_PLUGIN_BUILD_IDS ?? "", "utf8");',

660-

'fs.writeFileSync(path.join(outputDir, "qa-suite-summary.json"), JSON.stringify({ metrics: { wallMs: 1, gatewayCpuCoreRatio: 0 } }), "utf8");',

682+

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

661683

].join("\n"),

662684

"utf8",

663685

);

@@ -689,4 +711,125 @@ describe("plugin gateway gauntlet helpers", () => {

689711

fs.readFile(path.join(outputDir, "qa-suite", "chunk-00", "env.txt"), "utf8"),

690712

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

691713

});

714+715+

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

716+

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

717+

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

718+

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

719+

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

720+

await fs.writeFile(

721+

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

722+

[

723+

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

724+

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

725+

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

726+

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

727+

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

728+

'console.log("fake QA completed without writing qa-suite-summary.json");',

729+

].join("\n"),

730+

"utf8",

731+

);

732+733+

const result = spawnSync(

734+

process.execPath,

735+

[

736+

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

737+

"--repo-root",

738+

repoRoot,

739+

"--output-dir",

740+

outputDir,

741+

"--skip-prebuild",

742+

"--skip-lifecycle",

743+

"--skip-slash-help",

744+

"--plugin",

745+

"alpha",

746+

"--qa-scenario",

747+

"channel-chat-baseline",

748+

],

749+

{

750+

cwd: path.resolve("."),

751+

encoding: "utf8",

752+

},

753+

);

754+755+

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

756+

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

757+

const summary = JSON.parse(

758+

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

759+

);

760+

expect(summary.failures).toEqual([

761+

expect.objectContaining({

762+

diagnosticFailure: "qa-summary-missing",

763+

phase: "qa:rpc",

764+

pluginId: "alpha",

765+

status: 0,

766+

}),

767+

]);

768+

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

769+

expect.objectContaining({

770+

diagnosticFailure: "qa-summary-missing",

771+

qaSummaryPath: path.join(outputDir, "qa-suite", "chunk-00", "qa-suite-summary.json"),

772+

}),

773+

);

774+

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

775+

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

776+

});

777+778+

it("fails successful QA chunks that write unusable summary JSON", async () => {

779+

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

780+

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

781+

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

782+

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

783+

await fs.writeFile(

784+

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

785+

[

786+

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

787+

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

788+

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

789+

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

790+

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

791+

'fs.writeFileSync(path.join(outputDir, "qa-suite-summary.json"), "{}", "utf8");',

792+

].join("\n"),

793+

"utf8",

794+

);

795+796+

const result = spawnSync(

797+

process.execPath,

798+

[

799+

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

800+

"--repo-root",

801+

repoRoot,

802+

"--output-dir",

803+

outputDir,

804+

"--skip-prebuild",

805+

"--skip-lifecycle",

806+

"--skip-slash-help",

807+

"--plugin",

808+

"alpha",

809+

"--qa-scenario",

810+

"channel-chat-baseline",

811+

],

812+

{

813+

cwd: path.resolve("."),

814+

encoding: "utf8",

815+

},

816+

);

817+818+

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

819+

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

820+

const summary = JSON.parse(

821+

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

822+

);

823+

expect(summary.failures).toEqual([

824+

expect.objectContaining({

825+

diagnosticDetail: "QA suite summary missing scenarios array",

826+

diagnosticFailure: "qa-summary-invalid",

827+

phase: "qa:rpc",

828+

pluginId: "alpha",

829+

status: 0,

830+

}),

831+

]);

832+

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

833+

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

834+

});

692835

});