forge
Explore
Log in

Don't you dare go Hollow

Merge lane-av1ignorereasons: every bare #[ignore] names its unblock (15 -> 0)

Browse files at this commit

892672ae7312f49fc8a1ec59f1419796afcf6a64Ahmet Kaan GümüşParent: b6966d6c5351dd
All 15 were in ec-opus/tests/conformance.rs; attribute lines only, no test body touched. Three
gate-shaped bodies stay ignored with reasons recording that their blocker is the local media corpus
(or a body with no asserts), not a defect. Also records that the reelm@64k dropout the library gate
first failed on is fixed per lanes/opus-drop-r2.report.md.
crates/ec-opus/tests/conformance.rsmodified+15 -15
@@ -775,7 +775,7 @@ fn decode_speed() {
775 }775 }
776 776
777 #[test]777 #[test]
778-#[ignore]778+#[ignore = "probe: report harness with no asserts; unblocks by setting EC_OPUS_FILES to committed .opus fixtures -- unset, it decodes nothing"]
779 fn real_library_sweep() {779 fn real_library_sweep() {
780 // Files named on the command line (EC_OPUS_FILES=a.opus:b.opus), decoded780 // Files named on the command line (EC_OPUS_FILES=a.opus:b.opus), decoded
781 // and compared against libopus channel by channel, with the decode speed.781 // 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
3001 // cargo test -p ec-opus --release --test conformance reelm64_persecond_diag -- --ignored --nocapture3001 // cargo test -p ec-opus --release --test conformance reelm64_persecond_diag -- --ignored --nocapture
3002 3002
3003 #[test]3003 #[test]
3004-#[ignore]3004+#[ignore = "probe: per-second correlation dump for the 64k lane; unblocks when ~/Music/reelm.wav is back in the corpus (hard-asserts src.exists)"]
3005 fn reelm64_persecond_diag() {3005 fn reelm64_persecond_diag() {
3006 const SECS: f64 = 120.0;3006 const SECS: f64 = 120.0;
3007 const FRAME: usize = 960; // 20 ms3007 const FRAME: usize = 960; // 20 ms
@@ -3260,7 +3260,7 @@ fn reelm64_persecond_diag() {
3260 println!("wrote {}", out_path.display());3260 println!("wrote {}", out_path.display());
3261 }3261 }
3262 #[test]3262 #[test]
3263-#[ignore]3263+#[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"]
3264 fn encoder_library_gate_vs_libopus() {3264 fn encoder_library_gate_vs_libopus() {
3265 const SECS: f64 = 120.0; // 2 min cap; full 600s made the 14-row sweep infeasible3265 const SECS: f64 = 120.0; // 2 min cap; full 600s made the 14-row sweep infeasible
3266 const FRAME: usize = 960; // 20 ms at 48 kHz3266 const FRAME: usize = 960; // 20 ms at 48 kHz
@@ -3572,7 +3572,7 @@ fn first_audio_toc(ogg: &[u8]) -> u8 {
3572 }3572 }
3573 3573
3574 #[test]3574 #[test]
3575-#[ignore]3575+#[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"]
3576 fn silk_library_gate_vs_libopus() {3576 fn silk_library_gate_vs_libopus() {
3577 const SECS: f64 = 120.0; // 2 min cap3577 const SECS: f64 = 120.0; // 2 min cap
3578 const FRAME: usize = 960; // 20 ms at 48 kHz3578 const FRAME: usize = 960; // 20 ms at 48 kHz
@@ -3811,7 +3811,7 @@ fn silk_library_gate_vs_libopus() {
3811 // ---------------------------------------------------------------------------3811 // ---------------------------------------------------------------------------
3812 3812
3813 #[test]3813 #[test]
3814-#[ignore]3814+#[ignore = "probe: per-second SILK 12k bit-allocation dump; unblocks when ~/Music/reelm.wav is back in the corpus (hard-asserts src.exists)"]
3815 fn silk_silkq_persecond_diag() {3815 fn silk_silkq_persecond_diag() {
3816 const SECS: f64 = 120.0;3816 const SECS: f64 = 120.0;
3817 const FRAME: usize = 960; // 20 ms at 48 kHz3817 const FRAME: usize = 960; // 20 ms at 48 kHz
@@ -4083,7 +4083,7 @@ fn silk_silkq_persecond_diag() {
4083 // silk_silkq_oracle -- --ignored --nocapture4083 // silk_silkq_oracle -- --ignored --nocapture
4084 // ---------------------------------------------------------------------------4084 // ---------------------------------------------------------------------------
4085 #[test]4085 #[test]
4086-#[ignore]4086+#[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)"]
4087 fn silk_silkq_oracle() {4087 fn silk_silkq_oracle() {
4088 const SECS: f64 = 120.0;4088 const SECS: f64 = 120.0;
4089 const FRAME: usize = 960; // 20 ms at 48 kHz4089 const FRAME: usize = 960; // 20 ms at 48 kHz
@@ -4365,7 +4365,7 @@ fn collect_indices(packets: &[Vec<u8>]) -> Vec<(ec_opus::SilkDecIndices, usize)>
4365 // ---------------------------------------------------------------------------4365 // ---------------------------------------------------------------------------
4366 4366
4367 #[test]4367 #[test]
4368-#[ignore]4368+#[ignore = "probe: per-band spectral divergence dump at 12k; unblocks when ~/Music/reelm.wav is back in the corpus (hard-asserts src.exists)"]
4369 fn silk_spectral_divergence_12k() {4369 fn silk_spectral_divergence_12k() {
4370 const SECS: f64 = 120.0;4370 const SECS: f64 = 120.0;
4371 const FRAME: usize = 960; // 20 ms at 48 kHz4371 const FRAME: usize = 960; // 20 ms at 48 kHz
@@ -4721,7 +4721,7 @@ fn silk_spectral_divergence_12k() {
4721 // opus_compare_harness -- --ignored --nocapture4721 // opus_compare_harness -- --ignored --nocapture
4722 // ---------------------------------------------------------------------------4722 // ---------------------------------------------------------------------------
4723 #[test]4723 #[test]
4724-#[ignore]4724+#[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"]
4725 fn opus_compare_harness() {4725 fn opus_compare_harness() {
4726 let ref_path = std::env::var("SW_REF").expect("SW_REF");4726 let ref_path = std::env::var("SW_REF").expect("SW_REF");
4727 let test_path = std::env::var("SW_TEST").expect("SW_TEST");4727 let test_path = std::env::var("SW_TEST").expect("SW_TEST");
@@ -4757,7 +4757,7 @@ fn opus_compare_harness() {
4757 // cargo test -p ec-opus --release opus_compare_harness_ours -- --ignored --nocapture4757 // cargo test -p ec-opus --release opus_compare_harness_ours -- --ignored --nocapture
4758 // ---------------------------------------------------------------------------4758 // ---------------------------------------------------------------------------
4759 #[test]4759 #[test]
4760-#[ignore]4760+#[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"]
4761 fn opus_compare_harness_ours() {4761 fn opus_compare_harness_ours() {
4762 let src_path = std::env::var("SW_SRC").expect("SW_SRC");4762 let src_path = std::env::var("SW_SRC").expect("SW_SRC");
4763 let kbps: u32 = std::env::var("SW_KBPS")4763 let kbps: u32 = std::env::var("SW_KBPS")
@@ -4900,7 +4900,7 @@ const CELT_EBANDS: [usize; NBANDS + 1] = [
4900 ];4900 ];
4901 4901
4902 #[test]4902 #[test]
4903-#[ignore]4903+#[ignore = "probe: per-window CELT band divergence sweep over the local corpus; a multi-minute ffmpeg report run, not a suite gate"]
4904 fn spectral_divergence_vs_libopus() {4904 fn spectral_divergence_vs_libopus() {
4905 const SECS: f64 = 120.0;4905 const SECS: f64 = 120.0;
4906 const FRAME: usize = 960;4906 const FRAME: usize = 960;
@@ -5382,7 +5382,7 @@ fn celt_silence_then_attack_decodes_bounded() {
5382 /// Sample-level view of the reell startup: per-120-sample energy of source,5382 /// Sample-level view of the reell startup: per-120-sample energy of source,
5383 /// ours (gate path) and libopus reference around the first attack.5383 /// ours (gate path) and libopus reference around the first attack.
5384 #[test]5384 #[test]
5385-#[ignore]5385+#[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"]
5386 fn reell_startup_hop_energies() {5386 fn reell_startup_hop_energies() {
5387 const CH: usize = 2;5387 const CH: usize = 2;
5388 // HOP_SRC / HOP_MS pick another source and window centre (diagnostic).5388 // HOP_SRC / HOP_MS pick another source and window centre (diagnostic).
@@ -5465,7 +5465,7 @@ fn reell_startup_hop_energies() {
5465 /// Where a lone click lands after a CELT-only fullband roundtrip, relative to5465 /// Where a lone click lands after a CELT-only fullband roundtrip, relative to
5466 /// the encoder look-ahead (diagnostic for the hybrid alignment tolerance).5466 /// the encoder look-ahead (diagnostic for the hybrid alignment tolerance).
5467 #[test]5467 #[test]
5468-#[ignore]5468+#[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"]
5469 fn celt_click_peak_offset() {5469 fn celt_click_peak_offset() {
5470 let mut click = vec![0f32; 48000];5470 let mut click = vec![0f32; 48000];
5471 let at = 960 * 10 + 300;5471 let at = 960 * 10 + 300;
@@ -5496,7 +5496,7 @@ fn celt_click_peak_offset() {
5496 /// dual_stereo share, spread/tf histograms, total_bits — ours vs ref, split by5496 /// dual_stereo share, spread/tf histograms, total_bits — ours vs ref, split by
5497 /// the decoder's transient flag. Output: `lanes/opus-sb-r1.bits.txt`.5497 /// the decoder's transient flag. Output: `lanes/opus-sb-r1.bits.txt`.
5498 #[test]5498 #[test]
5499-#[ignore]5499+#[ignore = "probe: per-frame short-block allocation dump over the local corpus; a multi-minute ffmpeg report run, not a suite gate"]
5500 fn short_block_bits_vs_libopus() {5500 fn short_block_bits_vs_libopus() {
5501 const SECS: f64 = 120.0;5501 const SECS: f64 = 120.0;
5502 const FRAME: usize = 960;5502 const FRAME: usize = 960;
@@ -5776,7 +5776,7 @@ fn short_block_bits_vs_libopus() {
5776 // ---------------------------------------------------------------------------5776 // ---------------------------------------------------------------------------
5777 5777
5778 #[test]5778 #[test]
5779-#[ignore]5779+#[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"]
5780 fn err_map_vs_libopus() {5780 fn err_map_vs_libopus() {
5781 const SECS: f64 = 120.0;5781 const SECS: f64 = 120.0;
5782 const FRAME: usize = 960;5782 const FRAME: usize = 960;
@@ -6030,7 +6030,7 @@ fn err_map_vs_libopus() {
6030 /// with our own decoder on both sides. FRAME_SRC / FRAME_KBPS / FRAME_FROM /6030 /// with our own decoder on both sides. FRAME_SRC / FRAME_KBPS / FRAME_FROM /
6031 /// FRAME_TO pick the source, rate and frame range (diagnostic).6031 /// FRAME_TO pick the source, rate and frame range (diagnostic).
6032 #[test]6032 #[test]
6033-#[ignore]6033+#[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"]
6034 fn frame_decisions_vs_libopus() {6034 fn frame_decisions_vs_libopus() {
6035 const CH: usize = 2;6035 const CH: usize = 2;
6036 let src_s =6036 let src_s =
lanes/av1ignorereasons.report.mdadded+101 -0
@@ -0,0 +1,101 @@
1+# lane-av1ignorereasons — every bare `#[ignore]` in `crates/` now names its unblock
2+
3+Branch: `lane-av1ignorereasons` (worktree `/home/user/.cache/wt/av1ignorereasons`), base `3aa16dd1`.
4+
5+## Result
6+
7+All 15 bare `#[ignore]` attributes in the repo live in **one file**:
8+`crates/ec-opus/tests/conformance.rs`. Every one now carries a reason string.
9+**No test was un-ignored** — see "Class (b): none" below for the evidence per candidate.
10+
11+```
12+$ grep -rE '#\[ignore\]\s*$' crates/*/src crates/*/tests | wc -l
13+before: 15
14+after: 0
15+$ grep -rE '#\[ignore = ' crates/*/src crates/*/tests | wc -l
16+before: 65
17+after: 80
18+```
19+
20+## Class (b): none — why nothing was un-ignored
21+
22+Three candidates were examined for "blocker already passed". All three fail on a
23+**corpus/runtime dependency, not on a defect**, so un-ignoring them would have
24+baked a 12-minute local-media sweep into the default suite:
25+
26+| candidate | what would have to be true to un-ignore | measured |
27+|---|---|---|
28+| `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. |
29+| `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. |
30+| `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). |
31+
32+The measured blocker class here is "local media corpus is not a committed fixture",
33+which is a corpus/provenance problem, not a test-reason problem — hence reasons
34+naming the corpus rather than reasons naming a fixed defect.
35+
36+## Per-item table
37+
38+| path:line | class | decision | reason text (abbreviated) |
39+|---|---|---|---|
40+| `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 |
41+| `: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`) |
42+| `: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 |
43+| `: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 |
44+| `: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 |
45+| `: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 |
46+| `: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 |
47+| `: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 |
48+| `: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 |
49+| `: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 |
50+| `: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 |
51+| `: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 |
52+| `: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 |
53+| `: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 |
54+| `: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 |
55+
56+## Run output
57+
58+No test was un-ignored, so the only run is the one probe whose viability was in
59+question (it is the only body with no external dependency, so it was the only one
60+that could be probed cheaply).
61+
62+```
63+$ cargo test -p ec-opus --test conformance --release -- --ignored celt_click_peak_offset --nocapture
64+running 1 test
65+celt click 32000: peak +120 (lm 3)
66+celt click 64000: peak +120 (lm 3)
67+celt click 128000: peak +120 (lm 3)
68+test celt_click_peak_offset ... ok
69+
70+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 43 filtered out; finished in 0.00s
71+```
72+
73+The +120 offset is stable across all three bitrates, i.e. the measurement is sound;
74+what it lacks is a threshold. That is the unblock the reason now names.
75+
76+## Suite + build
77+
78+```
79+$ cargo check -p ec-opus --all-targets
80+ Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.35s
81+
82+$ cargo test -p ec-opus
83+test result: ok. 35 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s # lib
84+test result: ok. 28 passed; 0 failed; 16 ignored; 0 measured; 0 filtered out; finished in 34.79s # conformance
85+test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
86+```
87+
88+The 16 ignored (15 bare + 1 pre-existing with a reason) now print their reason in
89+the test output, e.g. `test err_map_vs_libopus ... ignored, probe: EC_ERRMAP_SRC-driven
90+per-window error map; ...`.
91+
92+## Left alone
93+
94+- The 65 pre-existing `#[ignore = "..."]` attributes were not touched. No reason was
95+ found to be provably stale: each names a corpus file, an env var, a fix target, or
96+ an explicit "long sweep" cost, and the ones that name a defect (e.g. the
97+ `enc-dropout-lowrate-transient` debt in `opus-gate-r1.report.md`) are superseded by
98+ the later `opus-drop-r2` fix rather than stale-on-their-own — the gate that carried
99+ that debt is the one whose reason I rewrote to record the fix.
100+- No test body was modified; the change is 15 attribute lines only
101+ (`git diff --stat`: 1 file, 15 insertions, 15 deletions).