testcut: Phase 2 summary (7 heavy tests deleted, ~539 s)
Browse files at this commit43912fe39ba5a3bee9c12a71733a688125fd66e5Parent: 71978f31 changed file +33 -0
- lanes/testcut.report.md +33 -0
lanes/testcut.report.mdmodified+33 -0
| @@ -83,3 +83,36 @@ Settings and coverage: | |||
| 83 | | warm cache | 817 ok / 0 failed / 40 ignored | 1361 s (−58%) | | 83 | | warm cache | 817 ok / 0 failed / 40 ignored | 1361 s (−58%) | |
| 84 | 84 | ||
| 85 | Diff check: no test or assertion removed (+1 cache unit test, +2 asserts); clippy `-D warnings` clean. | 85 | Diff check: no test or assertion removed (+1 cache unit test, +2 asserts); clippy `-D warnings` clean. |
| 86 | + | ||
| 87 | +## Phase 2: evidence-gated deletion of heavy tests (2026-10-23 to 10-24) | ||
| 88 | + | ||
| 89 | +Protocol: `lanes/testcut.phase2.md`. Each lane report has the full rows. | ||
| 90 | + | ||
| 91 | +| lane | candidates | deleted | runtime saved | report | | ||
| 92 | +|---|---|---|---|---| | ||
| 93 | +| ec-h264 | 7 | 4: `every_quantiser_with_motion_matches_ffmpeg`, `every_quantiser_matches_ffmpeg`, `high_profile_8x8_matches_ffmpeg`, `x264_hi444_10bit` | 222 s | `lanes/testcut/p2-h264.md` | | ||
| 94 | +| ec-h265 | 5 | 3: `pixel_pipeline_runs_over_conformance_streams`, `cu_syntax_sweep_over_conformance_streams`, `motion_derivation_is_deterministic_over_conformance_streams` | 317 s | `lanes/testcut/p2-h265.md` | | ||
| 95 | +| ec-av1 stream | 98 | 0 (every candidate has unique coverage) | 0 | `lanes/testcut/p2-av1stream.md` | | ||
| 96 | +| ec-av1 encoder | 38 | 0 (unique coverage) | 0 | `lanes/testcut/p2-av1enc.md` | | ||
| 97 | +| ec-aac, misc crates (earlier) | – | 0 | 0 | `lanes/testcut/p2-aac.md`, `p2-misc.md` | | ||
| 98 | +| **total** | | **7** | **≈539 s** | | | ||
| 99 | + | ||
| 100 | +**Kept on evidence:** | ||
| 101 | +- `x264_hi444_8bit` (K'=4). | ||
| 102 | +- `corrupt_streams_never_panic` and `truncated_and_corrupted_conformance_streams_never_panic`, each killing 4 mutants the fast suite misses; they are also the only corrupt-input robustness tests. | ||
| 103 | +- `ffmpeg_decodes_bit_exactly_at_every_shape` (K'=1, a hang mutant). | ||
| 104 | +- `noisy_near_black_lands_within_five_percent`. | ||
| 105 | + | ||
| 106 | +**Evidence validity.** The mutant results looked valid but were not, in four ways, and each one would have made the fast suite look like it killed everything: | ||
| 107 | +1. Before 2bb4439, the cargo runner needed `.git`. In cargo-mutants scratch copies it never started. | ||
| 108 | +2. The scratch copies skip the gitignored `fixtures`. Under `EC_REQUIRE_FIXTURES=1` a fixture test then failed on every mutant, and `--baseline skip` hid this. | ||
| 109 | +3. `--re` selection got mangled through remote-run, ssh and `bash -c`. Mutants are now applied by index (`scripts/mutate.py`, `mutrun.py`). | ||
| 110 | +4. On the 4-core servers, timeouts fired under load. | ||
| 111 | + | ||
| 112 | +The final runs use unmutated baselines, log sampling per status, and a conservative timeout rule: a fast-suite TIMEOUT is not a kill. Any test that fails on an unmutated tree is excluded from kill attribution. These are `real_library_frames_encode_and_decode_exactly` (needs personal media) and `aom_vectors_match_per_frame_md5`. | ||
| 113 | + | ||
| 114 | +**Caveats:** | ||
| 115 | +- Samples were small (10–30 mutants per candidate), because each mutant pays a release build plus test runs. | ||
| 116 | +- The h265 motion and cu_syntax deletions rest on 1 T-kill each. | ||
| 117 | +- The coverage rule (unique coverage means keep) blocked every av1 deletion, even though the fast suite killed 31 of 32 heavy-killed stream mutants. A larger sample, or a fine-grained test rewrite, is the next lever there. | ||
| 118 | +- Names of deleted tests in the `.config/nextest.toml` fast filter are harmless leftovers. | ||