Skip to content

Commit 1c924c3

Browse files
committed
ci: link Mantis status reaction videos
1 parent 478138e commit 1c924c3

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/mantis-discord-status-reactions.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ jobs:
401401
)
402402
pnpm "${args[@]}"
403403
cp "$desktop_dir/desktop-browser-smoke.png" "$root/$lane/discord-status-reactions-tool-only-desktop.png"
404+
cp "$desktop_dir/desktop-browser-smoke.mp4" "$root/$lane/discord-status-reactions-tool-only-desktop.mp4"
404405
}
405406
406407
capture_desktop_lane baseline
@@ -431,6 +432,8 @@ jobs:
431432
echo "- Candidate screenshot: \`candidate/discord-status-reactions-tool-only-timeline.png\`"
432433
echo "- Baseline desktop screenshot: \`baseline/discord-status-reactions-tool-only-desktop.png\`"
433434
echo "- Candidate desktop screenshot: \`candidate/discord-status-reactions-tool-only-desktop.png\`"
435+
echo "- Baseline desktop video: \`baseline/discord-status-reactions-tool-only-desktop.mp4\`"
436+
echo "- Candidate desktop video: \`candidate/discord-status-reactions-tool-only-desktop.mp4\`"
434437
} > "$root/mantis-report.md"
435438
436439
cat "$root/mantis-report.md" >> "$GITHUB_STEP_SUMMARY"
@@ -491,7 +494,9 @@ jobs:
491494
"$root/baseline/discord-status-reactions-tool-only-timeline.png" \
492495
"$root/candidate/discord-status-reactions-tool-only-timeline.png" \
493496
"$root/baseline/discord-status-reactions-tool-only-desktop.png" \
494-
"$root/candidate/discord-status-reactions-tool-only-desktop.png"
497+
"$root/candidate/discord-status-reactions-tool-only-desktop.png" \
498+
"$root/baseline/discord-status-reactions-tool-only-desktop.mp4" \
499+
"$root/candidate/discord-status-reactions-tool-only-desktop.mp4"
495500
do
496501
if [[ ! -f "$required" ]]; then
497502
echo "Missing required QA evidence file: $required" >&2
@@ -519,14 +524,16 @@ jobs:
519524
cp "$root/candidate/discord-status-reactions-tool-only-timeline.png" "$artifacts_worktree/$artifact_root/candidate.png"
520525
cp "$root/baseline/discord-status-reactions-tool-only-desktop.png" "$artifacts_worktree/$artifact_root/baseline-desktop.png"
521526
cp "$root/candidate/discord-status-reactions-tool-only-desktop.png" "$artifacts_worktree/$artifact_root/candidate-desktop.png"
527+
cp "$root/baseline/discord-status-reactions-tool-only-desktop.mp4" "$artifacts_worktree/$artifact_root/baseline-desktop.mp4"
528+
cp "$root/candidate/discord-status-reactions-tool-only-desktop.mp4" "$artifacts_worktree/$artifact_root/candidate-desktop.mp4"
522529
cp "$root/comparison.json" "$artifacts_worktree/$artifact_root/comparison.json"
523530
cp "$root/mantis-report.md" "$artifacts_worktree/$artifact_root/mantis-report.md"
524531
525532
git -C "$artifacts_worktree" add "$artifact_root"
526533
if git -C "$artifacts_worktree" diff --cached --quiet; then
527-
echo "No QA screenshot artifact changes to publish."
534+
echo "No QA screenshot/video artifact changes to publish."
528535
else
529-
git -C "$artifacts_worktree" commit --quiet -m "qa: publish Mantis Discord screenshots for PR ${TARGET_PR}"
536+
git -C "$artifacts_worktree" commit --quiet -m "qa: publish Mantis Discord evidence for PR ${TARGET_PR}"
530537
git -C "$artifacts_worktree" push --quiet origin HEAD:qa-artifacts
531538
fi
532539
@@ -558,6 +565,10 @@ jobs:
558565
| --- | --- |
559566
| <img src="${raw_base}/baseline-desktop.png" width="420" alt="Baseline Mantis desktop browser screenshot"> | <img src="${raw_base}/candidate-desktop.png" width="420" alt="Candidate Mantis desktop browser screenshot"> |
560567
568+
Videos:
569+
- [Baseline desktop MP4](${raw_base}/baseline-desktop.mp4)
570+
- [Candidate desktop MP4](${raw_base}/candidate-desktop.mp4)
571+
561572
Raw QA files: https://github.com/${GITHUB_REPOSITORY}/tree/qa-artifacts/${artifact_root}
562573
EOF
563574

docs/concepts/mantis.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ worktrees, runs `discord-status-reactions-tool-only` against each worktree, and
168168
uploads `baseline/`, `candidate/`, `comparison.json`, and `mantis-report.md` as
169169
Actions artifacts. It also renders each lane's timeline HTML in a Crabbox
170170
desktop browser and publishes those VNC screenshots beside the deterministic
171-
timeline PNGs in the PR comment. The workflow builds the Crabbox CLI from
171+
timeline PNGs in the PR comment. The same PR comment links to the desktop MP4
172+
recordings captured during the VNC browser render, while the screenshots stay
173+
inline for quick review. The workflow builds the Crabbox CLI from
172174
`openclaw/crabbox` main so it can use the current desktop/browser lease flags
173175
before the next Crabbox binary release is cut.
174176

0 commit comments

Comments
 (0)