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() {
86 86
87 # Fast mode: apply one mutant, run the fast profile (fail-fast is fine: any failure is a kill).87 # Fast mode: apply one mutant, run the fast profile (fail-fast is fine: any failure is a kill).
88 # Status: fail (a test failed, timed out or the test run was killed), pass, unviable (no test run).88 # 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$/)'
89 fast_one() {91 fast_one() {
90 local json=$1 idx=$2 out=$3 rc92 local json=$1 idx=$2 out=$3 rc
91 rm -f "$out/$idx.status" "$out/$idx.fail"93 rm -f "$out/$idx.status" "$out/$idx.fail"
92 python3 scripts/mutate.py apply "$json" "$idx" "$ROOT" > "$out/$idx.apply.txt" 2>&194 python3 scripts/mutate.py apply "$json" "$idx" "$ROOT" > "$out/$idx.apply.txt" 2>&1
93 set +e95 set +e
94- timeout 3600 cargo nextest run -p "$CRATE" --profile fast -j "$NEXTEST_J" > "$out/$idx.log" 2>&196+ timeout 7200 cargo nextest run -p "$CRATE" --profile fast -j "$NEXTEST_J" -E "$FAST_EXCL" > "$out/$idx.log" 2>&1
95 rc=$?97 rc=$?
96 set -e98 set -e
97 python3 scripts/mutate.py revert "$ROOT"99 python3 scripts/mutate.py revert "$ROOT"
@@ -101,6 +103,16 @@ fast_one() {
101 }103 }
102 104
103 case $sub in105 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+ ;;
104 list)116 list)
105 out=$1; mkdir -p "$out"117 out=$1; mkdir -p "$out"
106 (cd "crates/$CRATE" && cargo mutants -p "$CRATE" --list --json) > "$out/mutants.json"118 (cd "crates/$CRATE" && cargo mutants -p "$CRATE" --list --json) > "$out/mutants.json"