forge
Explore
Log in

Don't you dare go Hollow

stream: the 444 pin arm also honours the repo-wide EC_REQUIRE_FIXTURES

Browse files at this commit

d4100f4707b1772387daea906afa467fe9806705Ahmet Kaan GümüşParent: 7e79eb2
The require-env for a missing fixture is now one name across the repo, so
a batch unit sets EC_REQUIRE_FIXTURES=1 once and an absent fixture fails in
ec-av1, ec-h264, ec-flac and ec-opus alike. EC_AV1_REQUIRE_AOMENC still
works here, since it already means 'this box must have the oracle'.
crates/ec-av1/src/stream.rsmodified+18 -12
@@ -6490,28 +6490,34 @@ pub(crate) mod tests {
64906490 }
64916491 // lane-av1skipfix: this arm used to be a bare SKIP, so on any box
64926492 // without the pin (the root `fixtures/` directory is GITIGNORED --
6493- // `.gitignore:2` -- so a fresh clone can never have it) the gate
6494- // reported green having decoded nothing. `EC_AV1_REQUIRE_AOMENC=1`
6495- // turns it into a hard failure naming the missing pin and its exact
6496- // regeneration recipe, so a batch run cannot report green off it.
6493+ // `.gitignore:2` -- so a fresh clone, and every linked worktree, can
6494+ // never have it) the gate reported green having decoded nothing.
6495+ // `EC_REQUIRE_FIXTURES=1` -- the repo-wide fixture env, same as the
6496+ // ec-h264/ec-flac/ec-opus conformance gates -- or this crate's own
6497+ // `EC_AV1_REQUIRE_AOMENC=1` turns it into a hard failure naming the
6498+ // missing pin, the exact regeneration recipe and the
6499+ // `EC_AV1_PIN_DIR` override, so a batch run cannot report green off it.
64976500 let pin = pin_dir().join("ll444-lossless-key.obu");
64986501 let stream = match std::fs::read(&pin) {
64996502 Ok(stream) => stream,
65006503 Err(e) => {
65016504 assert!(
6502- std::env::var_os("EC_AV1_REQUIRE_AOMENC").is_none(),
6505+ std::env::var_os("EC_REQUIRE_FIXTURES").is_none()
6506+ && std::env::var_os("EC_AV1_REQUIRE_AOMENC").is_none(),
65036507 "{NAME}: the pinned 4:4:4 lossless key frame is missing at {} ({e}). \
6504- Regenerate it with `testsrc2 128x96` yuv444p 6 frames, aomenc \
6505- --profile=1 --lossless=1 --enable-palette=0 --enable-intrabc=0, \
6506- cut to the key frame's OBUs -- or point EC_AV1_PIN_DIR at a \
6507- directory that has it.",
6508+ This gate would prove nothing. A worktree has no gitignored root \
6509+ `fixtures/`: run scripts/link-fixtures.sh. No script generates this \
6510+ pin -- regenerate it with `testsrc2 128x96` yuv444p 6 frames, aomenc \
6511+ --profile=1 --lossless=1 --enable-palette=0 --enable-intrabc=0, cut to \
6512+ the key frame's OBUs -- or point EC_AV1_PIN_DIR at a directory that has it.",
65086513 pin.display()
65096514 );
65106515 eprintln!(
65116516 "SKIP {NAME}: no pinned bytes at {} ({e}) -- this gate decoded nothing \
6512- and proves nothing; regenerate with `testsrc2 128x96` yuv444p 6 \
6513- frames, aomenc --profile=1 --lossless=1 --enable-palette=0 \
6514- --enable-intrabc=0, cut to the key frame's OBUs",
6517+ and proves nothing; run scripts/link-fixtures.sh, or regenerate with \
6518+ `testsrc2 128x96` yuv444p 6 frames, aomenc --profile=1 --lossless=1 \
6519+ --enable-palette=0 --enable-intrabc=0, cut to the key frame's OBUs \
6520+ (or set EC_REQUIRE_FIXTURES=1 to make this a failure).",
65156521 pin.display()
65166522 );
65176523 return;