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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
aimingoo的专栏
aimingoo的专栏
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
D
DataBreaches.Net
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
Recent Announcements
Recent Announcements
Jina AI
Jina AI
G
Google Developers Blog
腾讯CDC
博客园_首页
博客园 - 【当耐特】

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(qa): add qa run --profile and unified output summary...
RomneyDa · 2026-06-15 · via Recent Commits to openclaw:main

@@ -83,6 +83,7 @@ import {

8383

runQaJsonlReplayCommand,

8484

runQaManualLaneCommand,

8585

runQaParityReportCommand,

86+

runQaProfileCommand,

8687

runQaSuiteCommand,

8788

} from "./cli.runtime.js";

8889

import { QaSuiteInfraError } from "./errors.js";

@@ -139,21 +140,22 @@ function flowSuiteRuntimeResult(params: {

139140

};

140141

}

141142142-

function testFileSuiteRuntimeResult(params: {

143+

function unifiedSuiteRuntimeResult(params: {

143144

evidencePath: string;

144-

executionKind?: "vitest" | "playwright";

145145

outputDir: string;

146146

reportPath: string;

147-

results?: unknown[];

147+

summaryPath: string;

148+

scenarios?: unknown[];

148149

}) {

149150

return {

150-

executionKind: params.executionKind ?? "playwright",

151+

executionKind: "suite",

151152

result: {

152153

outputDir: params.outputDir,

153-

executionKind: params.executionKind ?? "playwright",

154154

reportPath: params.reportPath,

155155

evidencePath: params.evidencePath,

156-

results: params.results ?? [{ status: "pass" }],

156+

summaryPath: params.summaryPath,

157+

report: "# QA Suite Report\n",

158+

scenarios: params.scenarios ?? [],

157159

},

158160

};

159161

}

@@ -301,9 +303,10 @@ describe("qa cli runtime", () => {

301303

const evidencePath = path.join(suiteArtifactsDir, "qa-evidence.json");

302304

await fs.writeFile(evidencePath, JSON.stringify({ entries: [] }), "utf8");

303305

runQaSuite.mockResolvedValueOnce(

304-

testFileSuiteRuntimeResult({

306+

unifiedSuiteRuntimeResult({

305307

outputDir: suiteArtifactsDir,

306308

reportPath: suiteReportPath,

309+

summaryPath: suiteSummaryPath,

307310

evidencePath,

308311

}),

309312

);

@@ -325,6 +328,7 @@ describe("qa cli runtime", () => {

325328

scenarioIds: ["control-ui-chat-flow-playwright"],

326329

});

327330

expectWriteContains(stdoutWrite, `QA suite evidence: ${evidencePath}`);

331+

expectWriteContains(stdoutWrite, `QA suite summary: ${suiteSummaryPath}`);

328332

});

329333330334

it("rejects host-only resource options for Playwright scenarios", async () => {

@@ -339,6 +343,75 @@ describe("qa cli runtime", () => {

339343

expect(runQaSuite).not.toHaveBeenCalled();

340344

});

341345346+

it("dispatches a taxonomy-backed profile category through the suite runner", async () => {

347+

const previousProfile = process.env.OPENCLAW_QA_PROFILE;

348+

process.env.OPENCLAW_QA_PROFILE = "release";

349+

try {

350+

runQaSuite.mockImplementationOnce(async () => {

351+

expect(process.env.OPENCLAW_QA_PROFILE).toBe("smoke-ci");

352+

return flowSuiteRuntimeResult({

353+

reportPath: suiteReportPath,

354+

summaryPath: suiteSummaryPath,

355+

});

356+

});

357+358+

await runQaProfileCommand({

359+

repoRoot: "/tmp/openclaw-repo",

360+

outputDir: ".artifacts/qa-e2e/smoke-ci",

361+

profile: "smoke-ci",

362+

surface: "agent-runtime-and-provider-execution",

363+

category: "agent-runtime-and-provider-execution.agent-turn-execution",

364+

transportId: "qa-channel",

365+

fastMode: true,

366+

concurrency: 2,

367+

allowFailures: true,

368+

});

369+370+

const suiteArgs = mockFirstObjectArg(runQaSuite);

371+

expectFields(suiteArgs, {

372+

repoRoot: path.resolve("/tmp/openclaw-repo"),

373+

outputDir: path.resolve("/tmp/openclaw-repo", ".artifacts/qa-e2e/smoke-ci"),

374+

transportId: "qa-channel",

375+

providerMode: "mock-openai",

376+

fastMode: true,

377+

concurrency: 2,

378+

});

379+

expect(suiteArgs.scenarioIds).toEqual(expect.arrayContaining(["dm-chat-baseline"]));

380+

expect(suiteArgs.scenarioIds).not.toContain("thinking-slash-model-remap");

381+

expect(process.env.OPENCLAW_QA_PROFILE).toBe("release");

382+

expectWriteContains(stdoutWrite, "QA run profile: smoke-ci; categories: 1; scenarios:");

383+

} finally {

384+

if (previousProfile === undefined) {

385+

delete process.env.OPENCLAW_QA_PROFILE;

386+

} else {

387+

process.env.OPENCLAW_QA_PROFILE = previousProfile;

388+

}

389+

}

390+

});

391+392+

it("rejects qa profile runs that do not match taxonomy categories", async () => {

393+

await expect(

394+

runQaProfileCommand({

395+

repoRoot: "/tmp/openclaw-repo",

396+

profile: "smoke-ci",

397+

surface: "unknown-surface",

398+

}),

399+

).rejects.toThrow(

400+

"qa run did not find taxonomy categories for --qa-profile smoke-ci --surface unknown-surface.",

401+

);

402+

expect(runQaSuite).not.toHaveBeenCalled();

403+

});

404+405+

it("rejects qa profile runs whose profile is not declared in taxonomy.yaml", async () => {

406+

await expect(

407+

runQaProfileCommand({

408+

repoRoot: "/tmp/openclaw-repo",

409+

profile: "nightly",

410+

}),

411+

).rejects.toThrow('--qa-profile must be one of smoke-ci, release, got "nightly".');

412+

expect(runQaSuite).not.toHaveBeenCalled();

413+

});

414+342415

it("resolves suite repo-root-relative paths before dispatching", async () => {

343416

await runQaSuiteCommand({

344417

repoRoot: "/tmp/openclaw-repo",