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

推荐订阅源

V
Visual Studio Blog
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
腾讯CDC
A
About on SuperTechFans
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
D
DataBreaches.Net
D
Docker
宝玉的分享
宝玉的分享
量子位
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
博客园 - 三生石上(FineUI控件)
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
V2EX
Last Week in AI
Last Week in AI
H
Help Net Security
Hugging Face - Blog
Hugging Face - Blog
M
MIT News - Artificial intelligence

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 matrix qa artifact collisions · openclaw/o...
vincentkoc · 2026-06-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1,4 +1,5 @@

11

// Qa Matrix tests cover runtime plugin behavior.

2+

import path from "node:path";

23

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";

34

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

45

import { renderQaMarkdownReport } from "openclaw/plugin-sdk/qa-runtime";

@@ -77,6 +78,19 @@ function buildMatrixQaSummaryInput(

7778

}

7879
7980

describe("matrix live qa runtime", () => {

81+

it("uses unique default artifact directories", () => {

82+

const repoRoot = "/repo";

83+

const firstOutputDir = liveTesting.resolveMatrixQaOutputDir({ repoRoot });

84+

const secondOutputDir = liveTesting.resolveMatrixQaOutputDir({ repoRoot });

85+
86+

expect(path.dirname(firstOutputDir)).toBe(path.join(repoRoot, ".artifacts", "qa-e2e"));

87+

expect(path.basename(firstOutputDir)).toMatch(/^matrix-[a-z0-9]+-[a-f0-9]{8}$/u);

88+

expect(secondOutputDir).not.toBe(firstOutputDir);

89+

expect(

90+

liveTesting.resolveMatrixQaOutputDir({ outputDir: ".artifacts/custom", repoRoot }),

91+

).toBe(".artifacts/custom");

92+

});

93+
8094

it("prints Matrix QA progress by default for non-interactive runs", () => {

8195

const previous = process.env.OPENCLAW_QA_MATRIX_PROGRESS;

8296

delete process.env.OPENCLAW_QA_MATRIX_PROGRESS;

Original file line numberDiff line numberDiff line change

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

2929

} from "../../substrate/config.js";

3030

import type { MatrixQaObservedEvent } from "../../substrate/events.js";

3131

import { startMatrixQaHarness } from "../../substrate/harness.runtime.js";

32+

import { createLiveTransportQaRunId } from "../../shared/live-transport-artifacts.js";

3233

import { resolveMatrixQaModels, type ResolvedMatrixQaModels } from "./model-selection.js";

3334

import type { MatrixQaSyncStreams } from "./scenario-runtime-shared.js";

3435

import {

@@ -623,6 +624,13 @@ function isMatrixQaStaleConfigPatchError(error: unknown) {

623624

return formatErrorMessage(error).toLowerCase().includes("config changed since last load");

624625

}

625626
627+

function resolveMatrixQaOutputDir(params: { outputDir?: string; repoRoot: string }) {

628+

return (

629+

params.outputDir ??

630+

path.join(params.repoRoot, ".artifacts", "qa-e2e", `matrix-${createLiveTransportQaRunId()}`)

631+

);

632+

}

633+
626634

async function startMatrixQaLiveLaneGateway(params: {

627635

repoRoot: string;

628636

transport: {

@@ -657,9 +665,7 @@ export async function runMatrixQaLive(params: {

657665

alternateModel?: string;

658666

}): Promise<MatrixQaRunResult> {

659667

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

660-

const outputDir =

661-

params.outputDir ??

662-

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

668+

const outputDir = resolveMatrixQaOutputDir({ outputDir: params.outputDir, repoRoot });

663669

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

664670
665671

const defaultModels = resolveMatrixQaModels({

@@ -1276,6 +1282,7 @@ export const testing = {

12761282

isMatrixAccountReady,

12771283

patchMatrixQaGatewayConfig,

12781284

remainingMatrixQaRunMs,

1285+

resolveMatrixQaOutputDir,

12791286

resolveMatrixQaCanaryTimeoutMs,

12801287

resolveMatrixQaModels,

12811288

shouldWriteMatrixQaProgress,

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,6 @@

1+

// Qa Matrix plugin module implements live transport artifact behavior.

2+

import { randomUUID } from "node:crypto";

3+
4+

export function createLiveTransportQaRunId() {

5+

return `${Date.now().toString(36)}-${randomUUID().slice(0, 8)}`;

6+

}

Original file line numberDiff line numberDiff line change

@@ -4,6 +4,7 @@ import os from "node:os";

44

import path from "node:path";

55

import { startLiveTransportQaOutputTee } from "openclaw/plugin-sdk/qa-runtime";

66

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

7+

import { resolveLiveTransportQaRunOptions } from "./live-transport-cli.runtime.js";

78
89

const tmpDirs: string[] = [];

910

@@ -12,6 +13,22 @@ describe("live transport CLI runtime", () => {

1213

await Promise.all(tmpDirs.splice(0).map((dir) => rm(dir, { recursive: true, force: true })));

1314

});

1415
16+

it("uses unique default output dirs for CLI runs", () => {

17+

const repoRoot = "/repo";

18+

const firstOutputDir = resolveLiveTransportQaRunOptions({ repoRoot }).outputDir;

19+

const secondOutputDir = resolveLiveTransportQaRunOptions({ repoRoot }).outputDir;

20+
21+

expect(path.dirname(firstOutputDir)).toBe(path.join(repoRoot, ".artifacts", "qa-e2e"));

22+

expect(path.basename(firstOutputDir)).toMatch(/^matrix-[a-z0-9]+-[a-f0-9]{8}$/u);

23+

expect(secondOutputDir).not.toBe(firstOutputDir);

24+

expect(

25+

resolveLiveTransportQaRunOptions({

26+

repoRoot,

27+

outputDir: ".artifacts/custom",

28+

}).outputDir,

29+

).toBe(path.join(repoRoot, ".artifacts/custom"));

30+

});

31+
1532

it("tees stdout and stderr into an output artifact", async () => {

1633

const outputDir = await mkdtemp(path.join(os.tmpdir(), "matrix-qa-output-"));

1734

tmpDirs.push(outputDir);

Original file line numberDiff line numberDiff line change

@@ -3,6 +3,7 @@ import path from "node:path";

33

import { resolveRepoRelativeOutputDir } from "../cli-paths.js";

44

import type { QaProviderMode } from "../run-config.js";

55

import { normalizeQaProviderMode } from "../run-config.js";

6+

import { createLiveTransportQaRunId } from "./live-transport-artifacts.js";

67

import type { LiveTransportQaCommandOptions } from "./live-transport-cli.js";

78
89

export function resolveLiveTransportQaRunOptions(

@@ -15,7 +16,7 @@ export function resolveLiveTransportQaRunOptions(

1516

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

1617

const outputDir =

1718

resolveRepoRelativeOutputDir(repoRoot, opts.outputDir) ??

18-

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

19+

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

1920

return {

2021

repoRoot,

2122

outputDir,