Files
claudeandClaude Opus 5.5 4a2d0b4031 H6: Full visual QA pass, with a checklist and make qa-captures
Rendered all 82 capture scenarios and the HUD at 3840x2160, and viewed
every one against a checklist covering menus, the lobby, the drop, every
biome, points of interest, building, players and items, combat, the HUD,
the chart, each tide phase, the gale, under water and results
(docs/VISUAL_QA.md). Two defects were filed and fixed: H15 (#84) and H16
(#85).

- make qa-captures (tools/qa_captures.sh) renders the whole set one
  container at a time, waiting when the host is short of memory, and
  tools/contact_sheet.gd lays them out four to a sheet for a first look.
- No placeholder art or text remains: ARCHITECTURE.md no longer calls the
  figures, barge and items stand-ins. The plain shapes in the camera*
  scenarios are test cards under test/, which isn't exported.

Closes #59

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:08:55 -05:00

30 lines
1.4 KiB
Bash
Executable File

#!/usr/bin/env bash
# H6: renders every capture scenario in test/capture/ to captures/qa/<name>.png, one
# container at a time, plus the HUD at 3840x2160, and writes contact sheets of four to
# captures/qa/sheets/. Waits while the host has under 1.5 GB of memory available.
# Plays `make match` first, since the match_* scenarios replay its log. Needs Docker.
# About 40 minutes. Open every image and judge it against docs/VISUAL_QA.md.
set -uo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/.."
mkdir -p captures/qa
nice -n 15 make match >/dev/null 2>&1 || { echo "qa-captures FAIL: make match"; exit 1; }
status=0
for path in test/capture/*.tscn; do
scene="$(basename "$path" .tscn)"
[[ "$scene" == blank || "$scene" == smoke ]] && continue
while (( $(awk '/MemAvailable/ {print int($2 / 1024)}' /proc/meminfo) < 1500 )); do
echo "qa-captures: waiting for memory"
sleep 30
done
if tools/capture.sh "$scene" "captures/qa/$scene.png" >"captures/qa/$scene.log" 2>&1; then
echo "ok $scene"
else
echo "FAIL $scene (captures/qa/$scene.log)"
status=1
fi
done
CAPTURE_SIZE=3840x2160 tools/capture.sh client_hud captures/qa/hud_2160.png >/dev/null 2>&1 || { echo "FAIL hud_2160"; status=1; }
tools/godot.sh --script res://tools/contact_sheet.gd -- --dir=res://captures/qa --out=res://captures/qa/sheets || status=1
[[ "$status" -eq 0 ]] && echo "qa-captures: ok (captures/qa, sheets in captures/qa/sheets)"
exit "$status"