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

推荐订阅源

博客园 - 叶小钗
D
Docker
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
U
Unit 42
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
V
Visual Studio Blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
Recent Announcements
Recent Announcements
GbyAI
GbyAI
T
Tailwind CSS Blog
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
L
LangChain Blog
A
About on SuperTechFans
M
MIT News - Artificial intelligence
B
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(qa): fail closed on skipped suite summaries · opencla...
vincentkoc · 2026-06-07 · via Recent Commits to openclaw:main

@@ -450,6 +450,14 @@ describe("qa cli runtime", () => {

450450

it("keeps telegram exit code clear when --allow-failures is set", async () => {

451451

const priorExitCode = process.exitCode;

452452

process.exitCode = undefined;

453+

await fs.writeFile(

454+

telegramSummaryPath,

455+

JSON.stringify({

456+

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

457+

scenarios: [{ status: "fail" }],

458+

}),

459+

"utf8",

460+

);

453461

runTelegramQaLive.mockResolvedValueOnce({

454462

outputDir: telegramArtifactsDir,

455463

reportPath: path.join(telegramArtifactsDir, "report.md"),

@@ -534,6 +542,39 @@ describe("qa cli runtime", () => {

534542

}

535543

});

536544545+

it("sets a failing exit code when host suite scenarios are skipped", async () => {

546+

const priorExitCode = process.exitCode;

547+

process.exitCode = undefined;

548+

await fs.writeFile(

549+

suiteSummaryPath,

550+

JSON.stringify({

551+

counts: {

552+

total: 1,

553+

passed: 0,

554+

failed: 0,

555+

skipped: 1,

556+

},

557+

scenarios: [{ name: "channel chat baseline", status: "skip" }],

558+

}),

559+

"utf8",

560+

);

561+

runQaSuiteFromRuntime.mockResolvedValueOnce({

562+

watchUrl: "http://127.0.0.1:43124",

563+

reportPath: suiteReportPath,

564+

summaryPath: suiteSummaryPath,

565+

scenarios: [],

566+

});

567+568+

try {

569+

await runQaSuiteCommand({

570+

repoRoot: "/tmp/openclaw-repo",

571+

});

572+

expect(process.exitCode).toBe(1);

573+

} finally {

574+

process.exitCode = priorExitCode;

575+

}

576+

});

577+537578

it("keeps host suite exit code clear when --allow-failures is set", async () => {

538579

const priorExitCode = process.exitCode;

539580

process.exitCode = undefined;

@@ -720,7 +761,7 @@ describe("qa cli runtime", () => {

720761

repoRoot: "/tmp/openclaw-repo",

721762

preflight: true,

722763

}),

723-

).rejects.toThrow("QA parity preflight failed with 1 failing scenario.");

764+

).rejects.toThrow("QA parity preflight failed with 1 failing or skipped scenario.");

724765

});

725766726767

it("keeps parity preflight exit code clear when --allow-failures is set", async () => {

@@ -1503,6 +1544,46 @@ describe("qa cli runtime", () => {

15031544

}

15041545

});

150515461547+

it("sets a failing exit code when multipass summary reports skipped scenarios", async () => {

1548+

const repoRoot = await fs.mkdtemp(path.join(os.tmpdir(), "qa-multipass-summary-"));

1549+

const summaryPath = path.join(repoRoot, "qa-suite-summary.json");

1550+

await fs.writeFile(

1551+

summaryPath,

1552+

JSON.stringify({

1553+

counts: {

1554+

total: 2,

1555+

passed: 1,

1556+

failed: 0,

1557+

skipped: 1,

1558+

},

1559+

}),

1560+

"utf8",

1561+

);

1562+

runQaMultipass.mockResolvedValueOnce({

1563+

outputDir: repoRoot,

1564+

reportPath: path.join(repoRoot, "qa-suite-report.md"),

1565+

summaryPath,

1566+

hostLogPath: path.join(repoRoot, "multipass-host.log"),

1567+

bootstrapLogPath: path.join(repoRoot, "multipass-guest-bootstrap.log"),

1568+

guestScriptPath: path.join(repoRoot, "multipass-guest-run.sh"),

1569+

vmName: "openclaw-qa-test",

1570+

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

1571+

});

1572+

const priorExitCode = process.exitCode;

1573+

process.exitCode = undefined;

1574+1575+

try {

1576+

await runQaSuiteCommand({

1577+

repoRoot: "/tmp/openclaw-repo",

1578+

runner: "multipass",

1579+

});

1580+

expect(process.exitCode).toBe(1);

1581+

} finally {

1582+

process.exitCode = priorExitCode;

1583+

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

1584+

}

1585+

});

1586+15061587

it("rejects malformed multipass summary JSON", async () => {

15071588

const repoRoot = await fs.mkdtemp(path.join(os.tmpdir(), "qa-multipass-summary-"));

15081589

const summaryPath = path.join(repoRoot, "qa-suite-summary.json");

@@ -1577,7 +1658,7 @@ describe("qa cli runtime", () => {

15771658

repoRoot: "/tmp/openclaw-repo",

15781659

runner: "multipass",

15791660

}),

1580-

).rejects.toThrow("did not include counts.failed or scenarios[].status");

1661+

).rejects.toThrow("did not include counts.failed, counts.skipped, or scenarios[].status");

15811662

} finally {

15821663

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

15831664

}