ci(mantis): collect discord thread lane artifacts · openclaw/openclaw@8fb797c
steipete
·
2026-05-06
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -330,9 +330,7 @@ jobs:
|
330 | 330 | run_lane() { |
331 | 331 | local lane="$1" |
332 | 332 | local repo_root="${GITHUB_WORKSPACE}/${worktree_root}/${lane}" |
333 | | - local output_dir="${GITHUB_WORKSPACE}/${root}/${lane}" |
334 | | - rm -rf "$output_dir" |
335 | | - mkdir -p "$output_dir" |
| 333 | + local output_dir=".artifacts/qa-e2e/mantis/discord-thread-attachment/${lane}" |
336 | 334 | pnpm --dir "$repo_root" openclaw qa discord \ |
337 | 335 | --repo-root "$repo_root" \ |
338 | 336 | --output-dir "$output_dir" \ |
@@ -341,6 +339,9 @@ jobs:
|
341 | 339 | --credential-role ci \ |
342 | 340 | --scenario discord-thread-reply-filepath-attachment \ |
343 | 341 | --allow-failures |
| 342 | + rm -rf "$root/$lane" |
| 343 | + mkdir -p "$root/$lane" |
| 344 | + cp -a "$repo_root/$output_dir/." "$root/$lane/" |
344 | 345 | } |
345 | 346 | |
346 | 347 | run_lane baseline |
@@ -415,7 +416,7 @@ jobs:
|
415 | 416 | with: |
416 | 417 | name: mantis-discord-thread-attachment-${{ github.run_id }}-${{ github.run_attempt }} |
417 | 418 | path: ${{ steps.run_mantis.outputs.output_dir }} |
418 | | -if-no-files-found: error |
| 419 | +if-no-files-found: warn |
419 | 420 | retention-days: 14 |
420 | 421 | |
421 | 422 | - name: Create Mantis GitHub App token |
@@ -443,6 +444,10 @@ jobs:
|
443 | 444 | set -euo pipefail |
444 | 445 | |
445 | 446 | root=".artifacts/qa-e2e/mantis/discord-thread-attachment" |
| 447 | + if [[ ! -f "$root/mantis-evidence.json" ]]; then |
| 448 | + echo "No Mantis evidence manifest found; skipping PR evidence comment." |
| 449 | + exit 0 |
| 450 | + fi |
446 | 451 | artifact_url_args=() |
447 | 452 | if [[ -n "${ARTIFACT_URL:-}" ]]; then |
448 | 453 | artifact_url_args=(--artifact-url "$ARTIFACT_URL") |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。