From 04ca45005602ffb499da28a1c9e895898b9e52f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 29 Sep 2026 04:42:17 +0300 Subject: [PATCH] test(av1): un-ignore the two pins that are now committed -- the ignore reason is stale `pinned_golden3_stream_decodes_pixel_exact` and `pinned_sbpart_stream_decodes_pixel_exact` were `#[ignore]`d, so on a plain suite run they contributed nothing -- the same hole in a different costume from the rc=0-skip one lane-av1pins just closed. The ignore is stale, and it has been stale twice over. It was introduced at c9fede5d (2026-08-28, lane-av1golden3) with the reason `reads a pinned fixture path outside the repo; run manually`, and the doc comment gave the real cause: "the file only exists on this machine's scratchpad". That was true then. It stopped being true at 78c805bd, which committed both pins under `crates/ec-av1/fixtures/` -- a path that travels in the runner tarball, so the bytes are on every runner. lane-av1pins then replaced the reason with "bisect aid, not a suite gate", which is ALSO wrong: with the bytes committed these are ordinary decode-exactness gates, not bisect aids. No condition that makes this crate ignore a gate applies. Measured on a5867794: * no process-global: neither body calls `force_sb128` or `knob_write`; * no counter, no `lock_gate_counters()`; * no aomenc: they decode committed bytes and compare to ffmpeg, so they are also not real-aomenc gates and stay out of the `gate_coverage` census; * cost 0.10-0.15 s each (measured), not a minutes-per-item recipe; * ffmpeg presence is already guarded by `have_ffmpeg()`, so `EC_AV1_REQUIRE_FFMPEG=1` makes a missing ffmpeg a hard failure rather than a silent skip. Precedent: gate_coverage.rs records the 10-bit LR gate "was `#[ignore]`d on that branch and passes un-ignored on main, which carries the fix". Plain-run evidence (no `--ignored`), `--release --test-threads=1`: pinned_golden3 ... 1 passed; 0.15s; prints "4 frame(s) byte-exact vs ffmpeg from .../crates/ec-av1/fixtures/golden3-pin.obu" pinned_sbpart ... 1 passed; 0.10s; EC_SBPART_DIAG=1 walks all 24576 luma samples ("DIAG frame 0: 0 luma mismatches ... of 192x128") Both also execute under a plain substring filter (`-- pinned_`) with no `--exact` and no `--ignored`, and neither appears in `-- --ignored` any more. `#[ignore]` count in stream.rs 41 -> 39. `a_real_aomenc_lossless_444_key_frame_decodes_sample_exact` needed no change: it carries no `#[ignore]` and passes plainly (1 passed, 0.21s). Meta-gates re-checked after the change, since un-ignoring changes the census input: `gate_coverage` 10 passed, `refusal_inventory` 15 passed, both green on 6 consecutive runs. Tests only, no decoder change. Follow-on NOT done here and reported instead: three sibling pin gates carry the same stale reason and read pins that are still untracked -- `pinned_golden4_stream_decodes_pixel_exact` (golden4-pin.obu), `pinned_golden7_stream_decodes_pixel_exact` (golden7-forwarding-mismatch.obu) and `pinned_lr_sgr_stream_call_unique_dump` (lr-sgr-r7.obu, which `.expect()`s the read rather than skipping, so it would PANIC in a clean checkout if ever un-ignored as-is). --- crates/ec-av1/src/stream.rs | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 2d68d87b..8b2534d7 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -23663,11 +23663,14 @@ pub(crate) mod tests { /// `EC_AV1_GATE_DUMP=$SP/golden3-pin.obu` off /// [`a_real_aomenc_inter_sequence_with_cdf_forwarding_decodes_pixel_exact`] /// (seed 47, frame 1 U). Deterministic and static -- no aomenc/ffmpeg - /// re-encode involved, only re-decodes fixed bytes on disk. Still - /// `#[ignore]`d: it is a BISECT aid, not a suite gate. What changed under - /// lane-av1pins is WHERE the bytes live -- they are now committed at - /// `crates/ec-av1/fixtures/golden3-pin.obu` instead of a scratchpad that - /// tmpfs reaps, so the gate does real work on any runner. + /// re-encode involved, only re-decodes fixed bytes on disk. What changed + /// under lane-av1pinslive is that the gate is LIVE: the bytes are committed + /// at `crates/ec-av1/fixtures/golden3-pin.obu` instead of a scratchpad that + /// tmpfs reaps, so it runs in the ordinary suite on any runner that has + /// ffmpeg (guarded by `have_ffmpeg()`, so `EC_AV1_REQUIRE_FFMPEG=1` turns + /// its absence into a hard failure rather than a silent skip). It costs + /// ~0.15 s, touches no process-global, and reads no counter -- none of the + /// conditions that make this crate ignore its other manual gates. /// /// The original capture (2026-08-28, `bec27414`) is NOT reproducible: it /// predates `5ae053d3` "route all 20 gradients gate fixtures through @@ -23681,7 +23684,6 @@ pub(crate) mod tests { /// `a_real_aomenc_inter_sequence_with_cdf_forwarding_decodes_pixel_exact` /// prints for that seed -- which is what proves the recipe is that gate's. #[test] - #[ignore = "bisect aid, not a suite gate; run it with --ignored"] fn pinned_golden3_stream_decodes_pixel_exact() { let path = std::env::var("EC_AV1_GATE_DUMP_PIN") .map(std::path::PathBuf::from) @@ -39426,7 +39428,8 @@ pub(crate) mod tests { /// decodes_pixel_exact` -- fast red/green loop for the bisect, and lets /// `EC_AV1_TRACE=1` be set for one run without re-driving the encoder. /// - /// lane-av1pins: the bytes are now committed at + /// LIVE since lane-av1pinslive (it was `#[ignore]`d from lane-sbpart r4 + /// only because the bytes lived in a scratchpad). Bytes committed at /// `crates/ec-av1/fixtures/sbpart-pin.obu` (238 bytes; sha256 /// `62238fc077f45d89745d4d254b9c0465464003529da3b42d0a65631fbb7e16e9`), /// re-encoded 2026-09-29 from the source gate's own recipe @@ -39437,7 +39440,6 @@ pub(crate) mod tests { /// 192x128 cell, so this pin is a 192x128 re-run of its recipe, not a /// replay of the original mismatch bytes. #[test] - #[ignore = "bisect aid, not a suite gate; run it with --ignored"] fn pinned_sbpart_stream_decodes_pixel_exact() { let path = std::env::var("EC_AV1_GATE_DUMP_PIN") .map(std::path::PathBuf::from) @@ -45960,7 +45962,9 @@ pub(crate) mod tests { let mut parser = Av1Parser::new(); let mut pos = 0usize; while pos < stream.len() { - let obu = parser.parse_obu(&stream[pos..]).expect("parsing our own OBUs"); + let obu = parser + .parse_obu(&stream[pos..]) + .expect("parsing our own OBUs"); pos += obu.total_size; } parser