From c5351dd99eba80b248c9ed34f29415644a44ffa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 30 Sep 2026 01:33:06 +0300 Subject: [PATCH] lane-av1ignorereasons: reason on all 15 bare #[ignore] in ec-opus conformance Every bare #[ignore] in crates/ lives in crates/ec-opus/tests/conformance.rs. Each now names its unblock instead of being indistinguishable from a lost gate. Nothing un-ignored: the three gate-shaped bodies are blocked on the local media corpus, not on a defect. - encoder_library_gate_vs_libopus: the reelm@64k dropout that first failed it is fixed (lanes/opus-drop-r2.report.md, 0 ours-only dropouts on 14 rows), but the sweep is a ~12 min ffmpeg libopus run over a local music corpus and SKIPs missing sources, so un-ignoring would leave a 6-of-7-row gate. - silk_library_gate_vs_libopus: hard-asserts a local source wav that is no longer present on this host. - celt_click_peak_offset: ran it, +120 samples at 32/64/128k, but zero asserts. Suite: 63 passed, 16 ignored (reasons now printed). cargo check --all-targets clean. --- crates/ec-opus/tests/conformance.rs | 30 ++++----- lanes/av1ignorereasons.report.md | 101 ++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+), 15 deletions(-) create mode 100644 lanes/av1ignorereasons.report.md diff --git a/crates/ec-opus/tests/conformance.rs b/crates/ec-opus/tests/conformance.rs index f58f66b9..07cff74b 100644 --- a/crates/ec-opus/tests/conformance.rs +++ b/crates/ec-opus/tests/conformance.rs @@ -775,7 +775,7 @@ fn decode_speed() { } #[test] -#[ignore] +#[ignore = "probe: report harness with no asserts; unblocks by setting EC_OPUS_FILES to committed .opus fixtures -- unset, it decodes nothing"] fn real_library_sweep() { // Files named on the command line (EC_OPUS_FILES=a.opus:b.opus), decoded // and compared against libopus channel by channel, with the decode speed. @@ -3001,7 +3001,7 @@ fn per_second_corr(source: &[f32], decoded: &[f32], channels: usize) -> (f64, u3 // cargo test -p ec-opus --release --test conformance reelm64_persecond_diag -- --ignored --nocapture #[test] -#[ignore] +#[ignore = "probe: per-second correlation dump for the 64k lane; unblocks when ~/Music/reelm.wav is back in the corpus (hard-asserts src.exists)"] fn reelm64_persecond_diag() { const SECS: f64 = 120.0; const FRAME: usize = 960; // 20 ms @@ -3260,7 +3260,7 @@ fn reelm64_persecond_diag() { println!("wrote {}", out_path.display()); } #[test] -#[ignore] +#[ignore = "library gate: hand-run 14-row sweep, 120s per source, needs ffmpeg libopus and the local ~/Music corpus (~12 min); the reelm@64k dropout that first failed it is fixed per lanes/opus-drop-r2.report.md, so only the corpus dependency keeps it out of the default suite"] fn encoder_library_gate_vs_libopus() { const SECS: f64 = 120.0; // 2 min cap; full 600s made the 14-row sweep infeasible const FRAME: usize = 960; // 20 ms at 48 kHz @@ -3572,7 +3572,7 @@ fn first_audio_toc(ogg: &[u8]) -> u8 { } #[test] -#[ignore] +#[ignore = "library gate: hand-run mono VoIP sweep; blocked until ~/Music/reelm.wav is back in the corpus (hard-asserts src.exists) and it is a multi-minute ffmpeg run, not a suite test"] fn silk_library_gate_vs_libopus() { const SECS: f64 = 120.0; // 2 min cap const FRAME: usize = 960; // 20 ms at 48 kHz @@ -3811,7 +3811,7 @@ fn silk_library_gate_vs_libopus() { // --------------------------------------------------------------------------- #[test] -#[ignore] +#[ignore = "probe: per-second SILK 12k bit-allocation dump; unblocks when ~/Music/reelm.wav is back in the corpus (hard-asserts src.exists)"] fn silk_silkq_persecond_diag() { const SECS: f64 = 120.0; const FRAME: usize = 960; // 20 ms at 48 kHz @@ -4083,7 +4083,7 @@ fn silk_silkq_persecond_diag() { // silk_silkq_oracle -- --ignored --nocapture // --------------------------------------------------------------------------- #[test] -#[ignore] +#[ignore = "probe: per-frame SILK Indices side-by-side oracle dump; unblocks when ~/Music/reelm.wav is back in the corpus (hard-asserts src.exists)"] fn silk_silkq_oracle() { const SECS: f64 = 120.0; const FRAME: usize = 960; // 20 ms at 48 kHz @@ -4365,7 +4365,7 @@ fn collect_indices(packets: &[Vec]) -> Vec<(ec_opus::SilkDecIndices, usize)> // --------------------------------------------------------------------------- #[test] -#[ignore] +#[ignore = "probe: per-band spectral divergence dump at 12k; unblocks when ~/Music/reelm.wav is back in the corpus (hard-asserts src.exists)"] fn silk_spectral_divergence_12k() { const SECS: f64 = 120.0; const FRAME: usize = 960; // 20 ms at 48 kHz @@ -4721,7 +4721,7 @@ fn silk_spectral_divergence_12k() { // opus_compare_harness -- --ignored --nocapture // --------------------------------------------------------------------------- #[test] -#[ignore] +#[ignore = "probe: needs hand-supplied SW_REF/SW_TEST .sw files to cross-check our opus_compare against the C tool; asserts nothing without those env vars"] fn opus_compare_harness() { let ref_path = std::env::var("SW_REF").expect("SW_REF"); let test_path = std::env::var("SW_TEST").expect("SW_TEST"); @@ -4757,7 +4757,7 @@ fn opus_compare_harness() { // cargo test -p ec-opus --release opus_compare_harness_ours -- --ignored --nocapture // --------------------------------------------------------------------------- #[test] -#[ignore] +#[ignore = "probe: needs hand-supplied SW_SRC/SW_KBPS/SW_OUT_SRC/SW_OUT_DEC to round-trip a .sw through our encoder; only writes .sw dumps, asserts nothing"] fn opus_compare_harness_ours() { let src_path = std::env::var("SW_SRC").expect("SW_SRC"); let kbps: u32 = std::env::var("SW_KBPS") @@ -4900,7 +4900,7 @@ const CELT_EBANDS: [usize; NBANDS + 1] = [ ]; #[test] -#[ignore] +#[ignore = "probe: per-window CELT band divergence sweep over the local corpus; a multi-minute ffmpeg report run, not a suite gate"] fn spectral_divergence_vs_libopus() { const SECS: f64 = 120.0; const FRAME: usize = 960; @@ -5382,7 +5382,7 @@ fn celt_silence_then_attack_decodes_bounded() { /// Sample-level view of the reell startup: per-120-sample energy of source, /// ours (gate path) and libopus reference around the first attack. #[test] -#[ignore] +#[ignore = "probe: HOP_SRC/HOP_MS-driven hop-energy dump around the reell startup attack; returns silently when HOP_SRC is absent, so it can never be a suite gate"] fn reell_startup_hop_energies() { const CH: usize = 2; // HOP_SRC / HOP_MS pick another source and window centre (diagnostic). @@ -5465,7 +5465,7 @@ fn reell_startup_hop_energies() { /// Where a lone click lands after a CELT-only fullband roundtrip, relative to /// the encoder look-ahead (diagnostic for the hybrid alignment tolerance). #[test] -#[ignore] +#[ignore = "probe: self-contained, but prints where a synthetic click lands after a CELT-only roundtrip and asserts nothing; unblocks when that offset is turned into a tolerance assert"] fn celt_click_peak_offset() { let mut click = vec![0f32; 48000]; let at = 960 * 10 + 300; @@ -5496,7 +5496,7 @@ fn celt_click_peak_offset() { /// dual_stereo share, spread/tf histograms, total_bits — ours vs ref, split by /// the decoder's transient flag. Output: `lanes/opus-sb-r1.bits.txt`. #[test] -#[ignore] +#[ignore = "probe: per-frame short-block allocation dump over the local corpus; a multi-minute ffmpeg report run, not a suite gate"] fn short_block_bits_vs_libopus() { const SECS: f64 = 120.0; const FRAME: usize = 960; @@ -5776,7 +5776,7 @@ fn short_block_bits_vs_libopus() { // --------------------------------------------------------------------------- #[test] -#[ignore] +#[ignore = "probe: EC_ERRMAP_SRC-driven per-window error map; returns silently when the named source is missing, so it can never be a suite gate"] fn err_map_vs_libopus() { const SECS: f64 = 120.0; const FRAME: usize = 960; @@ -6030,7 +6030,7 @@ fn err_map_vs_libopus() { /// with our own decoder on both sides. FRAME_SRC / FRAME_KBPS / FRAME_FROM / /// FRAME_TO pick the source, rate and frame range (diagnostic). #[test] -#[ignore] +#[ignore = "probe: FRAME_SRC/FRAME_FROM/FRAME_TO-driven per-frame decision dump; returns silently when FRAME_SRC is missing, so it can never be a suite gate"] fn frame_decisions_vs_libopus() { const CH: usize = 2; let src_s = diff --git a/lanes/av1ignorereasons.report.md b/lanes/av1ignorereasons.report.md new file mode 100644 index 00000000..9506ea75 --- /dev/null +++ b/lanes/av1ignorereasons.report.md @@ -0,0 +1,101 @@ +# lane-av1ignorereasons — every bare `#[ignore]` in `crates/` now names its unblock + +Branch: `lane-av1ignorereasons` (worktree `/home/user/.cache/wt/av1ignorereasons`), base `3aa16dd1`. + +## Result + +All 15 bare `#[ignore]` attributes in the repo live in **one file**: +`crates/ec-opus/tests/conformance.rs`. Every one now carries a reason string. +**No test was un-ignored** — see "Class (b): none" below for the evidence per candidate. + +``` +$ grep -rE '#\[ignore\]\s*$' crates/*/src crates/*/tests | wc -l +before: 15 +after: 0 +$ grep -rE '#\[ignore = ' crates/*/src crates/*/tests | wc -l +before: 65 +after: 80 +``` + +## Class (b): none — why nothing was un-ignored + +Three candidates were examined for "blocker already passed". All three fail on a +**corpus/runtime dependency, not on a defect**, so un-ignoring them would have +baked a 12-minute local-media sweep into the default suite: + +| candidate | what would have to be true to un-ignore | measured | +|---|---|---| +| `encoder_library_gate_vs_libopus` | the reelm@64k dropout that failed it is fixed | **the defect is fixed** — `lanes/opus-drop-r2.report.md`: "reelm@64 minsec .8987→.9148, drops 1→0; 14-row 0 ours-only dropout seconds", root-caused to reservoir arithmetic in `celt_enc.rs` VBR. But the sweep is 7 sources × {64,96} kbps × 120 s of ffmpeg libopus encodes (~12 min per `opus-gate-r1.report.md`) over `~/Music` + `~/Downloads`, and it `SKIP`s missing sources — un-ignoring it would leave a gate that silently measures 6 of 7 rows. Blocked on the corpus being a committed fixture, not on a defect. | +| `silk_library_gate_vs_libopus` | reelm.wav present | `assert!(src.exists())` on `~/Music/reelm.wav`; **the file is gone from this host** (`ls ~/Music/reelm.wav` → No such file). Hard-fails today. | +| `celt_click_peak_offset` | a real tolerance to assert | Ran it: `celt click {32000,64000,128000}: peak +120 (lm 3)` — a stable +120-sample offset, but the body has **zero asserts** (pure `println!`). Un-ignoring would add a permanently-green no-op. It stays a probe with the unblock named (turn the offset into a tolerance assert). | + +The measured blocker class here is "local media corpus is not a committed fixture", +which is a corpus/provenance problem, not a test-reason problem — hence reasons +naming the corpus rather than reasons naming a fixed defect. + +## Per-item table + +| path:line | class | decision | reason text (abbreviated) | +|---|---|---|---| +| `conformance.rs:778` `real_library_sweep` | (a) probe | reason added | probe: report harness with no asserts; unblocks by setting `EC_OPUS_FILES` to committed `.opus` fixtures — unset, it decodes nothing | +| `:3004` `reelm64_persecond_diag` | (a) probe | reason added | per-second correlation dump for the 64k lane; unblocks when `~/Music/reelm.wav` is back in the corpus (hard-asserts `src.exists`) | +| `:3263` `encoder_library_gate_vs_libopus` | (c) gate, corpus-blocked | reason added | library gate: hand-run 14-row sweep, 120 s/source, needs ffmpeg libopus + local corpus (~12 min); the reelm@64k dropout that first failed it is fixed per `lanes/opus-drop-r2.report.md`, so only the corpus dependency keeps it out of the default suite | +| `:3575` `silk_library_gate_vs_libopus` | (c) gate, corpus-blocked | reason added | library gate: hand-run mono VoIP sweep; blocked until `~/Music/reelm.wav` is back in the corpus (hard-asserts `src.exists`), and it is a multi-minute ffmpeg run, not a suite test | +| `:3814` `silk_silkq_persecond_diag` | (a) probe | reason added | per-second SILK 12k bit-allocation dump; unblocks when `~/Music/reelm.wav` is back in the corpus | +| `:4086` `silk_silkq_oracle` | (a) probe | reason added | per-frame SILK `Indices` side-by-side oracle dump; unblocks when `~/Music/reelm.wav` is back in the corpus | +| `:4368` `silk_spectral_divergence_12k` | (a) probe | reason added | per-band spectral divergence dump at 12k; unblocks when `~/Music/reelm.wav` is back in the corpus | +| `:4724` `opus_compare_harness` | (a) probe | reason added | needs hand-supplied `SW_REF`/`SW_TEST` `.sw` files to cross-check our `opus_compare` against the C tool; asserts nothing without those env vars | +| `:4760` `opus_compare_harness_ours` | (a) probe | reason added | needs hand-supplied `SW_SRC`/`SW_KBPS`/`SW_OUT_SRC`/`SW_OUT_DEC`; only writes `.sw` dumps, asserts nothing | +| `:4903` `spectral_divergence_vs_libopus` | (a) probe | reason added | per-window CELT band divergence sweep over the local corpus; a multi-minute ffmpeg report run, not a suite gate | +| `:5385` `reell_startup_hop_energies` | (a) probe | reason added | `HOP_SRC`/`HOP_MS`-driven hop-energy dump; returns silently when `HOP_SRC` is absent, so it can never be a suite gate | +| `:5468` `celt_click_peak_offset` | (a) probe | reason added (ran it) | self-contained, but prints where a synthetic click lands after a CELT-only roundtrip and asserts nothing; unblocks when that offset is turned into a tolerance assert | +| `:5499` `short_block_bits_vs_libopus` | (a) probe | reason added | per-frame short-block allocation dump over the local corpus; a multi-minute ffmpeg report run, not a suite gate | +| `:5780` `err_map_vs_libopus` | (a) probe | reason added | `EC_ERRMAP_SRC`-driven per-window error map; returns silently when the named source is missing, so it can never be a suite gate | +| `:6034` `frame_decisions_vs_libopus` | (a) probe | reason added | `FRAME_SRC`/`FRAME_FROM`/`FRAME_TO`-driven per-frame decision dump; returns silently when `FRAME_SRC` is missing, so it can never be a suite gate | + +## Run output + +No test was un-ignored, so the only run is the one probe whose viability was in +question (it is the only body with no external dependency, so it was the only one +that could be probed cheaply). + +``` +$ cargo test -p ec-opus --test conformance --release -- --ignored celt_click_peak_offset --nocapture +running 1 test +celt click 32000: peak +120 (lm 3) +celt click 64000: peak +120 (lm 3) +celt click 128000: peak +120 (lm 3) +test celt_click_peak_offset ... ok + +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 43 filtered out; finished in 0.00s +``` + +The +120 offset is stable across all three bitrates, i.e. the measurement is sound; +what it lacks is a threshold. That is the unblock the reason now names. + +## Suite + build + +``` +$ cargo check -p ec-opus --all-targets + Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.35s + +$ cargo test -p ec-opus +test result: ok. 35 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s # lib +test result: ok. 28 passed; 0 failed; 16 ignored; 0 measured; 0 filtered out; finished in 34.79s # conformance +test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s +``` + +The 16 ignored (15 bare + 1 pre-existing with a reason) now print their reason in +the test output, e.g. `test err_map_vs_libopus ... ignored, probe: EC_ERRMAP_SRC-driven +per-window error map; ...`. + +## Left alone + +- The 65 pre-existing `#[ignore = "..."]` attributes were not touched. No reason was + found to be provably stale: each names a corpus file, an env var, a fix target, or + an explicit "long sweep" cost, and the ones that name a defect (e.g. the + `enc-dropout-lowrate-transient` debt in `opus-gate-r1.report.md`) are superseded by + the later `opus-drop-r2` fix rather than stale-on-their-own — the gate that carried + that debt is the one whose reason I rewrote to record the fix. +- No test body was modified; the change is 15 attribute lines only + (`git diff --stat`: 1 file, 15 insertions, 15 deletions).