diff --git a/crates/ec-av1/src/encode.rs b/crates/ec-av1/src/encode.rs index df721010..dbeae7c4 100644 --- a/crates/ec-av1/src/encode.rs +++ b/crates/ec-av1/src/encode.rs @@ -16843,12 +16843,22 @@ mod tests { fn probe_intrabc_key_frame() { let _knobs = crate::speed::knob_write(); let fctx = &crate::decode::FrameCtx::for_encoder(); - let fixtures = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../fixtures"); - let Ok(manifest) = std::fs::read_to_string(fixtures.join("real-library-manifest.tsv")) + // lane-av1clipprobe: the manifest is a real-library file, so it + // resolves through the crate's one fixture root (EC_FIXTURES first) + // and its absence is reported by the one probe instead of an inline + // SKIP that named no path. A file that IS there but unreadable is not + // an absence, so it is a hard error rather than a second silent skip. + let Some(manifest_path) = + crate::library_fixture::require("real-library-manifest.tsv", "probe_intrabc_key_frame") else { - eprintln!("SKIP probe_intrabc_key_frame: no real-library manifest"); return; }; + let manifest = std::fs::read_to_string(&manifest_path).unwrap_or_else(|e| { + panic!( + "probe_intrabc_key_frame: {} is present but unreadable ({e})", + manifest_path.display() + ) + }); let Some(clip) = manifest .lines() .skip(1) @@ -19732,7 +19742,11 @@ mod tests { eprintln!("SKIP pricer_error_census_on_clips: no ffmpeg"); return; } - let fixtures = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../fixtures"); + // lane-av1clipprobe: the crate's one fixture root (EC_FIXTURES first), + // so this probe reads the same tree the preflight validates. Its + // `assert!(!clips.is_empty())` below was already a hard failure, so no + // skip shape changes here — only the root does. + let fixtures = crate::library_fixture::root(); let mut clips: Vec<(String, std::path::PathBuf)> = Vec::new(); let film = fixtures.join("video/h264-1080p-23.976-8bit.mp4"); if film.exists() { @@ -20341,15 +20355,16 @@ mod tests { eprintln!("SKIP real_clip_encodes_within_its_quality_and_size_budget: no ffmpeg"); return; } - let clip = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../../fixtures/video/h264-1080p-23.976-8bit.mp4"); - if !clip.exists() { - eprintln!( - "SKIP real_clip_encodes_within_its_quality_and_size_budget: {} missing", - clip.display() - ); + // lane-av1clipprobe: the clip's absence was a bare `clip.exists()` + // -> SKIP with no env escape, so this gate reported green on a tree + // with no root `fixtures/`. The probe prints that one line (naming the + // resolved path) and fails under the require envs. + let Some(clip) = crate::library_fixture::require( + "video/h264-1080p-23.976-8bit.mp4", + "real_clip_encodes_within_its_quality_and_size_budget", + ) else { return; - } + }; let (width, height, frame_count) = (640usize, 384usize, 12usize); let source = clip_frames(clip.to_str().unwrap(), "0", width, height, frame_count); let encoded = encode_sequence_with_ctx(&source, 100, 0.5, fctx).unwrap(); @@ -20406,16 +20421,14 @@ mod tests { ); return; } - let clip = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../../fixtures/video/h264-1080p-23.976-8bit.mp4"); - if !clip.exists() { - eprintln!( - "SKIP real_clip_encodes_within_its_quality_and_size_budget_at_a_straddle_size: \ - {} missing", - clip.display() - ); + // lane-av1clipprobe: see the sibling gate above -- the bare + // `clip.exists()` -> SKIP had no env escape. + let Some(clip) = crate::library_fixture::require( + "video/h264-1080p-23.976-8bit.mp4", + "real_clip_encodes_within_its_quality_and_size_budget_at_a_straddle_size", + ) else { return; - } + }; let (width, height, frame_count) = (704usize, 400usize, 8usize); let source = clip_frames(clip.to_str().unwrap(), "0", width, height, frame_count); let encoded = encode_sequence_with_ctx(&source, 100, 0.5, fctx).unwrap(); @@ -20490,13 +20503,16 @@ mod tests { "h264-1080p-23.976-8bit.mp4", // film-ish, 23.976fps "h264-1080p-60-8bit.mp4", // higher motion, 60fps ] { - let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../../fixtures/video") - .join(clip); - if !path.exists() { - eprintln!("SKIP {clip}: fixture missing"); + // lane-av1clipprobe: the crate's one fixture root and its one + // presence probe -- the bare `path.exists()` -> SKIP -> `continue` + // had no env escape, and with every clip absent the sweep looped + // zero times and passed. + let Some(path) = crate::library_fixture::require( + &format!("video/{clip}"), + &format!("calibration_sweep_base_q_idx: {clip}"), + ) else { continue; - } + }; let source = clip_frames(path.to_str().unwrap(), "0", width, height, frames); eprintln!("--- {clip} ---"); for q in [40u8, 70, 100, 130, 160, 190, 220, 240] { @@ -20909,12 +20925,15 @@ mod tests { eprintln!("SKIP the_encoders_own_streams_are_byte_identical_to_their_pins: no ffmpeg"); return; } - let clip = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../../fixtures/video/h264-1080p-23.976-8bit.mp4"); - if !clip.exists() { - eprintln!("SKIP the_encoders_own_streams_are_byte_identical_to_their_pins: no clip"); + // lane-av1clipprobe: the bare `clip.exists()` -> SKIP had no env escape, + // so a tree with no root `fixtures/` reported this gate green having + // compared nothing at all. + let Some(clip) = crate::library_fixture::require( + "video/h264-1080p-23.976-8bit.mp4", + "the_encoders_own_streams_are_byte_identical_to_their_pins", + ) else { return; - } + }; let source = clip_frames(clip.to_str().unwrap(), "0", 640, 384, 4); // FNV-1a over the stream: a witness that every coded bit is where it // was, which a byte count alone is not. @@ -21177,7 +21196,8 @@ mod tests { eprintln!("SKIP probe_screen_library: no ffmpeg"); return; } - let fixtures = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../fixtures"); + // lane-av1clipprobe: the crate's one fixture root (EC_FIXTURES first). + let fixtures = crate::library_fixture::root(); let Ok(manifest) = std::fs::read_to_string(fixtures.join("real-library-manifest.tsv")) else { eprintln!("SKIP probe_screen_library: no real-library manifest"); @@ -21559,7 +21579,8 @@ mod tests { eprintln!("SKIP bd_rate_vs_libaom_and_rav1e: no ffmpeg"); return; } - let fixtures = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../fixtures"); + // lane-av1clipprobe: the crate's one fixture root (EC_FIXTURES first). + let fixtures = crate::library_fixture::root(); let mut clips: Vec<(String, std::path::PathBuf)> = Vec::new(); // testsrc2 COLOUR BARS, not film -- labelled so no reader takes these // rows for real content (the real rows live in the native gate). @@ -21567,11 +21588,13 @@ mod tests { ("bars 1080p", "h264-1080p-23.976-8bit.mp4"), ("bars 2160p", "h264-2160p-23.976-8bit.mp4"), ] { - let path = fixtures.join("video").join(name); - if path.exists() { + // lane-av1clipprobe: the one probe, so a missing clip is RED under + // the require envs instead of a drop-with-no-escape. + if let Some(path) = crate::library_fixture::require( + &format!("video/{name}"), + &format!("bd_rate_vs_libaom_and_rav1e: {label}"), + ) { clips.push((label.to_string(), path)); - } else { - eprintln!("SKIP clip {name}: missing"); } } // Screen capture: the repo carries no screen-capture fixture, so take @@ -22110,7 +22133,8 @@ mod tests { /// clips the keep table is read off. Selector env vars as documented on /// the gate; a missing clip prints a SKIP and drops its row. fn native_gate_clips() -> Vec<(String, String, String)> { - let fixtures = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../fixtures"); + // lane-av1clipprobe: the crate's one fixture root (EC_FIXTURES first). + let fixtures = crate::library_fixture::root(); let on = |k: &str| std::env::var(k).ok().as_deref() == Some("1"); let (film, film4k, screen) = ( on("EC_AV1_NATIVE_FILM"), @@ -22130,14 +22154,17 @@ mod tests { if !want { continue; } - let path = fixtures.join("video").join(file); - match path.exists() { - true => clips.push(( + // lane-av1clipprobe: the one probe, so a missing clip is RED under + // the require envs instead of a dropped row with no escape. + if let Some(path) = crate::library_fixture::require( + &format!("video/{file}"), + &format!("the native BD-rate gate: {label}"), + ) { + clips.push(( label.to_string(), path.to_str().unwrap().to_string(), "0".into(), - )), - false => eprintln!("SKIP {label}: {file} missing"), + )); } } let manifest = std::fs::read_to_string(fixtures.join("real-library-manifest.tsv")); @@ -22670,16 +22697,19 @@ mod tests { eprintln!("SKIP tpl_intra_denominator_histogram: no ffmpeg"); return; } - let fixtures = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../fixtures"); for (label, file) in [ ("bars 1080p", "h264-1080p-23.976-8bit.mp4"), ("bars 2160p", "h264-2160p-23.976-8bit.mp4"), ] { - let path = fixtures.join("video").join(file); - if !path.exists() { - eprintln!("SKIP {label}: {file} missing"); + // lane-av1clipprobe: the one probe, so a missing clip is RED under + // the require envs. With both clips absent this histogram used to + // loop zero times and pass having printed nothing. + let Some(path) = crate::library_fixture::require( + &format!("video/{file}"), + &format!("tpl_intra_denominator_histogram: {label}"), + ) else { continue; - } + }; let path = path.to_str().unwrap(); let Some((nw, nh)) = probe_dims(path) else { eprintln!("SKIP {label}: ffprobe gave no size"); diff --git a/crates/ec-av1/src/encoder.rs b/crates/ec-av1/src/encoder.rs index 99b89611..816c00f2 100644 --- a/crates/ec-av1/src/encoder.rs +++ b/crates/ec-av1/src/encoder.rs @@ -2878,10 +2878,14 @@ mod tests { fn the_facade_codes_the_same_bytes_as_encode_sequence() { let _knobs = crate::speed::knob_read(); let frames = 12usize; - let film = h264_clip_frames(640, 384, frames).unwrap_or_else(|| { - eprintln!("no h264 clip: the facade identity gate runs on a synthetic card"); - (0..frames).map(|t| test_card(64, 64, t)).collect() - }); + let film = h264_clip_frames("the facade identity film arm", 640, 384, frames) + .unwrap_or_else(|| { + // The probe inside already printed the ONE line naming the + // resolved path and the escape hatch, so this is a note about + // what runs instead — not a second SKIP. + eprintln!(" ...so the film arm runs on a synthetic card, not real film"); + (0..frames).map(|t| test_card(64, 64, t)).collect() + }); let screen: Vec = (0..frames).map(|t| screen_card(64, 64, t)).collect(); let pyramid = Pyramid::from_env().expect("the pyramid is this build's default"); for (content, pictures, is_screen) in [("film", &film, false), ("screen", &screen, true)] { @@ -3248,8 +3252,24 @@ mod tests { /// to this facade's own input size, and re-coded through the facade so the /// rate-target surface is exercised at the entry point a caller actually /// drives. - fn h264_clip_frames(width: usize, height: usize, frames: usize) -> Option> { + /// + /// lane-av1clipprobe: the ABSENCE of this clip used to be a bare + /// `clip.exists()` -> `None`, and every caller turned that into a `SKIP` + /// line and a return -- so a tree with no root `fixtures/` printed + /// `SKIP the 1080p tile round trip: no fixture` and libtest reported `ok`: + /// green with nothing asserted, and no env that made it RED. The presence + /// check now lives in the crate's one library-fixture probe + /// (`library_fixture::require_at`), which fails under `EC_REQUIRE_FIXTURES` / + /// `EC_AV1_REQUIRE_FFMPEG` / `EC_AV1_REQUIRE_AOMENC` and otherwise prints + /// that ONE line. + fn h264_clip_frames( + what: &str, + width: usize, + height: usize, + frames: usize, + ) -> Option> { if !have_ffmpeg() { + eprintln!("SKIP {what}: no ffmpeg"); return None; } // lane-av1speed3: the wall tables below are read on REAL film as @@ -3257,14 +3277,24 @@ mod tests { // gate's own vocabulary), and the film crop lives outside the repo -- // `EC_AV1_WALL_CLIP` names it. Unset everywhere else, so every other // caller still gets the fixture. + // + // lane-av1clipprobe: the default path resolves through `EC_FIXTURES` + // first, which is the root `scripts/verify-fixture-library.sh` + // validates -- so the preflight's verdict and these bytes are the same + // tree, and GREEN-with-an-absent-root is no longer reachable by + // pointing EC_FIXTURES somewhere the gates do not read. let clip = match std::env::var("EC_AV1_WALL_CLIP") { Ok(p) => std::path::PathBuf::from(p), - Err(_) => std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../../fixtures/video/h264-1080p-23.976-8bit.mp4"), + Err(_) => crate::library_fixture::path("video/h264-1080p-23.976-8bit.mp4"), }; - if !clip.exists() { + // `what` is the CALLING GATE's name, carried in so that both exits from + // this function print exactly one line naming it: the ffmpeg line + // above, and the probe's line naming the resolved path. Callers + // therefore `return` on `None` WITHOUT printing a second one -- the + // second "no fixture" line per gate was the noise that hid this defect. + let Some(clip) = crate::library_fixture::require_at(clip, what) else { return None; - } + }; let out = Command::new("ffmpeg") .args(["-v", "error", "-i", clip.to_str().unwrap()]) .args(["-frames:v", &frames.to_string()]) @@ -3313,8 +3343,12 @@ mod tests { #[test] fn bytes_per_frame_target_settles_within_20_percent() { let _knobs = crate::speed::knob_read(); - let Some(pictures) = h264_clip_frames(640, 384, 24) else { - eprintln!("SKIP bytes_per_frame_target_settles_within_20_percent: no ffmpeg/fixture"); + let Some(pictures) = h264_clip_frames( + "bytes_per_frame_target_settles_within_20_percent", + 640, + 384, + 24, + ) else { return; }; let target_bytes = 4_000u32; @@ -3364,10 +3398,12 @@ mod tests { fn bitrate_target_lands_within_5_percent_over_48_frames() { let _knobs = crate::speed::knob_read(); let (width, height, frames) = (640usize, 384usize, 48usize); - let Some(pictures) = h264_clip_frames(width, height, frames) else { - eprintln!( - "SKIP bitrate_target_lands_within_5_percent_over_48_frames: no ffmpeg/fixture" - ); + let Some(pictures) = h264_clip_frames( + "bitrate_target_lands_within_5_percent_over_48_frames", + width, + height, + frames, + ) else { return; }; let fps = 24.0; @@ -3457,10 +3493,12 @@ mod tests { #[test] fn bytes_per_frame_controller_never_oscillates_past_its_clamp() { let _knobs = crate::speed::knob_read(); - let Some(pictures) = h264_clip_frames(640, 384, 24) else { - eprintln!( - "SKIP bytes_per_frame_controller_never_oscillates_past_its_clamp: no ffmpeg/fixture" - ); + let Some(pictures) = h264_clip_frames( + "bytes_per_frame_controller_never_oscillates_past_its_clamp", + 640, + 384, + 24, + ) else { return; }; let config = EncoderConfig { @@ -5573,8 +5611,7 @@ mod tests { let _knobs = crate::speed::knob_write(); let _gate_lock = crate::stream::tests::lock_gate_counters(); let (width, height) = (1920usize, 1080usize); - let Some(sources) = h264_clip_frames(width, height, 8) else { - eprintln!("SKIP tile_wall_table_at_1080p: no fixture"); + let Some(sources) = h264_clip_frames("tile_wall_table_at_1080p", width, height, 8) else { return; }; let layouts = [(0u32, 0u32), (1, 0), (1, 1), (2, 1)]; @@ -5817,11 +5854,9 @@ mod tests { } // Real gate content, where the CDEF preset search actually chooses // `bits > 0` and the tile is re-coded, one tile and four. - if let Some(sources) = h264_clip_frames(640, 384, 3) { + if let Some(sources) = h264_clip_frames("the gate-clip arm", 640, 384, 3) { run(&sources, 640, 384, (0, 0)); run(&sources, 640, 384, (1, 1)); - } else { - eprintln!("SKIP the gate-clip arm: no fixture or no ffmpeg"); } crate::decode::set_verify_final_replay(false); } @@ -5869,8 +5904,8 @@ mod tests { threads: &[usize], ) { let _gate_lock = crate::stream::tests::lock_gate_counters(); - let Some(sources) = h264_clip_frames(width, height, frames) else { - eprintln!("SKIP the filter-stage breakdown: no fixture or no ffmpeg"); + let Some(sources) = h264_clip_frames("the filter-stage breakdown", width, height, frames) + else { return; }; crate::par::set_stage_times(true); @@ -5941,8 +5976,8 @@ mod tests { threads: &[usize], ) { let _gate_lock = crate::stream::tests::lock_gate_counters(); - let Some(sources) = h264_clip_frames(width, height, frames) else { - eprintln!("SKIP the tile-search wall table: no fixture or no ffmpeg"); + let Some(sources) = h264_clip_frames("the tile-search wall table", width, height, frames) + else { return; }; let run = |cols_log2: u32, rows_log2: u32, t: usize| -> (std::time::Duration, usize) { @@ -6038,18 +6073,27 @@ mod tests { layouts: &[(u32, u32)], threads: &[usize], ) { - let clip = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../../fixtures/video/h264-1080p-23.976-8bit.mp4"); let listed = Command::new("ffmpeg") .args(["-hide_banner", "-encoders"]) .output(); let has_rav1e = listed .map(|o| String::from_utf8_lossy(&o.stdout).contains("librav1e")) .unwrap_or(false); - if !has_rav1e || !clip.exists() { - eprintln!("SKIP the rav1e reference: no librav1e or no fixture"); + // lane-av1clipprobe: this was `!has_rav1e || !clip.exists()` behind ONE + // line, which is how the clip's absence hid inside a tool-absence + // message and could not fail under any require env. The two causes are + // now separate, and only the clip goes through the fixture probe, so + // either way this helper prints exactly ONE line. + if !has_rav1e { + eprintln!("SKIP the rav1e reference: ffmpeg has no librav1e encoder"); return; } + let Some(clip) = crate::library_fixture::require( + "video/h264-1080p-23.976-8bit.mp4", + "the rav1e reference", + ) else { + return; + }; eprintln!("| rav1e layout | threads | wall | fps | bytes |"); for &(c, r) in layouts { for &t in threads { @@ -6109,15 +6153,29 @@ mod tests { /// smoke. /// /// The two skippable halves both route through the crate's EXISTING - /// presence probes, not a new shape: `h264_clip_frames` (which itself - /// asks `have_ffmpeg()` and `clip.exists()`) and `have_ffmpeg()` for the - /// ffmpeg arm. No bare presence check was added. + /// presence probes, not a new shape: `h264_clip_frames` (which itself asks + /// `have_ffmpeg()` and `library_fixture::require_at`) and `have_ffmpeg()` + /// for the ffmpeg arm. No bare presence check was added. + /// + /// lane-av1clipprobe: with the root `fixtures/` absent this gate printed + /// `SKIP the 1080p tile round trip: no fixture` and libtest reported `ok` + /// — a 1080p gate that asserts nothing on every linked worktree, and no + /// env that made it RED. `library_fixture::require_at` now fails under + /// `EC_REQUIRE_FIXTURES` / `EC_AV1_REQUIRE_FFMPEG` / `EC_AV1_REQUIRE_AOMENC` + /// and otherwise prints exactly ONE line naming the resolved path, and the + /// path it resolves honours `EC_FIXTURES` — the root + /// `scripts/verify-fixture-library.sh` validates — so the preflight's + /// verdict and these bytes cannot be different trees again. #[test] fn a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders() { let _knobs = crate::speed::knob_read(); let (width, height) = (1920usize, 1080usize); - let Some(sources) = h264_clip_frames(width, height, 3) else { - eprintln!("SKIP the 1080p tile round trip: no fixture"); + let Some(sources) = h264_clip_frames( + "a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders", + width, + height, + 3, + ) else { return; }; for (cols_log2, rows_log2) in [(1u32, 0u32), (1, 1), (2, 1)] { @@ -6176,8 +6234,12 @@ mod tests { return; } let (width, height) = (640, 384); - let Some(pictures) = h264_clip_frames(width, height, 8) else { - eprintln!("SKIP quality_target_is_monotone_in_bytes_and_psnr: no fixture"); + let Some(pictures) = h264_clip_frames( + "quality_target_is_monotone_in_bytes_and_psnr", + width, + height, + 8, + ) else { return; }; let mut prev_bytes = 0usize; diff --git a/crates/ec-av1/src/lib.rs b/crates/ec-av1/src/lib.rs index 9113d470..4c8dece8 100644 --- a/crates/ec-av1/src/lib.rs +++ b/crates/ec-av1/src/lib.rs @@ -35,9 +35,13 @@ mod envflags; mod film_grain; mod filter_search; pub mod frame; +// Test-only: the real-library fixture root and the one presence probe every +// gate that needs a clip routes through. mod gate_coverage; mod hits; pub mod intra; +#[cfg(test)] +mod library_fixture; pub mod mc; pub mod motion; mod motion_field; @@ -49,13 +53,13 @@ pub mod probe; pub mod qm; pub mod quant; mod refusal_inventory; -pub mod speed; mod restoration; pub mod sequence; -mod superres; +pub mod speed; pub mod stream; -mod timeline; +mod superres; pub mod tile; +mod timeline; pub mod transform; mod warp; mod wedge; diff --git a/crates/ec-av1/src/library_fixture.rs b/crates/ec-av1/src/library_fixture.rs new file mode 100644 index 00000000..08be0299 --- /dev/null +++ b/crates/ec-av1/src/library_fixture.rs @@ -0,0 +1,161 @@ +//! Where a REAL-LIBRARY fixture is read from, and the one presence probe every +//! gate that needs one routes through. +//! +//! The clips these gates read (`h264-1080p-23.976-8bit.mp4`, +//! `h264-2160p-23.976-8bit.mp4`, `real-library-manifest.tsv`) are +//! multi-megabyte encodes of a shared library, not pins: they cannot be +//! committed under `crates//fixtures/` the way the `.obu` pins are +//! ([`crate_pin`](crate::stream)), so they live in the gitignored ROOT +//! `fixtures/` — `.gitignore:2`. A linked worktree therefore never has that +//! directory, and a gate that skips on its absence reports GREEN having +//! asserted nothing: the class `lane-av1skipfix` closed for the pins, still open +//! for the clips. +//! +//! TWO defects met here, both of which this module closes: +//! +//! 1. **Silent skip.** `h264_clip_frames` and each gate's own +//! `if !clip.exists() { eprintln!("SKIP …"); return; }` skipped with no env +//! escape, so `EC_AV1_REQUIRE_FFMPEG=1` — a batch run's way of saying "this +//! gate must actually run" — did not make the ABSENT CLIP a failure. The +//! `a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders` +//! gate printed `SKIP the 1080p tile round trip: no fixture` and libtest +//! reported `ok` on a tree with no root `fixtures/` at all. +//! +//! 2. **Two roots.** `scripts/verify-fixture-library.sh` validates +//! `$EC_FIXTURES` (defaulting to `$ROOT/fixtures`) while these gates read +//! `$ROOT/fixtures` unconditionally. Pointing the preflight at a library +//! elsewhere reported `resolve 0 missing` and `GREEN` while the clip gates' +//! root was absent — GREEN with an absent root, the exact false green this +//! module exists to kill. So [`root`] honours `EC_FIXTURES` FIRST: the +//! preflight and the gates now resolve the same tree, and when it is unset +//! the preflight's default IS the gates' root, so its mode-(i) finding fires +//! exactly when the clip gates will skip. +//! +//! The shape is the crate's existing convention, not a new one: the +//! assert-under-require / print-one-line-otherwise probe is the same one +//! `crates/ec-h264/tests/conformance.rs::require_fixtures` and the per-crate +//! `require_fixture` helpers use, and the file's own presence check lives HERE, +//! inside the probe that owns it — a bare `clip.exists()` at a call site is +//! precisely what the anti-regression scan for the sibling (tool) class +//! rejects. + +use std::path::{Path, PathBuf}; + +/// The envs that turn an absent library clip into a hard failure. +/// +/// * `EC_REQUIRE_FIXTURES` — the fleet-wide convention, the same one +/// `scripts/verify-fixture-library.sh` and every per-crate `require_fixture` +/// honour, and the one `EC_REQUIRE_FIXTURES=1` in the preflight's docs names. +/// * `EC_AV1_REQUIRE_FFMPEG` / `EC_AV1_REQUIRE_AOMENC` — this crate's own +/// requirement flags ([`have_ffmpeg`](crate::encode::tests::have_ffmpeg)). +/// Every gate reachable through [`require`] also decodes its result through +/// ffmpeg, so a batch that sets them has already said the gate must run; a +/// missing clip must not be the softer failure. +/// +/// All three are checked, not just one: a run that sets only the preflight's +/// env, and a run that sets only this crate's, both get the failure. +fn required() -> bool { + std::env::var_os("EC_REQUIRE_FIXTURES").is_some() + || std::env::var_os("EC_AV1_REQUIRE_FFMPEG").is_some() + || std::env::var_os("EC_AV1_REQUIRE_AOMENC").is_some() +} + +/// The fixture root the tests read, in precedence order: +/// +/// 1. `EC_FIXTURES` — the same variable `scripts/verify-fixture-library.sh` +/// resolves, so its verdict and these gates' bytes are the same tree. This +/// is the half of the two-roots mismatch that the preflight cannot fix from +/// its side. +/// 2. `/../../fixtures` — the gitignored root `fixtures/`, the default +/// the preflight uses when `EC_FIXTURES` is unset. +pub fn root() -> PathBuf { + match std::env::var_os("EC_FIXTURES") { + Some(p) if !p.is_empty() => PathBuf::from(p), + _ => Path::new(env!("CARGO_MANIFEST_DIR")).join("../../fixtures"), + } +} + +/// `require` on a path relative to [`root`]: +/// `require("video/h264-1080p-23.976-8bit.mp4", …)`. The literal is +/// LIBRARY-RELATIVE, which is the row shape `scripts/gen-fixture-library.sh` +/// reads back out of this file, so the preflight keeps resolving these paths. +pub fn path(rel: &str) -> PathBuf { + root().join(rel) +} + +/// The one presence probe for a library fixture. Returns the path when the file +/// is there. When it is not: +/// +/// * under [`required()`] — PANIC, naming the resolved path, so the gate is RED +/// instead of green-with-nothing-checked; +/// * otherwise — prints exactly ONE `SKIP` line naming the resolved path and the +/// three ways out (link the library, point `EC_FIXTURES` at it, or set a +/// require env), and returns `None`. +/// +/// A caller that gets `None` must `return` WITHOUT printing a second line: the +/// path and the escape hatch are already on the one line above, and a second +/// "no fixture" line is the noise that hid this defect from a reading of the +/// output. +pub fn require(rel: &str, what: &str) -> Option { + require_at(path(rel), what) +} + +/// [`require`] for a path the caller resolved itself — an `EC_AV1_WALL_CLIP` +/// override, which names a clip OUTSIDE any library root, so it must not be +/// joined onto one. +pub fn require_at(clip: PathBuf, what: &str) -> Option { + if clip.is_file() { + return Some(clip); + } + assert!( + !required(), + "{what}: the library clip is absent at {} -- this gate would prove nothing. A linked \ + worktree has no gitignored root `fixtures/`: run scripts/link-fixtures.sh, or point \ + EC_FIXTURES at a library root, or set EC_REQUIRE_FIXTURES=1 / EC_AV1_REQUIRE_FFMPEG=1 \ + only on a tree that really has the library.", + clip.display() + ); + eprintln!( + "SKIP {what}: {} absent at {} -- this gate proved nothing; run \ + scripts/link-fixtures.sh, point EC_FIXTURES at a library root, or set \ + EC_REQUIRE_FIXTURES=1 / EC_AV1_REQUIRE_FFMPEG=1 to make this a failure.", + clip.file_name().unwrap_or_default().to_string_lossy(), + clip.display() + ); + None +} + +#[cfg(test)] +mod tests { + use super::*; + + /// The two-roots reconciliation, asserted on the RESOLVER rather than + /// described in prose: with `EC_FIXTURES` set, [`root`] is that directory and + /// NOT `/../../fixtures`. (The variable is process-constant in this + /// crate — nothing calls `set_var` — so the assertion holds for whatever the + /// batch exported; it is the precedence, not a particular value, that is + /// under test.) + #[test] + fn the_resolver_follows_ec_fixtures_over_the_gitignored_root() { + let root = super::root(); + if let Some(p) = std::env::var_os("EC_FIXTURES") + && !p.is_empty() + { + assert_eq!( + root, + PathBuf::from(p), + "EC_FIXTURES must win over the default root" + ); + } else { + assert!( + root.ends_with("../../fixtures"), + "the default root is the gitignored /../../fixtures, got {}", + root.display() + ); + } + assert_eq!( + super::path("video/h264-1080p-23.976-8bit.mp4"), + root.join("video/h264-1080p-23.976-8bit.mp4") + ); + } +} diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 6f1ddf66..f3217994 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -6292,12 +6292,13 @@ pub(crate) mod tests { eprintln!("SKIP {NAME}: no ffmpeg"); return; } - let clip = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../../fixtures/video/h264-2160p-23.976-8bit.mp4"); - if !clip.exists() { - eprintln!("SKIP {NAME}: the 2160p bars fixture is missing"); + // lane-av1clipprobe: the bare `clip.exists()` -> SKIP had no env + // escape, so on a tree with no root `fixtures/` this 128-intra-block + // gate reported green having decoded nothing. + let Some(clip) = crate::library_fixture::require("video/h264-2160p-23.976-8bit.mp4", NAME) + else { return; - } + }; let (w, h, frames) = (1920usize, 1024usize, 12usize); // [[pid-keyed-temp-path]]: parallel test binaries must not share a name. let src = std::env::temp_dir().join(format!("ec-av1-i128-{}.yuv", std::process::id())); @@ -45092,12 +45093,15 @@ pub(crate) mod tests { // segment, so they do not gate `SEG_LVL_ALT_Q` -- that is the // recipe rows' job above -- but they are the rectangular // partition coverage rav1e's straddle answer adds. - let clip = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../../fixtures/video/h264-1080p-23.976-8bit.mp4"); - if !clip.exists() { - eprintln!("SKIP {NAME}: {} missing", clip.display()); + // lane-av1clipprobe: the one probe. This one is worse than a plain + // skip -- it `return`s from the middle of the gate, so everything + // asserted above it had already run and the encoder-ladder half + // silently never did, leaving a half-executed gate reported green. + let Some(clip) = + crate::library_fixture::require("video/h264-1080p-23.976-8bit.mp4", NAME) + else { return; - } + }; for (encoder, points) in [ ("librav1e", ["50", "100", "150", "200"]), ("libaom-av1", ["5", "20", "35", "45"]), diff --git a/lanes/av1clipprobe.report.md b/lanes/av1clipprobe.report.md new file mode 100644 index 00000000..b36c96ab --- /dev/null +++ b/lanes/av1clipprobe.report.md @@ -0,0 +1,344 @@ +# lane-av1clipprobe — the clip-gate silent skip, and the two roots + +Branch `lane-av1clipprobe` off `f33b9d41`. Commit `502c18ce`. + +## 1. Reproduction (before the fix) + +Lane worktree `/home/user/Documents/Code/Rust/wt-av1clipprobe`, root `fixtures/` +absent (it is `.gitignore:2`, so `git worktree add` never produces it): + +``` +$ ls -d fixtures +ls: cannot access 'fixtures': No such file or directory + +$ EC_AV1_REQUIRE_FFMPEG=1 EC_AV1_REQUIRE_AOMENC=1 \ + cargo test -p ec-av1 --release \ + a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders -- --nocapture +running 1 test +SKIP the 1080p tile round trip: no fixture +test encoder::tests::a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders ... ok + +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 752 filtered out; finished in 0.11s +EXIT=0 +``` + +Both halves of the report: the `SKIP` line, and libtest's `ok`. The two +`EC_AV1_REQUIRE_*` flags were set for that run, and the gate still reported +green — the flags govern *ffmpeg/aomenc* absence, never the clip's. + +## 2. Route + +`crates/ec-av1/src/library_fixture.rs` (new, `#[cfg(test)] mod`) owns two things. + +**The resolver** — `root()` reads `EC_FIXTURES` first, else +`CARGO_MANIFEST_DIR/../../fixtures`. + +**The one presence probe** — `require(rel, what)` / `require_at(path, what)`: + +* file present → `Some(path)`; +* absent **and** `EC_REQUIRE_FIXTURES` / `EC_AV1_REQUIRE_FFMPEG` / + `EC_AV1_REQUIRE_AOMENC` set → `assert!` panics, naming the resolved path and + the three ways to fix the tree (RED); +* absent and no require env → prints **one** `SKIP` line naming the resolved + path and the same three ways out, returns `None` (documented skip). + +This is the crate's *existing* shape, not a new one: the +assert-under-require / print-one-line-otherwise probe is what +`crates/ec-h264/tests/conformance.rs::require_fixtures` and the per-crate +`require_fixture` helpers do, and the file's own presence check lives inside +the probe that owns it — the shape the `no_tool_presence_check_outside_its_probe` +scan in `gate_coverage.rs` demands. No bare `is_file()` / `exists()` was added at +any call site. + +`h264_clip_frames` already had the right probe shape for ffmpeg but its CALLERS +owned the absence silently; the fix is in the callers plus the one added clip +check. `h264_clip_frames` now takes the calling gate's name (`what`) so both of +its exits print exactly one line and callers `return` on `None` without printing +a second — the two "no fixture" lines per gate were the noise that hid this. + +## 3. Class sweep + +Every site in `crates/ec-av1` that resolved a fixture through +`CARGO_MANIFEST_DIR/../../fixtures` (i.e. outside the crate-local committed +pins, which `crate_pin` already handles with an unconditional `panic!`). +14 sites, 5 in `encoder.rs`, 8 in `encode.rs`, 2 in `stream.rs` — of which +**11 could report a green suite having asserted nothing** (non-`#[ignore]`d +`#[test]`). + +| # | site (file:line at `f33b9d41`) | gate | mechanism | status | +|---|---|---|---|---| +| 1 | `encoder.rs:3263` in `h264_clip_frames` | 10 callers (below) | `clip.exists()` → `None` → each caller's own `SKIP` → `return`; **no env escape** | probe; one line per gate | +| 2 | `encoder.rs:6119` | `a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders` | via (1) | **RED under require** | +| 3 | `encoder.rs:3316` | `bytes_per_frame_target_settles_within_20_percent` | via (1) | **RED** | +| 4 | `encoder.rs:3367` | `bitrate_target_lands_within_5_percent_over_48_frames` | via (1) | **RED** | +| 5 | `encoder.rs:3460` | `bytes_per_frame_controller_never_oscillates_past_its_clamp` | via (1) | **RED** | +| 6 | `encoder.rs:5576` | `tile_wall_table_at_1080p` (`#[ignore]`, probe) | via (1) | probe | +| 7 | `encoder.rs:5820` | `filter_replay_final_matches_the_capture_decode` | via (1) | **RED** | +| 8 | `encoder.rs:5872` | `filter_stage_wall_1080p` (`#[ignore]`, probe) | via (1) | probe | +| 9 | `encoder.rs:5944` | `tile_search_wall_1080p` (`#[ignore]`, probe) | via (1) | probe | +| 10 | `encoder.rs:6179` | `quality_target_is_monotone_in_bytes_and_psnr` | via (1) | **RED** | +| 11 | `encoder.rs:2881` | `the_facade_codes_the_same_bytes_as_encode_sequence` | `unwrap_or_else` → **runs the film arm on a synthetic card** and asserts as if it were film | **RED**; the substitution now says so on a second, non-`SKIP` line | +| 12 | `encoder.rs:6042` in `rav1e_wall_reference` | 2 wall-table probes | `!has_rav1e \|\| !clip.exists()` behind ONE line — the clip's absence hid inside a tool-absence message and had no escape | split; clip through the probe | +| 13 | `encode.rs:20345` | `real_clip_encodes_within_its_quality_and_size_budget` | `clip.exists()` → `SKIP` | **RED** | +| 14 | `encode.rs:20410` | `…_at_a_straddle_size` | `clip.exists()` → `SKIP` | **RED** | +| 15 | `encode.rs:20913` | `the_encoders_own_streams_are_byte_identical_to_their_pins` | `clip.exists()` → `SKIP` — compared nothing at all | **RED** | +| 16 | `encode.rs:20494` | `calibration_sweep_base_q_idx` (`#[ignore]`, probe) | per-clip `!path.exists()` → `continue`; with every clip absent the loop ran zero times and **passed** | probe through the probe | +| 17 | `encode.rs:21561`, `:22113`, `:22672` | `bd_rate_vs_libaom_and_rav1e`, `native_gate_clips`, `tpl_intra_denominator_histogram` (all `#[ignore]`) | per-clip `!path.exists()` → drop/`continue` with no escape; `tpl` printed nothing and passed | per-clip checks through the probe; roots re-resolved | +| 18 | `encode.rs:16846`, `:19735`, `:21179` | `probe_intrabc_key_frame`, `pricer_error_census_on_clips`, `probe_screen_library` (all `#[ignore]`) | `read_to_string(…/real-library-manifest.tsv)` `Err` → `SKIP` naming no path | manifest through the probe; a present-but-unreadable manifest is now a hard error, not a second silent skip | +| 19 | `stream.rs:6296` | `a_libaom_stream_with_128_intra_blocks_in_inter_frames_decodes_exact` | `clip.exists()` → `SKIP` — decoded nothing | **RED** | +| 20 | `stream.rs:45096` | `a_straddling_frame_decodes_exactly_on_both_reference_encoders_ladders` | `clip.exists()` → `return` **from the middle of the gate**: everything above it had already run, the encoder-ladder half never did, and a half-executed gate reported green | **RED** | + +Left alone on purpose: + +* `stream.rs:9426 pin_dir()` — names `../../fixtures` as a *fallback* for pins + that are committed crate-local; the gate above it (`require_pin`) panics + unconditionally on absence, so there is no skip to close, and the preflight's + invariant-4 census classifies gates by that root literal. +* All 44 `crate_pin` sites — already the lane-av1skipfix shape: an absent + COMMITTED pin is a repo defect and fails with no escape. + +Class-wide proof, root absent, **without** require envs — every gate prints +exactly one `SKIP` line: + +``` +a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders skip_lines=1 ok. 1 passed +bytes_per_frame_target_settles_within_20_percent skip_lines=1 ok. 1 passed +bitrate_target_lands_within_5_percent_over_48_frames skip_lines=1 ok. 1 passed +bytes_per_frame_controller_never_oscillates_past_its_clamp skip_lines=1 ok. 1 passed +quality_target_is_monotone_in_bytes_and_psnr skip_lines=1 ok. 1 passed +the_facade_codes_the_same_bytes_as_encode_sequence skip_lines=1 ok. 1 passed +filter_replay_final_matches_the_capture_decode skip_lines=1 ok. 1 passed +real_clip_encodes_within_its_quality_and_size_budget skip_lines=2 ok. 2 passed (filter matched both straddle tests; 1 each) +real_clip_encodes_within_its_quality_and_size_budget_at_a_straddle_size skip_lines=1 ok. 1 passed +the_encoders_own_streams_are_byte_identical_to_their_pins skip_lines=1 ok. 1 passed +a_libaom_stream_with_128_intra_blocks_in_inter_frames_decodes_exact skip_lines=1 ok. 1 passed +a_straddling_frame_decodes_exactly_on_both_reference_encoders_ladders skip_lines=1 ok. 1 passed +tile_wall_table_at_1080p / tile_search_wall_1080p / filter_stage_wall_1080p skip_lines=0 1 ignored (probes, #[ignore]d) +``` + +Class-wide proof, root absent, `EC_AV1_REQUIRE_FFMPEG=1 EC_AV1_REQUIRE_AOMENC=1` +— **all eleven are RED**: + +``` +a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders FAILED. 0 passed +bytes_per_frame_target_settles_within_20_percent FAILED. 0 passed +bitrate_target_lands_within_5_percent_over_48_frames FAILED. 0 passed +bytes_per_frame_controller_never_oscillates_past_its_clamp FAILED. 0 passed +quality_target_is_monotone_in_bytes_and_psnr FAILED. 0 passed +the_facade_codes_the_same_bytes_as_encode_sequence FAILED. 0 passed +filter_replay_final_matches_the_capture_decode FAILED. 0 passed +real_clip_encodes_within_its_quality_and_size_budget FAILED. 0 passed +the_encoders_own_streams_are_byte_identical_to_their_pins FAILED. 0 passed +a_libaom_stream_with_128_intra_blocks_in_inter_frames_decodes_exact FAILED. 0 passed +a_straddling_frame_decodes_exactly_on_both_reference_encoders_ladders FAILED. 0 passed +``` + +`EC_REQUIRE_FIXTURES=1` alone is enough as well (proved on the 1080p gate). + +## 4. Reconciliation: the clip path resolves through `EC_FIXTURES` + +**Choice: `library_fixture::root()` honours `EC_FIXTURES` first**, the +alternative being to make the preflight FAIL when the tests' default root is +absent. + +Why this one: + +* `EC_FIXTURES` is already the fleet-wide convention — `gen-fixtures.sh`, + `fetch-vectors.sh`, `scan-real-library.sh`, `gen-fixture-library.sh` and + `verify-fixture-library.sh` all take it, and every generator row in the + manifest is resolved through it. A crate reading `$ROOT/fixtures` + unconditionally was the odd one out, and that is the whole of the mismatch. +* The preflight cannot fix its own side of it. Failing whenever + `$ROOT/fixtures` is absent would RED every properly-staged runner that points + `EC_FIXTURES` at a library elsewhere — a false red, and a batch that cannot + start. +* One direction of the fix makes the two sides *identical by construction* + rather than keeping two roots in agreement by convention. The bad case + (preflight GREEN over a root the gates do not read) becomes unrepresentable. + +`EC_AV1_WALL_CLIP` still overrides with a path outside any root, which is why +`require_at` exists alongside `require`. + +One preflight change beyond the resolver: its last line no longer says a bare +`GREEN` when mode (i) was reported — it says `GREEN-WITH-FINDINGS` and how to +make it fatal. A reader who read only the verdict was reading GREEN over a tree +whose fixture root does not exist. + +`scripts/gen-fixture-library.sh` learned the resolver's **library-relative** +literal (a `library_fixture::require("video/…", …)` argument). Without it the +`RESOLVE` pass silently lost every clip row the moment a gate stopped spelling +`../../fixtures` — the preflight would have stopped checking the exact paths +whose absence this lane is about. The rule is scoped to lines that call the +resolver, so it adds no rows outside ec-av1. The manifest's row **set** is +unchanged (`fixtures/video`, both clips, `real-library-manifest.tsv` all still +present); only `required_by` line attributions moved, which is why +`scripts/fixture-library.tsv` is regenerated in this commit. + +### Four cases, raw output + +Gate: `a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders`. + +**1 — root present, `EC_FIXTURES` unset** (symlink from +`scripts/link-fixtures.sh`; the clip is 3320956 B): + +``` +1080p 2x1 tiles: 84488 bytes, sample-exact +1080p 2x2 tiles: 84208 bytes, sample-exact +1080p 4x2 tiles: 84685 bytes, sample-exact +test …a_1080p_multi_tile_stream… ... ok +test result: ok. 1 passed; 0 failed; … finished in 28.77s +``` + +**2 — root ABSENT, `EC_FIXTURES` set** (was the false green; the gate now runs +on the very tree the preflight validated): + +``` +$ EC_FIXTURES=$LIB EC_AV1_REQUIRE_FFMPEG=1 cargo test … a_1080p_multi_tile_stream… +1080p 2x1 tiles: 84488 bytes, sample-exact +1080p 2x2 tiles: 84208 bytes, sample-exact +1080p 4x2 tiles: 84685 bytes, sample-exact +test result: ok. 1 passed; 0 failed; … finished in 28.73s +``` + +**3 — root absent, `EC_FIXTURES` unset, no require env** — the documented skip, +one line: + +``` +SKIP a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders: + h264-1080p-23.976-8bit.mp4 absent at + /…/wt-av1clipprobe/crates/ec-av1/../../fixtures/video/h264-1080p-23.976-8bit.mp4 + -- this gate proved nothing; run scripts/link-fixtures.sh, point EC_FIXTURES + at a library root, or set EC_REQUIRE_FIXTURES=1 / EC_AV1_REQUIRE_FFMPEG=1 to + make this a failure. +test result: ok. 1 passed; 0 failed; … finished in 0.05s +``` + +**4 — both absent, require env set** — RED: + +``` +thread '…a_1080p_multi_tile_stream…' panicked at crates/ec-av1/src/library_fixture.rs:107:5: +a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders: the library clip is +absent at /…/wt-av1clipprobe/crates/ec-av1/../../fixtures/video/h264-1080p-23.976-8bit.mp4 +-- this gate would prove nothing. A linked worktree has no gitignored root `fixtures/`: +run scripts/link-fixtures.sh, or point EC_FIXTURES at a library root, or set +EC_REQUIRE_FIXTURES=1 / EC_AV1_REQUIRE_FFMPEG=1 only on a tree that really has the library. +test result: FAILED. 0 passed; 1 failed; … finished in 0.05s +``` + +A fifth, adversarial: `EC_FIXTURES` pointed at `$LIB/video` (one level too +deep) with `EC_REQUIRE_FIXTURES=1` — resolves to `…/fixtures/video/video/…` +and is RED, not a skip: + +``` +a_1080p_…: the library clip is absent at /…/fixtures/video/video/h264-1080p-23.976-8bit.mp4 … +test result: FAILED. 0 passed; 1 failed; +``` + +**GREEN-with-absent-root is dead** in both directions: + +| | preflight before | preflight after | gate before | gate after | +|---|---|---|---|---| +| root absent + `EC_FIXTURES` set | `GREEN (305 rows)`, `resolve 0 missing` — over a root no gate read | `GREEN (295 rows)`, and the header prints `the clip gates resolve $LIB too` | `SKIP … no fixture`, `ok` | **runs**, sample-exact, or RED under require | +| root absent, `EC_FIXTURES` unset | mode (i) reported, then a bare `GREEN` last | `GREEN-WITH-FINDINGS` (or `RED` under `EC_REQUIRE_FIXTURES=1`) | `SKIP`, `ok` | one `SKIP` line, `ok`; **RED** under any require env | +| root present | `GREEN` | `GREEN (295 rows)` | runs | runs | + +## 5. Non-vacuity and gate results + +* Root absent + require envs → **RED** (case 4, and all eleven gates in §3). +* Root absent, no require envs → **exactly one** `SKIP` line per gate naming the + resolved path and the escape hatch (§3 table). +* Root present → the 1080p gate still **passes**: + `1080p 2x1 84488 / 2x2 84208 / 4x2 84685 bytes, sample-exact`, `ok. 1 passed` + in 28.8 s release — and it passes with `EC_AV1_REQUIRE_FFMPEG=1 + EC_AV1_REQUIRE_AOMENC=1` set, so the new failure path is not armed on a good + tree. +* `real_clip_encodes_within_its_quality_and_size_budget` (+ its straddle + sibling), root present: `ok. 2 passed` in 6.2 s. +* The crate's own anti-regression scans, all green: + `gate_coverage` 13 passed (incl. `no_tool_presence_check_outside_its_probe`), + `refusal_inventory` 19 passed, `library_fixture` 1 passed. +* Preflight, root present: `GREEN (295 rows)`, `code-shape violations: 0`, + `pin gates: total=8 committed=21 uncommitted=0 ignored=0 assertless=0`, + invariant-1 positive control fired, invariant-4 census self-test passed. + Under `EC_REQUIRE_FIXTURES=1` with the root absent: exit 1, + `FAIL [mode i]`, `RED`. + +New test: `library_fixture::tests::the_resolver_follows_ec_fixtures_over_the_gitignored_root` +asserts the precedence itself, so the reconciliation is a check rather than a +sentence in a comment. + +## Notes for the merge owner + +* `scripts/fixture-library.tsv` is regenerated. `required_by` line attributions + moved because the edits shifted lines, and three paths carry fewer duplicate + rows than before — §6 has the measurement, the per-path deltas, and the proof + that the unique path set (159) is identical on both sides. The row set + relevant to `RESOLVE` did not change. +* The lane worktree needs `scripts/link-fixtures.sh` (or `EC_FIXTURES`) before + the clip gates can do anything; a `git archive` staging excludes the + gitignored root `fixtures/`, which is the staging gap the wave-3c-b owner + measured. After this commit that staging is no longer silent: the clip gates + are RED under the require envs instead of green. + +## 6. Reconciling `GREEN (295 rows)` against `GREEN (305 rows)` + +Both measured on the SAME library (`$LIB`, the clip is 3320956 B) — the branch +worktree's `fixtures` is a symlink to the same directory the primary checkout +holds as a real dir, so staging shape differs by a symlink and nothing else. + +``` +branch tip (lane-av1clipprobe), root = symlink to $LIB + verify-fixture-library: GREEN (295 rows) scripts/fixture-library.tsv: 295 rows +f33b9d41 (primary), root = real dir + verify-fixture-library: GREEN (305 rows) scripts/fixture-library.tsv: 305 rows +``` + +**The unique path set is IDENTICAL — 159 paths on both sides:** + +``` +$ diff <(grep -v '^#' base/scripts/fixture-library.tsv | cut -f1 | sort -u) \ + <(grep -v '^#' branch/scripts/fixture-library.tsv | cut -f1 | sort -u) +(empty) +``` + +So no path left `RESOLVE`. The 10-row difference is entirely DUPLICATE rows — +one row per call site for a path that several sites read — and it falls on +exactly three paths, all still present: + +| path | base rows | branch rows | delta | +|---|---|---|---| +| `fixtures` (the root) | 14 | 10 | −4 | +| `fixtures/video/h264-1080p-23.976-8bit.mp4` | 11 | 6 | −5 | +| `fixtures/video/h264-2160p-23.976-8bit.mp4` | 5 | 4 | −1 | +| | | | **−10** | + +Cause: those sites used to spell the root out (`…join("../../fixtures")`, +`…join("../../fixtures/video/h264-1080p-23.976-8bit.mp4")`), one literal per +site, one row per literal. They now call the resolver, and the resolver +emits one row per call site plus ONE directory row per file (not per call). +`required_by` for those three paths is therefore coarser: the forensic +"which gate reads this" attribution is thinner for 3 paths, while the +existence/non-emptiness check `RESOLVE` performs is unchanged. Every other +difference in the row-level diff is a 1:1 line-attribution shift from the +edits (`stream.rs:8153` → `8156`, `encode.rs:20345` → `21588`, …). + +**Does my `gen-fixture-library.sh` change alter the row set on a properly staged +tree? No — it is a byte-exact no-op there.** Measured on a throwaway worktree at +`f33b9d41`, staged with the same `$LIB`, running THIS LANE'S generator over the +BASE source: + +``` +gen-fixture-library: 305 rows -> /tmp/… (191 unnamed media literals, 4 unreferenced committed pins) +unique path set vs the base's committed manifest: IDENTICAL +rows: base=305 branchgen=305 +full row diff: (empty) +``` + +The two new passes (1b and the directory row) are scoped to lines that call +`library_fixture::require/require_at/path`, and no such line exists at +`f33b9d41`, so they emit nothing. The 295 is caused by the SOURCE edits alone. + +I am confident about the branch manifest: it is what this branch's generator +produces from this branch's source on a properly staged tree, which is the only +definition that keeps DRIFT meaningful. The merge note stands — on a +`fixture-library.tsv` conflict take this lane's version and re-run the verifier. diff --git a/scripts/fixture-library.tsv b/scripts/fixture-library.tsv index 832d7c90..1e678491 100644 --- a/scripts/fixture-library.tsv +++ b/scripts/fixture-library.tsv @@ -26,134 +26,134 @@ # sync deliberately excluded the .tar.gz blobs; nothing in crates/ reads a # blob, so the extracted directories are the whole requirement. # Unreferenced committed pins carried as rows: 4 -crates/ec-av1/fixtures/420_intrabc_rect4_witness.obu crates/ec-av1/src/stream.rs:8153 captured - ok yes d01352af5059919cdce733abdcbae8e8240ac3c2a6190fa1bd96d3c6f945b979 +crates/ec-av1/fixtures/420_intrabc_rect4_witness.obu crates/ec-av1/src/stream.rs:8156 captured - ok yes d01352af5059919cdce733abdcbae8e8240ac3c2a6190fa1bd96d3c6f945b979 crates/ec-av1/fixtures/422_allskip_2f.obu crates/ec-av1/src/stream.rs:2311 captured - ok yes ba4932c14f95971b5f25321b04abce80c9fdd5de4b1fe6fffcdad82aaea87ce1 crates/ec-av1/fixtures/422_intrabc_sb128_strip_notxsearch.obu crates/ec-av1/src/stream.rs:2373 captured - ok yes 80dd0d4e93fd6c3d4b7188a43e69d9638f2bece38edfab60ff3582628314b5ec crates/ec-av1/fixtures/422_intrabc_sb128_strip.obu crates/ec-av1/src/stream.rs:2368 captured - ok yes f92000db86df7acc577d60dd1d0d97454bff4705799ea59d9de34eb5a71dbbcd crates/ec-av1/fixtures/422_residual_compound_warp_16f.obu crates/ec-av1/src/stream.rs:2590 captured - ok yes d78e2afb43ce311d3d82335a945c6f80f62db4537966d881c1349a68b3aecb95 crates/ec-av1/fixtures/422_residual_compound_warp_nolr_16f.obu crates/ec-av1/src/stream.rs:2669 captured - ok yes 8bed368f7ec4bca772137c6a9c2af89e1b2767ed5f937b91bd9e72ec60aeb42f crates/ec-av1/fixtures/422_sb128_3f.obu crates/ec-av1/src/stream.rs:2312 captured - ok yes 0b851799d99cb4d141a7d042138a3999aad7e0fb24d69c670bca1d38c286dce9 -crates/ec-av1/fixtures/444_intrabc_rect4_witness.obu crates/ec-av1/src/stream.rs:8147 captured - ok yes 7fe888edf18caa74bdb415f0de643dc59963e87e0255d77191200b7a62eb2542 -crates/ec-av1/fixtures/444_leaf8_oob.obu crates/ec-av1/src/stream.rs:8560 captured - ok yes 72bed2791d1ceba8be7926a052c7838c5d96d4f9d56d28fb69789a753d3593af -crates/ec-av1/fixtures/444_lossy_rect4_inter_witness.obu crates/ec-av1/src/stream.rs:21215 captured - ok yes 77f727e76d81fe48cd03709f799131677c04869b163e18d78e96bc742ec69153 -crates/ec-av1/fixtures/444_lossy_rect4_inter_witness.obu crates/ec-av1/src/stream.rs:7727 captured - ok yes 77f727e76d81fe48cd03709f799131677c04869b163e18d78e96bc742ec69153 -crates/ec-av1/fixtures/444_lossy_rect4_odd_130x122.obu crates/ec-av1/src/stream.rs:47096 captured - ok yes c87ac65b77579afd2938669b0cbe3ec44c3abf775c0223cacb9d14b8c2eee27c -crates/ec-av1/fixtures/444_lossy_rect4_wide_256x128.obu crates/ec-av1/src/stream.rs:47104 captured - ok yes 06621606c11ae805f784a1c9736db6301a925a4fa3154e2fc38db1df7ad9b826 -crates/ec-av1/fixtures/444_lossy_superres_256x128_d12_10bit.obu crates/ec-av1/src/stream.rs:14606 captured - ok yes 95b49d7aa81843399ee3aa64bdadfec8f4037bcc3f861923c9b2da3bc868b223 -crates/ec-av1/fixtures/444_lossy_superres_256x128_d12_12bit.obu crates/ec-av1/src/stream.rs:14653 captured - ok yes 973bf374c0185c4e6301509ce834cef01318e6cdb9488fd258118d7ec89bdd04 -crates/ec-av1/fixtures/444_lossy_superres_256x128_d12.obu crates/ec-av1/src/stream.rs:47246 captured - ok yes 450caa3e31526a8973b9f64d5030a2f11b87bd60fac07aef121cb62af9bf85ff -crates/ec-av1/fixtures/444_lossy_superres_256x128_d9_12bit.obu crates/ec-av1/src/stream.rs:14680 captured - ok yes 898c775108495b998cb5ec9b08e194d4656ed0140aa8e7e7236892d468bbad99 -crates/ec-av1/fixtures/444_lossy_superres_256x128_d9.obu crates/ec-av1/src/stream.rs:47632 captured - ok yes 3d619ee0fda3d9bb9cf8ff0541ba00ea5d83ae38cd8eec1322f8dbbbe6a5ec96 -crates/ec-av1/fixtures/444_lossy_superres_mode2_256x128_10bit.obu crates/ec-av1/src/stream.rs:14721 captured - ok yes 699398aba58fb53b80e05d3d214eb746a3c91945e01da6b47488513f20b55668 -crates/ec-av1/fixtures/444_lossy_superres_mode2_256x128_12bit.obu crates/ec-av1/src/stream.rs:14768 captured - ok yes 18aa8b3124ab10672f22577a8eea81e44141a3d0bb506104aee2f950254a2e9f -crates/ec-av1/fixtures/444_lossy_superres_mode2_256x128.obu crates/ec-av1/src/stream.rs:47689 captured - ok yes c18496cf3b7db0feca9aa904024cec2115be80b5b94f87c848ac52f9b32ffd97 -crates/ec-av1/fixtures/444_lossy_superres_mode2_256x128.obu crates/ec-av1/src/stream.rs:47738 captured - ok yes c18496cf3b7db0feca9aa904024cec2115be80b5b94f87c848ac52f9b32ffd97 -crates/ec-av1/fixtures/444_quad_leaf_tx_type.obu crates/ec-av1/src/stream.rs:20978 captured - ok yes a06c9f7a0862252f6ab7ebdcec340d0602e730e38089365f14747db37f8e78d5 -crates/ec-av1/fixtures/444_rect_strip_leaf_tx_type.obu crates/ec-av1/src/stream.rs:21073 captured - ok yes 06174a66e92aaeb751a8e86db59711fcb1f18d74bde2d77e1ef1be7983eb7c80 -crates/ec-av1/fixtures/444_sb128rect_lr_witness.obu crates/ec-av1/src/stream.rs:14830 captured - ok yes 27825e14633a4b23e37d48a2acdc7f5d814ca4fadd0b8797d72a1ffb34061e80 -crates/ec-av1/fixtures/444_sb128rect_lr_witness.obu crates/ec-av1/src/stream.rs:21108 captured - ok yes 27825e14633a4b23e37d48a2acdc7f5d814ca4fadd0b8797d72a1ffb34061e80 -crates/ec-av1/fixtures/444_sb128rect_lr_witness.obu crates/ec-av1/src/stream.rs:7526 captured - ok yes 27825e14633a4b23e37d48a2acdc7f5d814ca4fadd0b8797d72a1ffb34061e80 -crates/ec-av1/fixtures/444_sb128rect_lr_witness.obu crates/ec-av1/src/stream.rs:8242 captured - ok yes 27825e14633a4b23e37d48a2acdc7f5d814ca4fadd0b8797d72a1ffb34061e80 +crates/ec-av1/fixtures/444_intrabc_rect4_witness.obu crates/ec-av1/src/stream.rs:8150 captured - ok yes 7fe888edf18caa74bdb415f0de643dc59963e87e0255d77191200b7a62eb2542 +crates/ec-av1/fixtures/444_leaf8_oob.obu crates/ec-av1/src/stream.rs:8563 captured - ok yes 72bed2791d1ceba8be7926a052c7838c5d96d4f9d56d28fb69789a753d3593af +crates/ec-av1/fixtures/444_lossy_rect4_inter_witness.obu crates/ec-av1/src/stream.rs:21218 captured - ok yes 77f727e76d81fe48cd03709f799131677c04869b163e18d78e96bc742ec69153 +crates/ec-av1/fixtures/444_lossy_rect4_inter_witness.obu crates/ec-av1/src/stream.rs:7730 captured - ok yes 77f727e76d81fe48cd03709f799131677c04869b163e18d78e96bc742ec69153 +crates/ec-av1/fixtures/444_lossy_rect4_odd_130x122.obu crates/ec-av1/src/stream.rs:47103 captured - ok yes c87ac65b77579afd2938669b0cbe3ec44c3abf775c0223cacb9d14b8c2eee27c +crates/ec-av1/fixtures/444_lossy_rect4_wide_256x128.obu crates/ec-av1/src/stream.rs:47111 captured - ok yes 06621606c11ae805f784a1c9736db6301a925a4fa3154e2fc38db1df7ad9b826 +crates/ec-av1/fixtures/444_lossy_superres_256x128_d12_10bit.obu crates/ec-av1/src/stream.rs:14609 captured - ok yes 95b49d7aa81843399ee3aa64bdadfec8f4037bcc3f861923c9b2da3bc868b223 +crates/ec-av1/fixtures/444_lossy_superres_256x128_d12_12bit.obu crates/ec-av1/src/stream.rs:14656 captured - ok yes 973bf374c0185c4e6301509ce834cef01318e6cdb9488fd258118d7ec89bdd04 +crates/ec-av1/fixtures/444_lossy_superres_256x128_d12.obu crates/ec-av1/src/stream.rs:47253 captured - ok yes 450caa3e31526a8973b9f64d5030a2f11b87bd60fac07aef121cb62af9bf85ff +crates/ec-av1/fixtures/444_lossy_superres_256x128_d9_12bit.obu crates/ec-av1/src/stream.rs:14683 captured - ok yes 898c775108495b998cb5ec9b08e194d4656ed0140aa8e7e7236892d468bbad99 +crates/ec-av1/fixtures/444_lossy_superres_256x128_d9.obu crates/ec-av1/src/stream.rs:47639 captured - ok yes 3d619ee0fda3d9bb9cf8ff0541ba00ea5d83ae38cd8eec1322f8dbbbe6a5ec96 +crates/ec-av1/fixtures/444_lossy_superres_mode2_256x128_10bit.obu crates/ec-av1/src/stream.rs:14724 captured - ok yes 699398aba58fb53b80e05d3d214eb746a3c91945e01da6b47488513f20b55668 +crates/ec-av1/fixtures/444_lossy_superres_mode2_256x128_12bit.obu crates/ec-av1/src/stream.rs:14771 captured - ok yes 18aa8b3124ab10672f22577a8eea81e44141a3d0bb506104aee2f950254a2e9f +crates/ec-av1/fixtures/444_lossy_superres_mode2_256x128.obu crates/ec-av1/src/stream.rs:47696 captured - ok yes c18496cf3b7db0feca9aa904024cec2115be80b5b94f87c848ac52f9b32ffd97 +crates/ec-av1/fixtures/444_lossy_superres_mode2_256x128.obu crates/ec-av1/src/stream.rs:47745 captured - ok yes c18496cf3b7db0feca9aa904024cec2115be80b5b94f87c848ac52f9b32ffd97 +crates/ec-av1/fixtures/444_quad_leaf_tx_type.obu crates/ec-av1/src/stream.rs:20981 captured - ok yes a06c9f7a0862252f6ab7ebdcec340d0602e730e38089365f14747db37f8e78d5 +crates/ec-av1/fixtures/444_rect_strip_leaf_tx_type.obu crates/ec-av1/src/stream.rs:21076 captured - ok yes 06174a66e92aaeb751a8e86db59711fcb1f18d74bde2d77e1ef1be7983eb7c80 +crates/ec-av1/fixtures/444_sb128rect_lr_witness.obu crates/ec-av1/src/stream.rs:14833 captured - ok yes 27825e14633a4b23e37d48a2acdc7f5d814ca4fadd0b8797d72a1ffb34061e80 +crates/ec-av1/fixtures/444_sb128rect_lr_witness.obu crates/ec-av1/src/stream.rs:21111 captured - ok yes 27825e14633a4b23e37d48a2acdc7f5d814ca4fadd0b8797d72a1ffb34061e80 +crates/ec-av1/fixtures/444_sb128rect_lr_witness.obu crates/ec-av1/src/stream.rs:7529 captured - ok yes 27825e14633a4b23e37d48a2acdc7f5d814ca4fadd0b8797d72a1ffb34061e80 +crates/ec-av1/fixtures/444_sb128rect_lr_witness.obu crates/ec-av1/src/stream.rs:8245 captured - ok yes 27825e14633a4b23e37d48a2acdc7f5d814ca4fadd0b8797d72a1ffb34061e80 crates/ec-av1/fixtures/av112bit-compound-masked.obu (committed pin: NO source reference found) captured - ok yes 83625de2ed347d457eb67f9781eed3fea598ef035f29bbc311d7025fe178c691 crates/ec-av1/fixtures/av112bit-compound.obu (committed pin: NO source reference found) captured - ok yes a839cff534b89d5cd52681dd43a7dedc10131d8dd7725bdfa5502d6bc4421740 crates/ec-av1/fixtures/av112bit-inter.obu (committed pin: NO source reference found) captured - ok yes e679d577e61b4a8bc99685355cca8c0473cfb637284b07786a6c53b1755553d9 crates/ec-av1/fixtures/av112bit-key.obu (committed pin: NO source reference found) captured - ok yes c74f62b57f71f7c36c49ea1feeb482786a2650e5c7f66610949b5f65fbbed8d1 -crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu crates/ec-av1/src/stream.rs:20911 captured - ok yes e4cff46cb1700527c68efc866db27a2835705e949d646f73f0c9df577d594bd6 -crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu crates/ec-av1/src/stream.rs:21011 captured - ok yes e4cff46cb1700527c68efc866db27a2835705e949d646f73f0c9df577d594bd6 -crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu crates/ec-av1/src/stream.rs:21243 captured - ok yes e4cff46cb1700527c68efc866db27a2835705e949d646f73f0c9df577d594bd6 -crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:14833 regenerated scripts/gen-fixtures.sh ok - - -crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:14882 regenerated scripts/gen-fixtures.sh ok - - -crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:14939 regenerated scripts/gen-fixtures.sh ok - - +crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu crates/ec-av1/src/stream.rs:20914 captured - ok yes e4cff46cb1700527c68efc866db27a2835705e949d646f73f0c9df577d594bd6 +crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu crates/ec-av1/src/stream.rs:21014 captured - ok yes e4cff46cb1700527c68efc866db27a2835705e949d646f73f0c9df577d594bd6 +crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu crates/ec-av1/src/stream.rs:21246 captured - ok yes e4cff46cb1700527c68efc866db27a2835705e949d646f73f0c9df577d594bd6 +crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:14836 regenerated scripts/gen-fixtures.sh ok - - +crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:14885 regenerated scripts/gen-fixtures.sh ok - - +crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:14942 regenerated scripts/gen-fixtures.sh ok - - crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:2315 regenerated scripts/gen-fixtures.sh ok - - crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:2379 regenerated scripts/gen-fixtures.sh ok - - crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:2594 regenerated scripts/gen-fixtures.sh ok - - crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:2673 regenerated scripts/gen-fixtures.sh ok - - -crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:44346 regenerated scripts/gen-fixtures.sh ok - - -crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:44423 regenerated scripts/gen-fixtures.sh ok - - -crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:45445 regenerated scripts/gen-fixtures.sh ok - - -crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:9428 regenerated scripts/gen-fixtures.sh ok - - -crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:9455 regenerated scripts/gen-fixtures.sh ok - - -crates/ec-av1/fixtures/filter_intra_8x16_strip_seed49.obu crates/ec-av1/src/stream.rs:39075 captured - ok yes 6f837e47ad0a67f31c3998aa789cf0811e7540ac2114981853a0148744cb76c2 -crates/ec-av1/fixtures/gm_small_side_witness.obu crates/ec-av1/src/stream.rs:44351 captured - ok yes f1cdbcbb8d6d469c7957d70252ab42b24ab75f48a717600ffa25991458775dca -crates/ec-av1/fixtures/gm_small_side_witness.obu crates/ec-av1/src/stream.rs:44428 captured - ok yes f1cdbcbb8d6d469c7957d70252ab42b24ab75f48a717600ffa25991458775dca -crates/ec-av1/fixtures/gm_small_side_witness.obu crates/ec-av1/src/stream.rs:44511 captured - ok yes f1cdbcbb8d6d469c7957d70252ab42b24ab75f48a717600ffa25991458775dca -crates/ec-av1/fixtures/gm_small_side_witness.obu crates/ec-av1/src/stream.rs:45440 captured - ok yes f1cdbcbb8d6d469c7957d70252ab42b24ab75f48a717600ffa25991458775dca -crates/ec-av1/fixtures/golden3-pin.obu crates/ec-av1/src/stream.rs:24061 captured - ok yes 11c9d5331cffa6614c8265ad5fa685d5ce9155db8439949b48ec4a652ace95cf -crates/ec-av1/fixtures/golden4-pin.obu crates/ec-av1/src/stream.rs:24115 recovered-original - ok yes 1754023e44e46edaebc2c05065bf1c65db1a41354577cbf71c0e8ebe737ae14a -crates/ec-av1/fixtures/golden4-pin.obu crates/ec-av1/src/stream.rs:24116 recovered-original - ok yes 1754023e44e46edaebc2c05065bf1c65db1a41354577cbf71c0e8ebe737ae14a -crates/ec-av1/fixtures/golden6-mismatch.obu crates/ec-av1/src/stream.rs:33685 recovered-original - ok yes c56909b98542192b03f3a945e153475aa57a58a1586bf166513297296cb225b3 -crates/ec-av1/fixtures/golden6-mismatch.obu crates/ec-av1/src/stream.rs:33686 recovered-original - ok yes c56909b98542192b03f3a945e153475aa57a58a1586bf166513297296cb225b3 -crates/ec-av1/fixtures/golden7-forwarding-mismatch.obu crates/ec-av1/src/stream.rs:24153 recovered-original - ok yes 81b3bf657a85e95085287b30d97dee93ba5aea0ed1db1e1f4fcd19a06afc17be -crates/ec-av1/fixtures/golden7-forwarding-mismatch.obu crates/ec-av1/src/stream.rs:24154 recovered-original - ok yes 81b3bf657a85e95085287b30d97dee93ba5aea0ed1db1e1f4fcd19a06afc17be -crates/ec-av1/fixtures/grain_cdef_lr_128x128.obu crates/ec-av1/src/stream.rs:14936 captured - ok yes 06f210b87b5c79eb729c559050e073abbe226c4dad1df3dcaa113b03011ad732 -crates/ec-av1/fixtures/reelb_arf_witness.obu crates/ec-av1/src/stream.rs:14821 captured - ok yes 7f3b060da5aa9c537633e760c4af71316237db7692f6ae0d459bd2c2dd867d37 -crates/ec-av1/fixtures/reelb_arf_witness.obu crates/ec-av1/src/stream.rs:43573 captured - ok yes 7f3b060da5aa9c537633e760c4af71316237db7692f6ae0d459bd2c2dd867d37 -crates/ec-av1/fixtures/reelb_arf_witness.obu crates/ec-av1/src/stream.rs:43655 captured - ok yes 7f3b060da5aa9c537633e760c4af71316237db7692f6ae0d459bd2c2dd867d37 -crates/ec-av1/fixtures/reelb_head_key_frame.obu crates/ec-av1/src/stream.rs:15074 captured - ok yes 53c311dec790bb2413afdde92cb24de498a7c4f66f6f0c7f4f5910ab0d2c65dc -crates/ec-av1/fixtures/reelb_head_mvclamp_witness.obu crates/ec-av1/src/stream.rs:44593 captured - ok yes 451a9b138995e636f22308847a123b5c8621d4908cd93772cf5bbf2b37df39d7 -crates/ec-av1/fixtures/reelb_intra14_witness.obu crates/ec-av1/src/stream.rs:43402 captured - ok yes 0eff603bf1608e47faf5e6729670c4c77cf5c674dbad3a1533ac6660151fd90e -crates/ec-av1/fixtures/reelb_kf900.obu crates/ec-av1/src/stream.rs:15216 captured - ok yes a273ae99328388be14a1ff8fa1c5a6d391a9948159eaef120e1b50e02015eb83 -crates/ec-av1/fixtures/reelb_kf900.obu crates/ec-av1/src/stream.rs:45371 captured - ok yes a273ae99328388be14a1ff8fa1c5a6d391a9948159eaef120e1b50e02015eb83 -crates/ec-av1/fixtures/reelb_rect64_intra16x4_witness.obu crates/ec-av1/src/stream.rs:43491 captured - ok yes c9e721088766163b9dbeb9fa8dd8b257ff0ec7f9157fc350de4d3c33cd9ec4e4 -crates/ec-av1/fixtures/reelb_ss300_key_frame.obu crates/ec-av1/src/stream.rs:15165 captured - ok yes 7e3ddf0d602f9496b2f7eb11f051fd4a045020e094d5bc02f83825e2c494ef12 -crates/ec-av1/fixtures/reelb_ss600_key_frame.obu crates/ec-av1/src/stream.rs:15257 captured - ok yes 36de46676ed7de7049d4dabe8571d8cd31c8a1f53d72011c0ee532a7c6725cd6 -crates/ec-av1/fixtures/ii-flake-1.obu crates/ec-av1/src/stream.rs:31572 captured - ok yes 700ded3e61e15bc3573d339d7fcc6ab94500adb796c30021094d354306662238 -crates/ec-av1/fixtures/ii-flake-2.obu crates/ec-av1/src/stream.rs:31573 captured - ok yes edc4ad3a6c00c6bc909c626fa24433ef31a88ed519ed57403f5373a160e590af -crates/ec-av1/fixtures/ii-flake-3.obu crates/ec-av1/src/stream.rs:31574 captured - ok yes 994bfbdc952ecef18ae1560d5e7f121ba1000172e0bc2ad05e5b8cfaa17b15cb -crates/ec-av1/fixtures/ii-flake-5.obu crates/ec-av1/src/stream.rs:31575 captured - ok yes f43fe77ea0e8ddd9c1524b642e09f935921cb0d00c4a60061a52d2260af38b9a -crates/ec-av1/fixtures/ii-flake-6.obu crates/ec-av1/src/stream.rs:31576 captured - ok yes 84a1f60011dfdb77ede98ce95a25d247d270b0af1cff2c44aa1e6b311ca63dce -crates/ec-av1/fixtures/ii-flake-7.obu crates/ec-av1/src/stream.rs:31577 captured - ok yes 61ba4d114aa55ebcf95ae691abbce3307146a2d969c0627ea3ceea02f3875574 -crates/ec-av1/fixtures/ii-flake-8.obu crates/ec-av1/src/stream.rs:31578 captured - ok yes f19d3d80ed564850cec02a26cfe7ab00e282afa7896821c535a117f5541bef5d -crates/ec-av1/fixtures/ii-flake-9.obu crates/ec-av1/src/stream.rs:31582 captured - ok yes 0df4874737cc615258c0fdfb4bcb157c9a3663127cbf0a896af44d4deb83c653 -crates/ec-av1/fixtures/intra128_in_inter_screen_witness.obu crates/ec-av1/src/stream.rs:44073 captured - ok yes c84a493f90327f5d2bea038a42e87cbfe56762b5c6a856d76b4bff9797c5ea09 -crates/ec-av1/fixtures/intra128_in_inter_witness2.obu crates/ec-av1/src/stream.rs:44005 captured - ok yes cace4cc3a5ba4dc5f8c7c219e87c9052351e832cad3d7f4c8ffe09288a6d7ccf -crates/ec-av1/fixtures/intra128_in_inter_witness2.obu crates/ec-av1/src/stream.rs:44350 captured - ok yes cace4cc3a5ba4dc5f8c7c219e87c9052351e832cad3d7f4c8ffe09288a6d7ccf -crates/ec-av1/fixtures/intra128_in_inter_witness2.obu crates/ec-av1/src/stream.rs:44427 captured - ok yes cace4cc3a5ba4dc5f8c7c219e87c9052351e832cad3d7f4c8ffe09288a6d7ccf -crates/ec-av1/fixtures/intra128_in_inter_witness.obu crates/ec-av1/src/stream.rs:43909 captured - ok yes dd41fc39367a3d38bf8a8a8106dc30d91b716b2a9123fdfa4716930f4f98caf9 -crates/ec-av1/fixtures/intra14_256x192_10bit.obu crates/ec-av1/src/stream.rs:42727 captured - ok yes ab6fae0a256af6410e8200f10827a3e965dee7b2d7ab63710e94968bddab23a2 -crates/ec-av1/fixtures/intra14_256x192_8bit.obu crates/ec-av1/src/stream.rs:42735 captured - ok yes 5e50eb6d4492e806a2803988d92bd47f069ca54e02c06344d5500c6b72deb861 -crates/ec-av1/fixtures/intrabc_tx4_chroma_kf.obu crates/ec-av1/src/stream.rs:12401 captured - ok yes bc699af4a6e7c1c5657f041e8cbdf2d3d899ddb80ec2a549a950b7cebb5b41bd -crates/ec-av1/fixtures/ll444_128root_lossless.obu crates/ec-av1/src/stream.rs:7013 captured - ok yes bbffb979d20d581deb271aac75b7ee779dde57c024524ed6b1389356f55ca0fa -crates/ec-av1/fixtures/ll444_128root_lossless.obu crates/ec-av1/src/stream.rs:7128 captured - ok yes bbffb979d20d581deb271aac75b7ee779dde57c024524ed6b1389356f55ca0fa -crates/ec-av1/fixtures/ll444_128root_lossless.obu crates/ec-av1/src/stream.rs:7302 captured - ok yes bbffb979d20d581deb271aac75b7ee779dde57c024524ed6b1389356f55ca0fa -crates/ec-av1/fixtures/ll444_defaultp_inter_strip.obu crates/ec-av1/src/stream.rs:8413 captured - ok yes 1e6dd4e05038c8d51e2c8d29f8c337130c4fea0aed629415535e6e53af9a2c72 -crates/ec-av1/fixtures/ll444_ibc_rect.obu crates/ec-av1/src/stream.rs:8972 captured - ok yes 482dedca0201beea9b0a05720b5da7fe93c350c9fea7699cdb010c3fbc227ec0 -crates/ec-av1/fixtures/ll444_intrabc_rect_l2.obu crates/ec-av1/src/stream.rs:7248 captured - ok yes f0de080edce35d34cdd628b71f63dc452f946e8328352b69d3c1da090a54ec67 -crates/ec-av1/fixtures/ll444-lossless-key.obu crates/ec-av1/src/stream.rs:6715 captured - ok yes f496ef0a1171c2bc66d411cc60db05db547dcdb49cd834d4e0543de9db441374 -crates/ec-av1/fixtures/ll444_minp64_128root_control.obu crates/ec-av1/src/stream.rs:7064 captured - ok yes 4cadce41e1f8967567b32f5cf8abaa46ffdf4fd6d4afe784c8d99a7f6bf1ae4c -crates/ec-av1/fixtures/ll444_minp64_128root_control.obu crates/ec-av1/src/stream.rs:7168 captured - ok yes 4cadce41e1f8967567b32f5cf8abaa46ffdf4fd6d4afe784c8d99a7f6bf1ae4c -crates/ec-av1/fixtures/ll444_minp64_inter.obu crates/ec-av1/src/stream.rs:6867 captured - ok yes 5a070fa351a3f2109de855234f2b3d0a872970f3e7f658db21f65c12eeb135b4 -crates/ec-av1/fixtures/ll444_minp8_inter.obu crates/ec-av1/src/stream.rs:21168 captured - ok yes 04fb6d38de5382e647bfb70b6a17802f1fccc5502e6698c0394167891f2b27dc -crates/ec-av1/fixtures/ll444_minp8_inter.obu crates/ec-av1/src/stream.rs:7388 captured - ok yes 04fb6d38de5382e647bfb70b6a17802f1fccc5502e6698c0394167891f2b27dc -crates/ec-av1/fixtures/ll444_rect16x4_chroma_reach.obu crates/ec-av1/src/stream.rs:11480 captured - ok yes 382e67c0cc0988d14c500a62f5c3457a3f3b5f76d05acce2f655b1089bb8e7e3 -crates/ec-av1/fixtures/ll444_sb64_1to4_lossless.obu crates/ec-av1/src/stream.rs:46905 captured - ok yes fdb6467987095b99c8eb51b48743691d906b2d99d069f71f1d51b1abb6d2056e -crates/ec-av1/fixtures/lossless_sb128_rect_kf.obu crates/ec-av1/src/stream.rs:8651 captured - ok yes 013b07979c8be999c70d47f32768c2bf959be086a893f60dde1b0f5e35d4f475 -crates/ec-av1/fixtures/lr-sgr-r7.obu crates/ec-av1/src/stream.rs:30683 recovered-original - ok yes 6b95b20e3377430ffae0b2ce86fad9502e0dedf13cd6c38ab7f5af4a8b21f33d -crates/ec-av1/fixtures/lr-sgr-r7.obu crates/ec-av1/src/stream.rs:30684 recovered-original - ok yes 6b95b20e3377430ffae0b2ce86fad9502e0dedf13cd6c38ab7f5af4a8b21f33d -crates/ec-av1/fixtures/palette_screen_leaf8_witness.obu crates/ec-av1/src/stream.rs:44249 captured - ok yes 8d036606116913c82b774286bb0a3efe616d54151784897ba62b13d12fdef06e -crates/ec-av1/fixtures/palette_screen_strip16_witness_10bit.obu crates/ec-av1/src/stream.rs:44293 captured - ok yes aaabbb001d87f61ee534fd17c2d558ad906d1c33d357decb86cfd26e593da0db -crates/ec-av1/fixtures/palette_screen_witness_10bit.obu crates/ec-av1/src/stream.rs:14823 captured - ok yes a60a8bc132e5db7bed3eb46e03e9ed9828811bdffb96914958f3c94b107c3cda -crates/ec-av1/fixtures/palette_screen_witness_10bit.obu crates/ec-av1/src/stream.rs:44168 captured - ok yes a60a8bc132e5db7bed3eb46e03e9ed9828811bdffb96914958f3c94b107c3cda -crates/ec-av1/fixtures/palette_screen_witness.obu crates/ec-av1/src/stream.rs:14822 captured - ok yes 635a512b866f0fab7d45eb4f94f2a5b15008fe5a5317ac1ca45ffd3381198b8b -crates/ec-av1/fixtures/palette_screen_witness.obu crates/ec-av1/src/stream.rs:43574 captured - ok yes 635a512b866f0fab7d45eb4f94f2a5b15008fe5a5317ac1ca45ffd3381198b8b -crates/ec-av1/fixtures/palette_screen_witness.obu crates/ec-av1/src/stream.rs:44167 captured - ok yes 635a512b866f0fab7d45eb4f94f2a5b15008fe5a5317ac1ca45ffd3381198b8b -crates/ec-av1/fixtures/rect64_dq_drift.obu crates/ec-av1/src/stream.rs:39901 captured - ok yes 094e51bb21b6caccc905417e95a03f9131b448071567d0b14ec8850799ea2501 -crates/ec-av1/fixtures/rect-flake-1.obu crates/ec-av1/src/stream.rs:31585 captured - ok yes a3869b5d2bd8a8bc5413e0d039d5e3375a48601cdeb2edb8d4b732402926d357 -crates/ec-av1/fixtures/rect-flake-2.obu crates/ec-av1/src/stream.rs:31590 captured - ok yes c780ddee1adf25cf63a6ba70ff449820f6f4474b23ef16615c1e843ad0c86adb -crates/ec-av1/fixtures/rect-flake-3.obu crates/ec-av1/src/stream.rs:31594 captured - ok yes 3b23d204549b7bcfbd7166b1b3e2920580236c78de12e8f23f7fb64c1864f3e6 -crates/ec-av1/fixtures/sbpart-pin.obu crates/ec-av1/src/stream.rs:39984 captured - ok yes 62238fc077f45d89745d4d254b9c0465464003529da3b42d0a65631fbb7e16e9 -crates/ec-av1/fixtures/superres_alltools_sb128_320x180.obu crates/ec-av1/src/stream.rs:14883 captured - ok yes e2b515ce487acd2d720d5a000a6f26e66fd03ef2b1a4cb12daa6fdf31a55d519 -crates/ec-av1/fixtures/superres_alltools_sb128_320x180.obu crates/ec-av1/src/stream.rs:14935 captured - ok yes e2b515ce487acd2d720d5a000a6f26e66fd03ef2b1a4cb12daa6fdf31a55d519 -crates/ec-av1/fixtures/superres_alltools_sb128_320x180.obu crates/ec-av1/src/stream.rs:15038 captured - ok yes e2b515ce487acd2d720d5a000a6f26e66fd03ef2b1a4cb12daa6fdf31a55d519 -crates/ec-av1/fixtures/superres_kf_cdef_lr_64x64.obu crates/ec-av1/src/stream.rs:14361 captured - ok yes 5912e251bcd5d0f284f647616f91b19b579238c16fa85c0294a06548088d7336 -crates/ec-av1/fixtures/reelc_kf2700.obu crates/ec-av1/src/stream.rs:15112 captured - ok yes 16981094eaab516bd1007b0a47d1fc653fbb58b7e18a40af6c12d934bf96fe63 -crates/ec-av1/fixtures/reelc_sb128_inter_witness.obu crates/ec-av1/src/stream.rs:43746 captured - ok yes 09d995946d27695ef4b7b1a24a4d7ad85f8e2c8176d58ee54e825efc061f9cbc -crates/ec-av1/fixtures/reelc_sb128_inter_witness.obu crates/ec-av1/src/stream.rs:44349 captured - ok yes 09d995946d27695ef4b7b1a24a4d7ad85f8e2c8176d58ee54e825efc061f9cbc -crates/ec-av1/fixtures/reelc_sb128_inter_witness.obu crates/ec-av1/src/stream.rs:44426 captured - ok yes 09d995946d27695ef4b7b1a24a4d7ad85f8e2c8176d58ee54e825efc061f9cbc -crates/ec-av1/fixtures/reelc_sb128_inter_witness.obu crates/ec-av1/src/stream.rs:45441 captured - ok yes 09d995946d27695ef4b7b1a24a4d7ad85f8e2c8176d58ee54e825efc061f9cbc -crates/ec-av1/fixtures/warp-flake-5.obu crates/ec-av1/src/stream.rs:31570 captured - ok yes 1a99f9e5b257eed0ebae055441904d6c40962a26c0c2d63c3e051732569ff0a0 -crates/ec-av1/fixtures/warp-flake-7.obu crates/ec-av1/src/stream.rs:31571 captured - ok yes c2f8b93f5a59c56b1c4453ea789e0fc955557ed9b63c0e2cb8683fa483eff2b5 -crates/ec-av1/fixtures/warp-mismatch.obu crates/ec-av1/src/stream.rs:31569 captured - ok yes 24cca5beb41c1078f8109d8fa7e35f10cc1eefb67c6d1d1ea248a0b6842287bb +crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:44349 regenerated scripts/gen-fixtures.sh ok - - +crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:44426 regenerated scripts/gen-fixtures.sh ok - - +crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:45452 regenerated scripts/gen-fixtures.sh ok - - +crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:9431 regenerated scripts/gen-fixtures.sh ok - - +crates/ec-av1/fixtures crates/ec-av1/src/stream.rs:9458 regenerated scripts/gen-fixtures.sh ok - - +crates/ec-av1/fixtures/filter_intra_8x16_strip_seed49.obu crates/ec-av1/src/stream.rs:39078 captured - ok yes 6f837e47ad0a67f31c3998aa789cf0811e7540ac2114981853a0148744cb76c2 +crates/ec-av1/fixtures/gm_small_side_witness.obu crates/ec-av1/src/stream.rs:44354 captured - ok yes f1cdbcbb8d6d469c7957d70252ab42b24ab75f48a717600ffa25991458775dca +crates/ec-av1/fixtures/gm_small_side_witness.obu crates/ec-av1/src/stream.rs:44431 captured - ok yes f1cdbcbb8d6d469c7957d70252ab42b24ab75f48a717600ffa25991458775dca +crates/ec-av1/fixtures/gm_small_side_witness.obu crates/ec-av1/src/stream.rs:44514 captured - ok yes f1cdbcbb8d6d469c7957d70252ab42b24ab75f48a717600ffa25991458775dca +crates/ec-av1/fixtures/gm_small_side_witness.obu crates/ec-av1/src/stream.rs:45447 captured - ok yes f1cdbcbb8d6d469c7957d70252ab42b24ab75f48a717600ffa25991458775dca +crates/ec-av1/fixtures/golden3-pin.obu crates/ec-av1/src/stream.rs:24064 captured - ok yes 11c9d5331cffa6614c8265ad5fa685d5ce9155db8439949b48ec4a652ace95cf +crates/ec-av1/fixtures/golden4-pin.obu crates/ec-av1/src/stream.rs:24118 recovered-original - ok yes 1754023e44e46edaebc2c05065bf1c65db1a41354577cbf71c0e8ebe737ae14a +crates/ec-av1/fixtures/golden4-pin.obu crates/ec-av1/src/stream.rs:24119 recovered-original - ok yes 1754023e44e46edaebc2c05065bf1c65db1a41354577cbf71c0e8ebe737ae14a +crates/ec-av1/fixtures/golden6-mismatch.obu crates/ec-av1/src/stream.rs:33688 recovered-original - ok yes c56909b98542192b03f3a945e153475aa57a58a1586bf166513297296cb225b3 +crates/ec-av1/fixtures/golden6-mismatch.obu crates/ec-av1/src/stream.rs:33689 recovered-original - ok yes c56909b98542192b03f3a945e153475aa57a58a1586bf166513297296cb225b3 +crates/ec-av1/fixtures/golden7-forwarding-mismatch.obu crates/ec-av1/src/stream.rs:24156 recovered-original - ok yes 81b3bf657a85e95085287b30d97dee93ba5aea0ed1db1e1f4fcd19a06afc17be +crates/ec-av1/fixtures/golden7-forwarding-mismatch.obu crates/ec-av1/src/stream.rs:24157 recovered-original - ok yes 81b3bf657a85e95085287b30d97dee93ba5aea0ed1db1e1f4fcd19a06afc17be +crates/ec-av1/fixtures/grain_cdef_lr_128x128.obu crates/ec-av1/src/stream.rs:14939 captured - ok yes 06f210b87b5c79eb729c559050e073abbe226c4dad1df3dcaa113b03011ad732 +crates/ec-av1/fixtures/reelb_arf_witness.obu crates/ec-av1/src/stream.rs:14824 captured - ok yes 7f3b060da5aa9c537633e760c4af71316237db7692f6ae0d459bd2c2dd867d37 +crates/ec-av1/fixtures/reelb_arf_witness.obu crates/ec-av1/src/stream.rs:43576 captured - ok yes 7f3b060da5aa9c537633e760c4af71316237db7692f6ae0d459bd2c2dd867d37 +crates/ec-av1/fixtures/reelb_arf_witness.obu crates/ec-av1/src/stream.rs:43658 captured - ok yes 7f3b060da5aa9c537633e760c4af71316237db7692f6ae0d459bd2c2dd867d37 +crates/ec-av1/fixtures/reelb_head_key_frame.obu crates/ec-av1/src/stream.rs:15077 captured - ok yes 53c311dec790bb2413afdde92cb24de498a7c4f66f6f0c7f4f5910ab0d2c65dc +crates/ec-av1/fixtures/reelb_head_mvclamp_witness.obu crates/ec-av1/src/stream.rs:44596 captured - ok yes 451a9b138995e636f22308847a123b5c8621d4908cd93772cf5bbf2b37df39d7 +crates/ec-av1/fixtures/reelb_intra14_witness.obu crates/ec-av1/src/stream.rs:43405 captured - ok yes 0eff603bf1608e47faf5e6729670c4c77cf5c674dbad3a1533ac6660151fd90e +crates/ec-av1/fixtures/reelb_kf900.obu crates/ec-av1/src/stream.rs:15219 captured - ok yes a273ae99328388be14a1ff8fa1c5a6d391a9948159eaef120e1b50e02015eb83 +crates/ec-av1/fixtures/reelb_kf900.obu crates/ec-av1/src/stream.rs:45378 captured - ok yes a273ae99328388be14a1ff8fa1c5a6d391a9948159eaef120e1b50e02015eb83 +crates/ec-av1/fixtures/reelb_rect64_intra16x4_witness.obu crates/ec-av1/src/stream.rs:43494 captured - ok yes c9e721088766163b9dbeb9fa8dd8b257ff0ec7f9157fc350de4d3c33cd9ec4e4 +crates/ec-av1/fixtures/reelb_ss300_key_frame.obu crates/ec-av1/src/stream.rs:15168 captured - ok yes 7e3ddf0d602f9496b2f7eb11f051fd4a045020e094d5bc02f83825e2c494ef12 +crates/ec-av1/fixtures/reelb_ss600_key_frame.obu crates/ec-av1/src/stream.rs:15260 captured - ok yes 36de46676ed7de7049d4dabe8571d8cd31c8a1f53d72011c0ee532a7c6725cd6 +crates/ec-av1/fixtures/ii-flake-1.obu crates/ec-av1/src/stream.rs:31575 captured - ok yes 700ded3e61e15bc3573d339d7fcc6ab94500adb796c30021094d354306662238 +crates/ec-av1/fixtures/ii-flake-2.obu crates/ec-av1/src/stream.rs:31576 captured - ok yes edc4ad3a6c00c6bc909c626fa24433ef31a88ed519ed57403f5373a160e590af +crates/ec-av1/fixtures/ii-flake-3.obu crates/ec-av1/src/stream.rs:31577 captured - ok yes 994bfbdc952ecef18ae1560d5e7f121ba1000172e0bc2ad05e5b8cfaa17b15cb +crates/ec-av1/fixtures/ii-flake-5.obu crates/ec-av1/src/stream.rs:31578 captured - ok yes f43fe77ea0e8ddd9c1524b642e09f935921cb0d00c4a60061a52d2260af38b9a +crates/ec-av1/fixtures/ii-flake-6.obu crates/ec-av1/src/stream.rs:31579 captured - ok yes 84a1f60011dfdb77ede98ce95a25d247d270b0af1cff2c44aa1e6b311ca63dce +crates/ec-av1/fixtures/ii-flake-7.obu crates/ec-av1/src/stream.rs:31580 captured - ok yes 61ba4d114aa55ebcf95ae691abbce3307146a2d969c0627ea3ceea02f3875574 +crates/ec-av1/fixtures/ii-flake-8.obu crates/ec-av1/src/stream.rs:31581 captured - ok yes f19d3d80ed564850cec02a26cfe7ab00e282afa7896821c535a117f5541bef5d +crates/ec-av1/fixtures/ii-flake-9.obu crates/ec-av1/src/stream.rs:31585 captured - ok yes 0df4874737cc615258c0fdfb4bcb157c9a3663127cbf0a896af44d4deb83c653 +crates/ec-av1/fixtures/intra128_in_inter_screen_witness.obu crates/ec-av1/src/stream.rs:44076 captured - ok yes c84a493f90327f5d2bea038a42e87cbfe56762b5c6a856d76b4bff9797c5ea09 +crates/ec-av1/fixtures/intra128_in_inter_witness2.obu crates/ec-av1/src/stream.rs:44008 captured - ok yes cace4cc3a5ba4dc5f8c7c219e87c9052351e832cad3d7f4c8ffe09288a6d7ccf +crates/ec-av1/fixtures/intra128_in_inter_witness2.obu crates/ec-av1/src/stream.rs:44353 captured - ok yes cace4cc3a5ba4dc5f8c7c219e87c9052351e832cad3d7f4c8ffe09288a6d7ccf +crates/ec-av1/fixtures/intra128_in_inter_witness2.obu crates/ec-av1/src/stream.rs:44430 captured - ok yes cace4cc3a5ba4dc5f8c7c219e87c9052351e832cad3d7f4c8ffe09288a6d7ccf +crates/ec-av1/fixtures/intra128_in_inter_witness.obu crates/ec-av1/src/stream.rs:43912 captured - ok yes dd41fc39367a3d38bf8a8a8106dc30d91b716b2a9123fdfa4716930f4f98caf9 +crates/ec-av1/fixtures/intra14_256x192_10bit.obu crates/ec-av1/src/stream.rs:42730 captured - ok yes ab6fae0a256af6410e8200f10827a3e965dee7b2d7ab63710e94968bddab23a2 +crates/ec-av1/fixtures/intra14_256x192_8bit.obu crates/ec-av1/src/stream.rs:42738 captured - ok yes 5e50eb6d4492e806a2803988d92bd47f069ca54e02c06344d5500c6b72deb861 +crates/ec-av1/fixtures/intrabc_tx4_chroma_kf.obu crates/ec-av1/src/stream.rs:12404 captured - ok yes bc699af4a6e7c1c5657f041e8cbdf2d3d899ddb80ec2a549a950b7cebb5b41bd +crates/ec-av1/fixtures/ll444_128root_lossless.obu crates/ec-av1/src/stream.rs:7016 captured - ok yes bbffb979d20d581deb271aac75b7ee779dde57c024524ed6b1389356f55ca0fa +crates/ec-av1/fixtures/ll444_128root_lossless.obu crates/ec-av1/src/stream.rs:7131 captured - ok yes bbffb979d20d581deb271aac75b7ee779dde57c024524ed6b1389356f55ca0fa +crates/ec-av1/fixtures/ll444_128root_lossless.obu crates/ec-av1/src/stream.rs:7305 captured - ok yes bbffb979d20d581deb271aac75b7ee779dde57c024524ed6b1389356f55ca0fa +crates/ec-av1/fixtures/ll444_defaultp_inter_strip.obu crates/ec-av1/src/stream.rs:8416 captured - ok yes 1e6dd4e05038c8d51e2c8d29f8c337130c4fea0aed629415535e6e53af9a2c72 +crates/ec-av1/fixtures/ll444_ibc_rect.obu crates/ec-av1/src/stream.rs:8975 captured - ok yes 482dedca0201beea9b0a05720b5da7fe93c350c9fea7699cdb010c3fbc227ec0 +crates/ec-av1/fixtures/ll444_intrabc_rect_l2.obu crates/ec-av1/src/stream.rs:7251 captured - ok yes f0de080edce35d34cdd628b71f63dc452f946e8328352b69d3c1da090a54ec67 +crates/ec-av1/fixtures/ll444-lossless-key.obu crates/ec-av1/src/stream.rs:6718 captured - ok yes f496ef0a1171c2bc66d411cc60db05db547dcdb49cd834d4e0543de9db441374 +crates/ec-av1/fixtures/ll444_minp64_128root_control.obu crates/ec-av1/src/stream.rs:7067 captured - ok yes 4cadce41e1f8967567b32f5cf8abaa46ffdf4fd6d4afe784c8d99a7f6bf1ae4c +crates/ec-av1/fixtures/ll444_minp64_128root_control.obu crates/ec-av1/src/stream.rs:7171 captured - ok yes 4cadce41e1f8967567b32f5cf8abaa46ffdf4fd6d4afe784c8d99a7f6bf1ae4c +crates/ec-av1/fixtures/ll444_minp64_inter.obu crates/ec-av1/src/stream.rs:6870 captured - ok yes 5a070fa351a3f2109de855234f2b3d0a872970f3e7f658db21f65c12eeb135b4 +crates/ec-av1/fixtures/ll444_minp8_inter.obu crates/ec-av1/src/stream.rs:21171 captured - ok yes 04fb6d38de5382e647bfb70b6a17802f1fccc5502e6698c0394167891f2b27dc +crates/ec-av1/fixtures/ll444_minp8_inter.obu crates/ec-av1/src/stream.rs:7391 captured - ok yes 04fb6d38de5382e647bfb70b6a17802f1fccc5502e6698c0394167891f2b27dc +crates/ec-av1/fixtures/ll444_rect16x4_chroma_reach.obu crates/ec-av1/src/stream.rs:11483 captured - ok yes 382e67c0cc0988d14c500a62f5c3457a3f3b5f76d05acce2f655b1089bb8e7e3 +crates/ec-av1/fixtures/ll444_sb64_1to4_lossless.obu crates/ec-av1/src/stream.rs:46912 captured - ok yes fdb6467987095b99c8eb51b48743691d906b2d99d069f71f1d51b1abb6d2056e +crates/ec-av1/fixtures/lossless_sb128_rect_kf.obu crates/ec-av1/src/stream.rs:8654 captured - ok yes 013b07979c8be999c70d47f32768c2bf959be086a893f60dde1b0f5e35d4f475 +crates/ec-av1/fixtures/lr-sgr-r7.obu crates/ec-av1/src/stream.rs:30686 recovered-original - ok yes 6b95b20e3377430ffae0b2ce86fad9502e0dedf13cd6c38ab7f5af4a8b21f33d +crates/ec-av1/fixtures/lr-sgr-r7.obu crates/ec-av1/src/stream.rs:30687 recovered-original - ok yes 6b95b20e3377430ffae0b2ce86fad9502e0dedf13cd6c38ab7f5af4a8b21f33d +crates/ec-av1/fixtures/palette_screen_leaf8_witness.obu crates/ec-av1/src/stream.rs:44252 captured - ok yes 8d036606116913c82b774286bb0a3efe616d54151784897ba62b13d12fdef06e +crates/ec-av1/fixtures/palette_screen_strip16_witness_10bit.obu crates/ec-av1/src/stream.rs:44296 captured - ok yes aaabbb001d87f61ee534fd17c2d558ad906d1c33d357decb86cfd26e593da0db +crates/ec-av1/fixtures/palette_screen_witness_10bit.obu crates/ec-av1/src/stream.rs:14826 captured - ok yes a60a8bc132e5db7bed3eb46e03e9ed9828811bdffb96914958f3c94b107c3cda +crates/ec-av1/fixtures/palette_screen_witness_10bit.obu crates/ec-av1/src/stream.rs:44171 captured - ok yes a60a8bc132e5db7bed3eb46e03e9ed9828811bdffb96914958f3c94b107c3cda +crates/ec-av1/fixtures/palette_screen_witness.obu crates/ec-av1/src/stream.rs:14825 captured - ok yes 635a512b866f0fab7d45eb4f94f2a5b15008fe5a5317ac1ca45ffd3381198b8b +crates/ec-av1/fixtures/palette_screen_witness.obu crates/ec-av1/src/stream.rs:43577 captured - ok yes 635a512b866f0fab7d45eb4f94f2a5b15008fe5a5317ac1ca45ffd3381198b8b +crates/ec-av1/fixtures/palette_screen_witness.obu crates/ec-av1/src/stream.rs:44170 captured - ok yes 635a512b866f0fab7d45eb4f94f2a5b15008fe5a5317ac1ca45ffd3381198b8b +crates/ec-av1/fixtures/rect64_dq_drift.obu crates/ec-av1/src/stream.rs:39904 captured - ok yes 094e51bb21b6caccc905417e95a03f9131b448071567d0b14ec8850799ea2501 +crates/ec-av1/fixtures/rect-flake-1.obu crates/ec-av1/src/stream.rs:31588 captured - ok yes a3869b5d2bd8a8bc5413e0d039d5e3375a48601cdeb2edb8d4b732402926d357 +crates/ec-av1/fixtures/rect-flake-2.obu crates/ec-av1/src/stream.rs:31593 captured - ok yes c780ddee1adf25cf63a6ba70ff449820f6f4474b23ef16615c1e843ad0c86adb +crates/ec-av1/fixtures/rect-flake-3.obu crates/ec-av1/src/stream.rs:31597 captured - ok yes 3b23d204549b7bcfbd7166b1b3e2920580236c78de12e8f23f7fb64c1864f3e6 +crates/ec-av1/fixtures/sbpart-pin.obu crates/ec-av1/src/stream.rs:39987 captured - ok yes 62238fc077f45d89745d4d254b9c0465464003529da3b42d0a65631fbb7e16e9 +crates/ec-av1/fixtures/superres_alltools_sb128_320x180.obu crates/ec-av1/src/stream.rs:14886 captured - ok yes e2b515ce487acd2d720d5a000a6f26e66fd03ef2b1a4cb12daa6fdf31a55d519 +crates/ec-av1/fixtures/superres_alltools_sb128_320x180.obu crates/ec-av1/src/stream.rs:14938 captured - ok yes e2b515ce487acd2d720d5a000a6f26e66fd03ef2b1a4cb12daa6fdf31a55d519 +crates/ec-av1/fixtures/superres_alltools_sb128_320x180.obu crates/ec-av1/src/stream.rs:15041 captured - ok yes e2b515ce487acd2d720d5a000a6f26e66fd03ef2b1a4cb12daa6fdf31a55d519 +crates/ec-av1/fixtures/superres_kf_cdef_lr_64x64.obu crates/ec-av1/src/stream.rs:14364 captured - ok yes 5912e251bcd5d0f284f647616f91b19b579238c16fa85c0294a06548088d7336 +crates/ec-av1/fixtures/reelc_kf2700.obu crates/ec-av1/src/stream.rs:15115 captured - ok yes 16981094eaab516bd1007b0a47d1fc653fbb58b7e18a40af6c12d934bf96fe63 +crates/ec-av1/fixtures/reelc_sb128_inter_witness.obu crates/ec-av1/src/stream.rs:43749 captured - ok yes 09d995946d27695ef4b7b1a24a4d7ad85f8e2c8176d58ee54e825efc061f9cbc +crates/ec-av1/fixtures/reelc_sb128_inter_witness.obu crates/ec-av1/src/stream.rs:44352 captured - ok yes 09d995946d27695ef4b7b1a24a4d7ad85f8e2c8176d58ee54e825efc061f9cbc +crates/ec-av1/fixtures/reelc_sb128_inter_witness.obu crates/ec-av1/src/stream.rs:44429 captured - ok yes 09d995946d27695ef4b7b1a24a4d7ad85f8e2c8176d58ee54e825efc061f9cbc +crates/ec-av1/fixtures/reelc_sb128_inter_witness.obu crates/ec-av1/src/stream.rs:45448 captured - ok yes 09d995946d27695ef4b7b1a24a4d7ad85f8e2c8176d58ee54e825efc061f9cbc +crates/ec-av1/fixtures/warp-flake-5.obu crates/ec-av1/src/stream.rs:31573 captured - ok yes 1a99f9e5b257eed0ebae055441904d6c40962a26c0c2d63c3e051732569ff0a0 +crates/ec-av1/fixtures/warp-flake-7.obu crates/ec-av1/src/stream.rs:31574 captured - ok yes c2f8b93f5a59c56b1c4453ea789e0fc955557ed9b63c0e2cb8683fa483eff2b5 +crates/ec-av1/fixtures/warp-mismatch.obu crates/ec-av1/src/stream.rs:31572 captured - ok yes 24cca5beb41c1078f8109d8fa7e35f10cc1eefb67c6d1d1ea248a0b6842287bb fixtures/audio/aac-adts-5.1-44100.aac crates/ec-aac/tests/oracle.rs:151 regenerated scripts/gen-fixtures.sh ok - 2b615b45e7c45136e2d477bd5ed489822ddadcb5f1b7fe2da0a66dcc288881b4 fixtures/audio/aac-adts-5.1-48000.aac crates/ec-aac/tests/oracle.rs:152 regenerated scripts/gen-fixtures.sh ok - f416a2059766b6ce751bdf272836897c191073ca9f4f302552e949eeeeb01a44 fixtures/audio/aac-adts-5.1-48000.aac crates/ec-probe/tests/matrix.rs:95 regenerated scripts/gen-fixtures.sh ok - f416a2059766b6ce751bdf272836897c191073ca9f4f302552e949eeeeb01a44 @@ -241,13 +241,9 @@ fixtures/bitstreams/vp9-superframe-altref.ivf crates/ec-vp9/tests/scratch_err.rs fixtures/bitstreams/vp9-superframe-altref.ivf crates/ec-vp9/tests/scratch_err.rs:6 regenerated scripts/gen-bitstream-fixtures.sh ok - bfc59a9604aaddc6709971e0e81eca1178b0c0a32be83a3d5c7b5c078aa7a873 fixtures/bitstreams/vp9-superframe-altref.ivf crates/ec-vp9/tests/scratch_hdr3.rs:6 regenerated scripts/gen-bitstream-fixtures.sh ok - bfc59a9604aaddc6709971e0e81eca1178b0c0a32be83a3d5c7b5c078aa7a873 fixtures crates/ec-aac/tests/oracle.rs:11 regenerated scripts/gen-fixtures.sh ok - - -fixtures crates/ec-av1/src/encode.rs:16846 regenerated scripts/gen-fixtures.sh ok - - -fixtures crates/ec-av1/src/encode.rs:19735 regenerated scripts/gen-fixtures.sh ok - - -fixtures crates/ec-av1/src/encode.rs:21180 regenerated scripts/gen-fixtures.sh ok - - -fixtures crates/ec-av1/src/encode.rs:21562 regenerated scripts/gen-fixtures.sh ok - - -fixtures crates/ec-av1/src/encode.rs:22113 regenerated scripts/gen-fixtures.sh ok - - -fixtures crates/ec-av1/src/encode.rs:22673 regenerated scripts/gen-fixtures.sh ok - - -fixtures crates/ec-av1/src/stream.rs:9426 regenerated scripts/gen-fixtures.sh ok - - +fixtures crates/ec-av1/src/library_fixture.rs:147 regenerated scripts/gen-fixtures.sh ok - - +fixtures crates/ec-av1/src/library_fixture.rs:74 regenerated scripts/gen-fixtures.sh ok - - +fixtures crates/ec-av1/src/stream.rs:9429 regenerated scripts/gen-fixtures.sh ok - - fixtures crates/ec-flac/tests/encode_matrix.rs:48 regenerated scripts/gen-fixtures.sh ok - - fixtures crates/ec-matroska/tests/matroska.rs:92 regenerated scripts/gen-fixtures.sh ok - - fixtures crates/ec-mp3/tests/decode_matrix.rs:19 regenerated scripts/gen-fixtures.sh ok - - @@ -262,24 +258,18 @@ fixtures/subs/real.srt crates/ec-subs/tests/real_library.rs:28 regenerated scrip fixtures/vectors/flac-xiph/flac-test-files-main crates/ec-flac/tests/xiph_vectors.rs:22 regenerated scripts/fetch-vectors.sh ok - - fixtures/vectors/h264-jvt crates/ec-h264/tests/conformance.rs:68 regenerated scripts/fetch-vectors.sh ok - - fixtures/vectors/opus-rfc6716/opus_testvectors crates/ec-opus/tests/conformance.rs:87 regenerated scripts/fetch-vectors.sh ok - - -fixtures/video crates/ec-av1/src/encode.rs:20494 regenerated scripts/gen-fixtures.sh ok - - -fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encoder.rs:3263 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 -fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encoder.rs:6042 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 -fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:20345 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 -fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:20410 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 -fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:20490 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 -fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:20913 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 -fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:21268 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 -fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:21567 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 -fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:22127 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 -fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:22675 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 -fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/stream.rs:45096 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 -fixtures/video/h264-1080p-60-8bit.mp4 crates/ec-av1/src/encode.rs:20491 regenerated scripts/gen-fixtures.sh ok - - -fixtures/video/h264-2160p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:21269 regenerated scripts/gen-fixtures.sh ok - - -fixtures/video/h264-2160p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:21568 regenerated scripts/gen-fixtures.sh ok - - -fixtures/video/h264-2160p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:22128 regenerated scripts/gen-fixtures.sh ok - - -fixtures/video/h264-2160p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:22676 regenerated scripts/gen-fixtures.sh ok - - -fixtures/video/h264-2160p-23.976-8bit.mp4 crates/ec-av1/src/stream.rs:6296 regenerated scripts/gen-fixtures.sh ok - - +fixtures/video crates/ec-av1/src/encoder.rs:3288 regenerated scripts/gen-fixtures.sh ok - - +fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encoder.rs:3288 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 +fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:20503 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 +fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:21288 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 +fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:21588 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 +fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:22151 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 +fixtures/video/h264-1080p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:22701 regenerated scripts/gen-fixtures.sh ok - db7275c361b07985088e80337a6c8c144d232d12f4d57cb84645effe27195784 +fixtures/video/h264-1080p-60-8bit.mp4 crates/ec-av1/src/encode.rs:20504 regenerated scripts/gen-fixtures.sh ok - - +fixtures/video/h264-2160p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:21289 regenerated scripts/gen-fixtures.sh ok - - +fixtures/video/h264-2160p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:21589 regenerated scripts/gen-fixtures.sh ok - - +fixtures/video/h264-2160p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:22152 regenerated scripts/gen-fixtures.sh ok - - +fixtures/video/h264-2160p-23.976-8bit.mp4 crates/ec-av1/src/encode.rs:22702 regenerated scripts/gen-fixtures.sh ok - - fixtures/video/h264-open-gop.mp4 crates/ec-h264/tests/conformance.rs:2381 regenerated scripts/gen-fixtures.sh ok - 0b3b316c3f786cf4cb158de1b9c81aa871b1bb0d8e2da30d451f741cacd5d0ff fixtures/video/h264-open-gop.mp4 crates/ec-hw/tests/gpu.rs:2793 regenerated scripts/gen-fixtures.sh ok - 0b3b316c3f786cf4cb158de1b9c81aa871b1bb0d8e2da30d451f741cacd5d0ff fixtures/vp8/altref-160x96.ivf crates/ec-vp8/tests/keyframe_exact.rs:108 regenerated scripts/gen_vp8_fixtures.sh ok - 32d610dc278e528a7d69c3543764cb000e927c6988e61ef0c4ba560e7d89b49e diff --git a/scripts/gen-fixture-library.sh b/scripts/gen-fixture-library.sh index 1a5a47b6..aab1739e 100755 --- a/scripts/gen-fixture-library.sh +++ b/scripts/gen-fixture-library.sh @@ -28,6 +28,15 @@ # Path::new( Path::new("...") argument literals # fs::read fs::read / read_dir / File::open argument literals # +# library_fixture:: a path passed to the ec-av1 library-fixture resolver +# (`library_fixture::require("video/…", …)`) is +# LIBRARY-RELATIVE, so it anchors at the fixture root +# the preflight validates (EC_FIXTURES first) rather +# than at any crate directory. Without this row shape +# the RESOLVE pass silently lost every clip row the +# moment a gate stopped naming `../../fixtures` +# literally -- the preflight would stop checking the +# exact paths whose absence this lane is about. # TWO PASSES: # 1. fixture-root / fixture-path literals -> the row is the literal itself. # 2. bare media-file literals ("aac-adts-5.1-44100.aac", "entry-tx3g.mp4") @@ -108,6 +117,20 @@ is_fixture_literal() { # $1 = literal without quotes return 0 } +# lane-av1clipprobe: a literal that starts with one of the fixture library's +# own top-level directories is LIBRARY-RELATIVE, not crate-relative: it is what +# the ec-av1 library-fixture resolver takes (`require("video/…")`), and the +# other crates' `../../fixtures/` + `.join("video/…")` pairs resolve to the +# same manifest path. So it maps to `fixtures/` -- the same row, whether +# the consumer spells the root out or hands the relative part to the resolver. +library_relative() { # $1 = literal without quotes + case $1 in + audio/* | video/* | bitstreams/* | stills/* | subs/* | realworld/* | \ + vp8/* | vp9/* | hbd-r5/* | vectors/*) return 0 ;; + esac + return 1 +} + # Provenance: which script reproduces these bytes. An empty answer is a # finding -- committed pins whose only provenance is prose in a gate comment. generator_for() { # $1 = repo-relative path @@ -237,6 +260,53 @@ for f in "${FILES[@]}"; do [ -d "$(abs_path "$path")" ] && file_dirs+=("$path") done < <(grep -noE '"[^"]*"' "$f") + # Pass 1b -- the ec-av1 library-fixture RESOLVER's literals (lane- + # av1clipprobe). `library_fixture::require("video/…", …)` takes a path + # RELATIVE TO THE FIXTURE ROOT, so it is not a crate-relative literal and + # Pass 1 cannot classify it -- and a clip gate that had stopped naming + # `../../fixtures` literally would have dropped its row from this manifest + # entirely, i.e. the preflight would have stopped RESOLVING the very paths + # whose silent absence this lane is about. Scoped to lines that actually + # call the resolver: a bare `audio/…` literal in another crate keeps + # whatever classification it had, so this adds no rows outside ec-av1. + while IFS= read -r ln; do + lineno=${ln%%:*} + while IFS= read -r q; do + lit=${q#\"} + lit=${lit%\"} + library_relative "$lit" || continue + path="fixtures/$lit" + case $(pin_class "$path") in + absent-pin) + row "$path" "$rel:$lineno" absent-pin absent-pin >>"$tmp" + continue ;; + esac + row "$path" "$rel:$lineno" >>"$tmp" + [ -d "$(abs_path "$path")" ] && file_dirs+=("$path") + done < <(printf '%s\n' "${ln#*:}" | grep -oE '"[^"]*"') + done < <(grep -nE 'library_fixture::(require|require_at|path)\(' "$f") + # A resolver call names a FILE inside a library directory; the DIRECTORY row + # is what makes RESOLVE check the corpus is present AND non-empty, and it + # used to come from the `../../fixtures/video` literal this lane removed. + # One row per directory per file, so the manifest does not grow a + # duplicate per call site. + while IFS= read -r ln; do + d="" + while IFS= read -r q; do + lit=${q#\"} + lit=${lit%\"} + library_relative "$lit" || continue + d="fixtures/${lit%%/*}" + done < <(printf '%s\n' "${ln#*:}" | grep -oE '"[^"]*"') + [ -n "$d" ] || continue + case " ${resolver_dirs:-} " in *" $d "*) continue ;; esac + resolver_dirs="${resolver_dirs:-} $d" + case $(pin_class "$d") in + absent-pin) continue ;; + esac + row "$d" "$rel:${ln%%:*}" >>"$tmp" + done < <(grep -nE 'library_fixture::(require|require_at|path)\(' "$f") + # Pass 2 -- bare media names joined onto this file's fixture directories, # then onto the standard top-level library directories (a file may name # its corpus directory in a helper module rather than in this file). diff --git a/scripts/verify-fixture-library.sh b/scripts/verify-fixture-library.sh index 4246d983..e2021b29 100755 --- a/scripts/verify-fixture-library.sh +++ b/scripts/verify-fixture-library.sh @@ -45,6 +45,16 @@ # is, and RESOLVE requires that directory to exist and be non-empty. This is a # preflight against silent drift, not a proof that every byte a test reads is # present. +# +# THE TWO ROOTS (lane-av1clipprobe). This script validates `$EC_FIXTURES`, +# defaulting to `$ROOT/fixtures`. The gates used to read `$ROOT/fixtures` +# UNCONDITIONALLY, so pointing EC_FIXTURES at a library elsewhere printed +# `resolve 0 missing` and `GREEN` here while every clip gate skipped -- a green +# preflight over gates reading a tree nobody validated. The clip-reading gates +# now resolve through the same precedence this script does (EC_FIXTURES first, +# `$ROOT/fixtures` otherwise: `crates/ec-av1/src/library_fixture.rs`), so the +# verdict below and the bytes the tests read are the same tree in every +# combination, and mode (i) below fires exactly when the gates will skip. set -uo pipefail @@ -69,6 +79,10 @@ shape_violations=0 note() { [ "$REQUIRE" = 0 ] || echo "$@"; } echo "verify-fixture-library: root=$ROOT fixtures=$FIXTURES EC_REQUIRE_FIXTURES=${REQUIRE:-0}" +# The gates' root is the SAME string, by the reconciliation documented above -- +# printed here so a reader comparing this verdict against a gate's SKIP line +# never has to guess which of two directories the two sides meant. +echo "verify-fixture-library: the clip gates resolve $FIXTURES too (EC_FIXTURES first, else \$ROOT/fixtures)" # --- SHAPE --------------------------------------------------------------- if [ ! -f "$MANIFEST" ]; then @@ -436,4 +450,17 @@ fi for s in $(echo "$audit" | awk -F'\t' '/^BADROW/{c++} END{print c+0}'); do :; done echo " code-shape violations: $(echo "$audit" | awk -F'\t' '/^BADROW/{c++} END{print c+0}')" >&2 echo "$forbidden" | grep -q . && shape_violations=$((shape_violations + $(echo "$forbidden" | grep -c .))) -echo "verify-fixture-library: GREEN ($rows rows)" +# lane-av1clipprobe: the last word of this script used to be a bare `GREEN` +# even when mode (i) had just been reported a few lines above -- so a reader +# who read only the verdict read GREEN over a tree whose fixture root does not +# exist, which is the same false green as a gate that skipped. The verdict now +# says which it is: findings reported (not failed, because +# EC_REQUIRE_FIXTURES is unset) versus a clean pass. `EC_REQUIRE_FIXTURES=1` +# turns the first into the RED above. +if [ "$root_present" -eq 0 ]; then + echo "verify-fixture-library: GREEN-WITH-FINDINGS ($rows rows; the absent root above is" >&2 + echo " REPORTED, not failed -- set EC_REQUIRE_FIXTURES=1 on a tree that is" >&2 + echo " meant to have the library, or provision it and re-run)" >&2 +else + echo "verify-fixture-library: GREEN ($rows rows)" +fi