fix(qa): avoid lab artifact directory collisions · openclaw/openclaw@2824c02
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Qa Lab helper module supports run config behavior. |
| 2 | +import { randomUUID } from "node:crypto"; |
2 | 3 | import path from "node:path"; |
3 | 4 | import { uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime"; |
4 | 5 | import { defaultQaModelForMode as defaultStaticQaModelForMode } from "./model-selection.js"; |
@@ -132,5 +133,5 @@ export function createIdleQaRunnerSnapshot(scenarios: QaSeedScenario[]): QaLabRu
|
132 | 133 | |
133 | 134 | export function createQaRunOutputDir(baseDir = process.cwd()) { |
134 | 135 | const stamp = new Date().toISOString().replaceAll(":", "").replaceAll(".", "").replace("T", "-"); |
135 | | -return path.join(baseDir, ".artifacts", "qa-e2e", `lab-${stamp}`); |
| 136 | +return path.join(baseDir, ".artifacts", "qa-e2e", `lab-${stamp}-${randomUUID().slice(0, 8)}`); |
136 | 137 | } |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。