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

推荐订阅源

Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
宝玉的分享
宝玉的分享
量子位
Recent Announcements
Recent Announcements
Martin Fowler
Martin Fowler
J
Java Code Geeks
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
S
SegmentFault 最新的问题
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 【当耐特】
小众软件
小众软件
The Cloudflare Blog
Y
Y Combinator Blog
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
IT之家
IT之家

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): stabilize smoke-ci scenarios · openclaw/openclaw...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main

@@ -89,6 +89,64 @@ async function makeTempRepo(prefix: string) {

8989

return repoRoot;

9090

}

919192+

async function writeScriptProducerEvidence(params: {

93+

outputDir: string;

94+

scenarioId?: string;

95+

status: "blocked" | "fail" | "pass";

96+

failureReason?: string;

97+

}) {

98+

const scenarioArtifactBase = path.join(params.outputDir, params.scenarioId ?? "scenario-script");

99+

const runRoot = path.join(scenarioArtifactBase, "run-1");

100+

await fs.mkdir(runRoot, { recursive: true });

101+

await fs.writeFile(

102+

path.join(runRoot, "qa-evidence.json"),

103+

`${JSON.stringify(

104+

{

105+

kind: "openclaw.qa.evidence-summary",

106+

schemaVersion: 2,

107+

generatedAt: "2026-06-14T00:00:00.000Z",

108+

evidenceMode: "full",

109+

entries: [

110+

{

111+

test: {

112+

kind: "script-producer-check",

113+

id: "script-producer.web-ui.smoke",

114+

title: "Script producer: web-ui smoke",

115+

source: { path: "scripts/evidence-producer.ts" },

116+

},

117+

coverage: [{ id: "ui.control", role: "primary" }],

118+

execution: {

119+

runner: "evidence-producer-script",

120+

environment: { ref: "scenario-ref", os: "darwin", nodeVersion: "v24.0.0" },

121+

provider: {

122+

id: "script-producer",

123+

live: false,

124+

model: { name: null, ref: null },

125+

fixture: "mocked-script-evidence",

126+

},

127+

packageSource: { kind: "source-checkout", sha: "abc123" },

128+

artifacts: [],

129+

},

130+

result: {

131+

status: params.status,

132+

...(params.failureReason ? { failure: { reason: params.failureReason } } : {}),

133+

timing: { wallMs: 1 },

134+

},

135+

},

136+

],

137+

},

138+

null,

139+

2,

140+

)}\n`,

141+

"utf8",

142+

);

143+

await fs.writeFile(

144+

path.join(scenarioArtifactBase, "latest-run.json"),

145+

`${JSON.stringify({ qaEvidence: path.join(runRoot, "qa-evidence.json") }, null, 2)}\n`,

146+

"utf8",

147+

);

148+

}

149+92150

describe("qa test file scenario runner", () => {

93151

afterEach(async () => {

94152

await Promise.all([

@@ -729,6 +787,97 @@ describe("qa test file scenario runner", () => {

729787

});

730788

});

731789790+

it("fails script scenario results when imported producer evidence is blocked by default", async () => {

791+

const repoRoot = await makeTempRepo("qa-script-producer-blocked-");

792+

const outputDir = path.join(

793+

repoRoot,

794+

".artifacts",

795+

"qa-e2e",

796+

"scenario-script-producer-blocked",

797+

);

798+

const result = await runQaTestFileScenarios({

799+

repoRoot,

800+

outputDir,

801+

providerMode: "mock-openai",

802+

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

803+

scenarios: [makeTestFileScenario("script", "scripts/evidence-producer.ts")],

804+

runCommand: async () => {

805+

await writeScriptProducerEvidence({

806+

outputDir,

807+

status: "blocked",

808+

failureReason: "Playwright browser is missing.",

809+

});

810+

return {

811+

exitCode: 0,

812+

stdout: "script blocked\n",

813+

stderr: "",

814+

};

815+

},

816+

env: {

817+

OPENCLAW_QA_REF: "scenario-ref",

818+

} as NodeJS.ProcessEnv,

819+

});

820+821+

expect(result.results[0]).toMatchObject({

822+

status: "blocked",

823+

failureMessage: "Playwright browser is missing.",

824+

});

825+

});

826+827+

it("allows blocked imported producer evidence for opt-in script scenarios", async () => {

828+

const repoRoot = await makeTempRepo("qa-script-producer-blocked-allowed-");

829+

const outputDir = path.join(

830+

repoRoot,

831+

".artifacts",

832+

"qa-e2e",

833+

"scenario-script-producer-blocked-allowed",

834+

);

835+

const scenario = makeTestFileScenario("script", "scripts/evidence-producer.ts");

836+

if (scenario.execution.kind !== "script") {

837+

throw new Error("expected script scenario");

838+

}

839+

scenario.execution.allowBlockedEvidence = true;

840+841+

const result = await runQaTestFileScenarios({

842+

repoRoot,

843+

outputDir,

844+

providerMode: "mock-openai",

845+

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

846+

scenarios: [scenario],

847+

runCommand: async () => {

848+

await writeScriptProducerEvidence({

849+

outputDir,

850+

status: "blocked",

851+

failureReason: "Playwright browser is missing.",

852+

});

853+

return {

854+

exitCode: 0,

855+

stdout: "script blocked\n",

856+

stderr: "",

857+

};

858+

},

859+

env: {

860+

OPENCLAW_QA_REF: "scenario-ref",

861+

} as NodeJS.ProcessEnv,

862+

});

863+864+

expect(result.results[0]).toMatchObject({

865+

status: "pass",

866+

producerEvidence: {

867+

entries: [

868+

{

869+

test: {

870+

id: "script-producer.web-ui.smoke",

871+

},

872+

result: {

873+

status: "blocked",

874+

},

875+

},

876+

],

877+

},

878+

});

879+

});

880+732881

it("carries the suite profile into merged producer evidence", async () => {

733882

const repoRoot = await makeTempRepo("qa-script-profile-");

734883

const result = await runQaTestFileScenarios({