fix(qa): sanitize matrix evidence artifact paths · openclaw/openclaw@8f06e65
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -341,7 +341,14 @@ describe("evidence gallery", () => {
|
341 | 341 | artifacts: [ |
342 | 342 | { |
343 | 343 | kind: "screenshot", |
344 | | -path: ".artifacts/qa-e2e/suite/script/ux-matrix-evidence-dashboard/run-1/surfaces/web-ui/stages/first-run/screenshot.png", |
| 344 | +path: path.join( |
| 345 | +runDir, |
| 346 | +"surfaces", |
| 347 | +"web-ui", |
| 348 | +"stages", |
| 349 | +"first-run", |
| 350 | +"screenshot.png", |
| 351 | +), |
345 | 352 | source: "ux-matrix:web-ui:first-run", |
346 | 353 | }, |
347 | 354 | ], |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -537,7 +537,9 @@ function buildUxMatrixEvidenceEntryIndex(entries: readonly QaEvidenceSummaryEntr
|
537 | 537 | } |
538 | 538 | |
539 | 539 | function readMatrixCells(params: { |
| 540 | +extraRoots: readonly string[]; |
540 | 541 | matrix: Record<string, unknown> | null; |
| 542 | +repoRoot: string; |
541 | 543 | summaryEntries: readonly QaEvidenceSummaryEntry[]; |
542 | 544 | }): QaEvidenceMatrixCellView[] { |
543 | 545 | const rawCells = Array.isArray(params.matrix?.cells) |
@@ -560,7 +562,12 @@ function readMatrixCells(params: {
|
560 | 562 | return [ |
561 | 563 | { |
562 | 564 | artifactKinds: readStringArray(artifacts.map((artifact) => artifact.kind)), |
563 | | -artifactPaths: artifacts.map((artifact) => artifact.path), |
| 565 | +artifactPaths: artifacts.map((artifact) => |
| 566 | +displayGalleryPath(artifact.path, { |
| 567 | +extraRoots: params.extraRoots, |
| 568 | +repoRoot: params.repoRoot, |
| 569 | +}), |
| 570 | +), |
564 | 571 | coverageIds: readStringArray(Array.isArray(cell.coverageIds) ? cell.coverageIds : []), |
565 | 572 | runner: runner |
566 | 573 | ? { |
@@ -674,7 +681,9 @@ async function buildProducerContext(params: {
|
674 | 681 | QaEvidenceProducerContextFile | null |
675 | 682 | >; |
676 | 683 | const matrixCells = readMatrixCells({ |
| 684 | +extraRoots: params.extraRoots, |
677 | 685 | matrix, |
| 686 | + repoRoot, |
678 | 687 | summaryEntries: params.summaryEntries, |
679 | 688 | }); |
680 | 689 | return { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。