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

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
Y
Y Combinator Blog
IT之家
IT之家
博客园 - 聂微东
L
LangChain Blog
爱范儿
爱范儿
H
Help Net Security
GbyAI
GbyAI
F
Fortinet All Blogs
B
Blog
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
D
DataBreaches.Net
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
宝玉的分享
宝玉的分享

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(test): clean qa report cli errors · openclaw/openclaw...
vincentkoc · 2026-06-20 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -45,12 +45,17 @@ Options:

4545

) as Options;

4646

}

4747
48-

const opts = parseArgs(process.argv.slice(2));

49-

await runQaCoverageReportCommand({

50-

...(opts.json ? { json: true } : {}),

51-

...(opts.match ? { match: opts.match } : {}),

52-

...(opts.output ? { output: opts.output } : {}),

53-

...(opts.repoRoot ? { repoRoot: opts.repoRoot } : {}),

54-

...(opts.summary ? { summary: opts.summary } : {}),

55-

...(opts.tools ? { tools: true } : {}),

56-

});

48+

try {

49+

const opts = parseArgs(process.argv.slice(2));

50+

await runQaCoverageReportCommand({

51+

...(opts.json ? { json: true } : {}),

52+

...(opts.match ? { match: opts.match } : {}),

53+

...(opts.output ? { output: opts.output } : {}),

54+

...(opts.repoRoot ? { repoRoot: opts.repoRoot } : {}),

55+

...(opts.summary ? { summary: opts.summary } : {}),

56+

...(opts.tools ? { tools: true } : {}),

57+

});

58+

} catch (error) {

59+

process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);

60+

process.exitCode = 1;

61+

}

Original file line numberDiff line numberDiff line change

@@ -54,28 +54,33 @@ Options:

5454

) as Options;

5555

}

5656
57-

const opts = parseArgs(process.argv.slice(2));

58-

if (opts.runtimeAxis) {

59-

if (!opts.summary) {

60-

throw new Error("--summary is required when --runtime-axis is set.");

57+

try {

58+

const opts = parseArgs(process.argv.slice(2));

59+

if (opts.runtimeAxis) {

60+

if (!opts.summary) {

61+

throw new Error("--summary is required when --runtime-axis is set.");

62+

}

63+

} else {

64+

if (!opts.candidateSummary) {

65+

throw new Error("--candidate-summary is required.");

66+

}

67+

if (!opts.baselineSummary) {

68+

throw new Error("--baseline-summary is required.");

69+

}

6170

}

62-

} else {

63-

if (!opts.candidateSummary) {

64-

throw new Error("--candidate-summary is required.");

65-

}

66-

if (!opts.baselineSummary) {

67-

throw new Error("--baseline-summary is required.");

68-

}

69-

}

7071
71-

await runQaParityReportCommand({

72-

...(opts.baselineSummary ? { baselineSummary: opts.baselineSummary } : {}),

73-

...(opts.candidateSummary ? { candidateSummary: opts.candidateSummary } : {}),

74-

...(opts.baselineLabel ? { baselineLabel: opts.baselineLabel } : {}),

75-

...(opts.candidateLabel ? { candidateLabel: opts.candidateLabel } : {}),

76-

...(opts.outputDir ? { outputDir: opts.outputDir } : {}),

77-

...(opts.repoRoot ? { repoRoot: opts.repoRoot } : {}),

78-

...(opts.runtimeAxis ? { runtimeAxis: opts.runtimeAxis } : {}),

79-

...(opts.summary ? { summary: opts.summary } : {}),

80-

...(opts.tokenEfficiency ? { tokenEfficiency: opts.tokenEfficiency } : {}),

81-

});

72+

await runQaParityReportCommand({

73+

...(opts.baselineSummary ? { baselineSummary: opts.baselineSummary } : {}),

74+

...(opts.candidateSummary ? { candidateSummary: opts.candidateSummary } : {}),

75+

...(opts.baselineLabel ? { baselineLabel: opts.baselineLabel } : {}),

76+

...(opts.candidateLabel ? { candidateLabel: opts.candidateLabel } : {}),

77+

...(opts.outputDir ? { outputDir: opts.outputDir } : {}),

78+

...(opts.repoRoot ? { repoRoot: opts.repoRoot } : {}),

79+

...(opts.runtimeAxis ? { runtimeAxis: opts.runtimeAxis } : {}),

80+

...(opts.summary ? { summary: opts.summary } : {}),

81+

...(opts.tokenEfficiency ? { tokenEfficiency: opts.tokenEfficiency } : {}),

82+

});

83+

} catch (error) {

84+

process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);

85+

process.exitCode = 1;

86+

}

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,72 @@

1+

// Qa report cli tests cover source entrypoint operator errors.

2+

import { spawnSync } from "node:child_process";

3+

import path from "node:path";

4+

import { describe, expect, it } from "vitest";

5+
6+

const repoRoot = path.resolve(__dirname, "../..");

7+
8+

function runSourceScript(scriptPath: string, ...args: string[]) {

9+

return spawnSync(process.execPath, ["--import", "tsx", scriptPath, ...args], {

10+

cwd: repoRoot,

11+

encoding: "utf8",

12+

});

13+

}

14+
15+

function expectNoNodeStack(stderr: string) {

16+

expect(stderr).not.toContain("Node.js");

17+

expect(stderr).not.toContain("\n at ");

18+

}

19+
20+

describe("QA report source CLIs", () => {

21+

it("prints QA coverage help without an error", () => {

22+

const result = runSourceScript("scripts/qa-coverage-report.ts", "--help");

23+
24+

expect(result.status).toBe(0);

25+

expect(result.stdout).toContain("Usage: openclaw qa coverage");

26+

expect(result.stderr).toBe("");

27+

});

28+
29+

it("prints QA parity help without an error", () => {

30+

const result = runSourceScript("scripts/qa-parity-report.ts", "--help");

31+
32+

expect(result.status).toBe(0);

33+

expect(result.stdout).toContain("Usage: openclaw qa parity-report");

34+

expect(result.stderr).toBe("");

35+

});

36+
37+

it("reports unknown QA coverage options without a Node stack trace", () => {

38+

const result = runSourceScript("scripts/qa-coverage-report.ts", "--wat");

39+
40+

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

41+

expect(result.stdout).toBe("");

42+

expect(result.stderr.trim()).toBe("Unknown qa coverage option: --wat");

43+

expectNoNodeStack(result.stderr);

44+

});

45+
46+

it("reports unknown QA parity options without a Node stack trace", () => {

47+

const result = runSourceScript("scripts/qa-parity-report.ts", "--wat");

48+
49+

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

50+

expect(result.stdout).toBe("");

51+

expect(result.stderr.trim()).toBe("Unknown qa parity-report option: --wat");

52+

expectNoNodeStack(result.stderr);

53+

});

54+
55+

it("reports missing QA parity inputs without a Node stack trace", () => {

56+

const result = runSourceScript("scripts/qa-parity-report.ts");

57+
58+

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

59+

expect(result.stdout).toBe("");

60+

expect(result.stderr.trim()).toBe("--candidate-summary is required.");

61+

expectNoNodeStack(result.stderr);

62+

});

63+
64+

it("reports missing runtime-axis QA parity summary without a Node stack trace", () => {

65+

const result = runSourceScript("scripts/qa-parity-report.ts", "--runtime-axis");

66+
67+

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

68+

expect(result.stdout).toBe("");

69+

expect(result.stderr.trim()).toBe("--summary is required when --runtime-axis is set.");

70+

expectNoNodeStack(result.stderr);

71+

});

72+

});