forge
Explore
Log in

Don't you dare go Hollow

wave-3c-a: route the lm444loss-corr gate's oracle arm through aomdec_available

Browse files at this commit

d48c08a53634a85ffa218a07f1fe96917fe2379bAhmet Kaan GümüşParent: 3bf8d88
The merged branch's new gate guarded its pixel compare with a bare
`aomdec_path().is_file()`. The oracle-presence scan merged in wave 3b
(7a865ee7) rejects exactly that shape outside the probe that owns it, and
reds on the merged tree:

  gate_coverage::tests::no_tool_presence_check_outside_its_probe
    1 bare tool presence check(s) outside a probe
    stream.rs:7271: if aomdec_path().is_file() {

A bare is_file() skips the compare with NO env escape, so under
EC_AV1_REQUIRE_AOMENC=1 the gate would still report green with the oracle
compare never run -- the "unreadable gate is unproven, not clean" class.
`aomdec_available(NAME)` carries the env-escape assertion and the SKIP
line, so the hand-rolled else-arm is dropped rather than kept alongside.

cargo test -p ec-av1 --lib -- gate_coverage refusal_inventory count_vacuity
  29 passed; 0 failed
crates/ec-av1/src/stream.rsmodified+17 -8
@@ -7266,9 +7266,18 @@ pub(crate) mod tests {
72667266 "{NAME}: U extent must be luma-sized at 4:4:4 -- the replay steps mi \
72677267 cells through this grid"
72687268 );
7269- assert_eq!(f.v.len(), W * H, "{NAME}: V extent must be luma-sized at 4:4:4");
7269+ assert_eq!(
7270+ f.v.len(),
7271+ W * H,
7272+ "{NAME}: V extent must be luma-sized at 4:4:4"
7273+ );
72707274 }
7271- if aomdec_path().is_file() {
7275+ // lane-3c-a: the oracle-presence scan (wave 3b, 7a865ee7) rejects a
7276+ // bare `aomdec_path().is_file()` outside the probe that owns it -- this
7277+ // gate would otherwise report green under EC_AV1_REQUIRE_AOMENC=1 with
7278+ // the pixel compare never run. `aomdec_available` carries both the
7279+ // env-escape assertion and the SKIP line, so the else-arm is dropped.
7280+ if aomdec_available(NAME) {
72727281 let (decoded, hidden) = decode_all_frames_vs_oracle(&stream, NAME);
72737282 assert_eq!(
72747283 decoded, FRAMES,
@@ -7278,17 +7287,17 @@ pub(crate) mod tests {
72787287 "{NAME}: {decoded} frames byte-exact vs aomdec ({hidden} hidden), \
72797288 {walked} lossless chroma replays"
72807289 );
7281- } else {
7282- eprintln!(
7283- "SKIP {NAME} aomdec arm: no oracle aomdec at {}",
7284- aomdec_path().display()
7285- );
72867290 }
72877291
72887292 // Control: whole square blocks have no multi-unit plane block to step.
72897293 let ctrl = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
72907294 .join("fixtures/ll444_128root_lossless.obu");
7291- let ctrl_stream = read_pin(&ctrl, 63429, 0xf07d_47fc_fd51_2658, &format!("{NAME} control"));
7295+ let ctrl_stream = read_pin(
7296+ &ctrl,
7297+ 63429,
7298+ 0xf07d_47fc_fd51_2658,
7299+ &format!("{NAME} control"),
7300+ );
72927301 crate::decode::reset_intrabc_rect_lossless_chroma4_hits();
72937302 let _ = decode_stream(&ctrl_stream)
72947303 .unwrap_or_else(|e| panic!("{NAME}: the control arm no longer decodes cleanly: {e}"));