forge
Explore
Log in

Don't you dare go Hollow

testcut p2 av1s: fast baseline subcommand, exclude baseline-failing aom test from fast kills

Browse files at this commit

f3d1c4fa1b5864e290c558bcfe58854fe08e7f1dAhmet Kaan GümüşParent: 6601a97
scripts/kill-matrix.shmodified+13 -1
@@ -86,12 +86,14 @@ heavy_one() {
8686
8787 # Fast mode: apply one mutant, run the fast profile (fail-fast is fine: any failure is a kill).
8888 # Status: fail (a test failed, timed out or the test run was killed), pass, unviable (no test run).
89+# Baseline-failing test (unmutated fast run fails it), excluded so fail-fast cannot make every mutant "killed".
90+FAST_EXCL='not test(/aom_vectors_match_per_frame_md5$/)'
8991 fast_one() {
9092 local json=$1 idx=$2 out=$3 rc
9193 rm -f "$out/$idx.status" "$out/$idx.fail"
9294 python3 scripts/mutate.py apply "$json" "$idx" "$ROOT" > "$out/$idx.apply.txt" 2>&1
9395 set +e
94- timeout 3600 cargo nextest run -p "$CRATE" --profile fast -j "$NEXTEST_J" > "$out/$idx.log" 2>&1
96+ timeout 7200 cargo nextest run -p "$CRATE" --profile fast -j "$NEXTEST_J" -E "$FAST_EXCL" > "$out/$idx.log" 2>&1
9597 rc=$?
9698 set -e
9799 python3 scripts/mutate.py revert "$ROOT"
@@ -101,6 +103,16 @@ fast_one() {
101103 }
102104
103105 case $sub in
106+fastbase)
107+ # Unmutated fast profile, no fail-fast: the baseline. Failing tests are listed in OUT/failing.txt.
108+ out=$1; mkdir -p "$out"
109+ set +e
110+ timeout 7200 cargo nextest run -p "$CRATE" --profile fast --no-fail-fast -j "$NEXTEST_J" > "$out/fast.log" 2>&1
111+ echo "rc=$?" > "$out/rc.txt"
112+ set -e
113+ grep -E '^\s*(FAIL|TIMEOUT|SIG[A-Z]+)\b' "$out/fast.log" | sed 's/\x1b\[[0-9;]*m//g' | sort -u > "$out/failing.txt" || true
114+ grep Summary "$out/fast.log" | tail -n 1 > "$out/summary.txt" || true
115+ ;;
104116 list)
105117 out=$1; mkdir -p "$out"
106118 (cd "crates/$CRATE" && cargo mutants -p "$CRATE" --list --json) > "$out/mutants.json"