Skip to content

Commit ee533e6

Browse files
Programcodeclaude
andcommitted
fix(verify): let e2e run --last-failed find the previous report
e2e reads the previous failures from <output>/report.json, and every wrapped run gets a fresh output directory, so the documented retry exited NO_LAST_RUN. Seed the new directory with the latest run's report. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent e531d86 commit ee533e6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.claude/skills/verify-debatelab/bin/verify.sh‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,14 @@ cmd_e2e() {
305305
local run_id; run_id="$(date -u +%Y%m%dT%H%M%SZ)-e2e-$sub-$$"
306306
local out=".verify/artifacts/$run_id"
307307
local status=0
308+
# --last-failed reads <output>/report.json, so seed the new directory with
309+
# the latest run's report (timestamped names sort oldest first).
310+
if [ "$sub" = run ] && [[ " $* " == *" --last-failed "* ]]; then
311+
local reports=(.verify/artifacts/*-e2e-run*/report.json)
312+
[ -f "${reports[-1]}" ] || fail "--last-failed needs a previous \`verify.sh e2e run\`; none left a report in .verify/artifacts/"
313+
mkdir -p "$out" && cp "${reports[-1]}" "$out/report.json"
314+
say "info retrying the failures recorded in ${reports[-1]%/report.json}"
315+
fi
308316
npx e2e "$sub" --output "$out" "$@" || status=$?
309317
say "EVIDENCE $REPO/$out (exit $status)"
310318
return "$status"

0 commit comments

Comments
 (0)