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

推荐订阅源

V
V2EX
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
P
Proofpoint News Feed
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
量子位
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
博客园 - Franky
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
博客园_首页
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow 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): avoid live artifact directory collisions · openc...
vincentkoc · 2026-06-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -255,6 +255,39 @@ describe("runQaCharacterEval", () => {

255255

expect(report).not.toContain("Judge Raw Reply");

256256

});

257257
258+

it("creates a unique default output directory under repo artifacts", async () => {

259+

const runSuite = vi.fn(async (params: CharacterRunSuiteParams) =>

260+

makeSuiteResult({

261+

outputDir: params.outputDir,

262+

model: params.primaryModel,

263+

transcript: "USER Alice: hi\n\nASSISTANT openclaw: default dir reply",

264+

}),

265+

);

266+

const runJudge = makeRunJudge([

267+

{

268+

model: "openai/gpt-5.5",

269+

rank: 1,

270+

score: 8,

271+

summary: "solid",

272+

strengths: ["clear"],

273+

weaknesses: [],

274+

},

275+

]);

276+
277+

const result = await runQaCharacterEval({

278+

repoRoot: tempRoot,

279+

models: ["openai/gpt-5.5"],

280+

runSuite,

281+

runJudge,

282+

});

283+
284+

expect(path.dirname(result.outputDir)).toBe(path.join(tempRoot, ".artifacts", "qa-e2e"));

285+

expect(path.basename(result.outputDir)).toMatch(

286+

/^character-eval-[a-z0-9]+-[a-f0-9]{8}$/u,

287+

);

288+

await expect(fs.stat(result.reportPath).then((stats) => stats.isFile())).resolves.toBe(true);

289+

});

290+
258291

it("can hide candidate model refs from judge prompts and map rankings back", async () => {

259292

const runSuite = vi.fn(async (params: CharacterRunSuiteParams) =>

260293

makeSuiteResult({

Original file line numberDiff line numberDiff line change

@@ -3,6 +3,7 @@ import fs from "node:fs/promises";

33

import path from "node:path";

44

import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";

55

import { normalizeStringEntries, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";

6+

import { createQaArtifactRunId } from "./artifact-run-id.js";

67

import { isQaFastModeModelRef, type QaProviderMode } from "./model-selection.js";

78

import {

89

QA_FRONTIER_CHARACTER_EVAL_MODELS,

@@ -520,7 +521,7 @@ export async function runQaCharacterEval(params: QaCharacterEvalParams) {

520521
521522

const outputDir =

522523

params.outputDir ??

523-

path.join(repoRoot, ".artifacts", "qa-e2e", `character-eval-${Date.now().toString(36)}`);

524+

path.join(repoRoot, ".artifacts", "qa-e2e", `character-eval-${createQaArtifactRunId()}`);

524525

const runsDir = path.join(outputDir, "runs");

525526

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

526527
Original file line numberDiff line numberDiff line change

@@ -15,6 +15,7 @@ import { writeExternalFileWithinRoot } from "openclaw/plugin-sdk/security-runtim

1515

import { uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";

1616

import { chromium } from "playwright-core";

1717

import { z } from "zod";

18+

import { createQaArtifactRunId } from "../../artifact-run-id.js";

1819

import { QA_EVIDENCE_FILENAME, buildLiveTransportEvidenceSummary } from "../../evidence-summary.js";

1920

import { startQaGatewayChild } from "../../gateway-child.js";

2021

import { isTruthyOptIn } from "../../mantis-options.runtime.js";

@@ -1527,7 +1528,7 @@ export async function runDiscordQaLive(params: {

15271528

const repoRoot = path.resolve(params.repoRoot ?? process.cwd());

15281529

const outputDir =

15291530

params.outputDir ??

1530-

path.join(repoRoot, ".artifacts", "qa-e2e", `discord-${Date.now().toString(36)}`);

1531+

path.join(repoRoot, ".artifacts", "qa-e2e", `discord-${createQaArtifactRunId()}`);

15311532

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

15321533
15331534

const providerMode = normalizeQaProviderMode(

Original file line numberDiff line numberDiff line change

@@ -9,6 +9,7 @@ import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";

99

import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";

1010

import { uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";

1111

import { z } from "zod";

12+

import { createQaArtifactRunId } from "../../artifact-run-id.js";

1213

import { QA_EVIDENCE_FILENAME, buildLiveTransportEvidenceSummary } from "../../evidence-summary.js";

1314

import { startQaGatewayChild } from "../../gateway-child.js";

1415

import { isTruthyOptIn } from "../../mantis-options.runtime.js";

@@ -1711,7 +1712,7 @@ export async function runSlackQaLive(params: {

17111712

const repoRoot = path.resolve(params.repoRoot ?? process.cwd());

17121713

const outputDir =

17131714

params.outputDir ??

1714-

path.join(repoRoot, ".artifacts", "qa-e2e", `slack-${Date.now().toString(36)}`);

1715+

path.join(repoRoot, ".artifacts", "qa-e2e", `slack-${createQaArtifactRunId()}`);

17151716

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

17161717
17171718

const providerMode = normalizeQaProviderMode(

Original file line numberDiff line numberDiff line change

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

1111

import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime";

1212

import { isRecord, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";

1313

import { z } from "zod";

14+

import { createQaArtifactRunId } from "../../artifact-run-id.js";

1415

import {

1516

QA_EVIDENCE_FILENAME,

1617

buildLiveTransportEvidenceSummary,

@@ -1805,7 +1806,7 @@ export async function runTelegramQaLive(params: {

18051806

const repoRoot = path.resolve(params.repoRoot ?? process.cwd());

18061807

const outputDir =

18071808

params.outputDir ??

1808-

path.join(repoRoot, ".artifacts", "qa-e2e", `telegram-${Date.now().toString(36)}`);

1809+

path.join(repoRoot, ".artifacts", "qa-e2e", `telegram-${createQaArtifactRunId()}`);

18091810

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

18101811
18111812

const providerMode = normalizeQaProviderMode(

Original file line numberDiff line numberDiff line change

@@ -15,6 +15,7 @@ import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";

1515

import { normalizeStringEntries, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";

1616

import { resolvePreferredOpenClawTmpDir } from "openclaw/plugin-sdk/temp-path";

1717

import { z } from "zod";

18+

import { createQaArtifactRunId } from "../../artifact-run-id.js";

1819

import { QA_EVIDENCE_FILENAME, buildLiveTransportEvidenceSummary } from "../../evidence-summary.js";

1920

import { startQaGatewayChild } from "../../gateway-child.js";

2021

import { isTruthyOptIn } from "../../mantis-options.runtime.js";

@@ -3033,7 +3034,7 @@ export async function runWhatsAppQaLive(params: {

30333034

const repoRoot = path.resolve(params.repoRoot ?? process.cwd());

30343035

const outputDir =

30353036

params.outputDir ??

3036-

path.join(repoRoot, ".artifacts", "qa-e2e", `whatsapp-${Date.now().toString(36)}`);

3037+

path.join(repoRoot, ".artifacts", "qa-e2e", `whatsapp-${createQaArtifactRunId()}`);

30373038

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

30383039
30393040

const providerMode = normalizeQaProviderMode(