#!/usr/bin/env bash
set -euo pipefail
# Run from the head checkout. Arguments: base checkout, head checkout, new output directory.
# Base: a86306b39d9c545f5a2b89a660a34cc423b162f4
# Head: ce386f44bdc9fc1c82b067b57c49d67c24565e9a
# Both checkouts require vp i. Harness and replay recordings are from the head.
export T3CODE_DEV_SEED=0
vp run report:client ab "$1" "$2" --renders --unminified --rounds 3 --switch-rounds 3 --cases switches --slot-diff MarkdownFileLink,WorkspaceEntryIcon --out-dir "$3"
# Optional visual-only pass, after applying recording.patch to the head harness:
# PROOF_VIDEO=1 T3CODE_DEV_SEED=0 vp run report:client ab "$1" "$2" --skip-build --renders --unminified --rounds 1 --switch-rounds 3 --cases switches --slot-diff MarkdownFileLink,WorkspaceEntryIcon --out-dir "$3-recording"
