stream: the 444 pin arm also honours the repo-wide EC_REQUIRE_FIXTURES
Browse files at this commitd4100f4707b1772387daea906afa467fe9806705Parent: 7e79eb21 changed file +18 -12
- crates/ec-av1/src/stream.rs +18 -12
crates/ec-av1/src/stream.rsmodified+18 -12
| @@ -6490,28 +6490,34 @@ pub(crate) mod tests { | |||
| 6490 | } | 6490 | } |
| 6491 | // lane-av1skipfix: this arm used to be a bare SKIP, so on any box | 6491 | // lane-av1skipfix: this arm used to be a bare SKIP, so on any box |
| 6492 | // without the pin (the root `fixtures/` directory is GITIGNORED -- | 6492 | // without the pin (the root `fixtures/` directory is GITIGNORED -- |
| 6493 | - // `.gitignore:2` -- so a fresh clone can never have it) the gate | 6493 | + // `.gitignore:2` -- so a fresh clone, and every linked worktree, can |
| 6494 | - // reported green having decoded nothing. `EC_AV1_REQUIRE_AOMENC=1` | 6494 | + // never have it) the gate reported green having decoded nothing. |
| 6495 | - // turns it into a hard failure naming the missing pin and its exact | 6495 | + // `EC_REQUIRE_FIXTURES=1` -- the repo-wide fixture env, same as the |
| 6496 | - // regeneration recipe, so a batch run cannot report green off it. | 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. | ||
| 6497 | let pin = pin_dir().join("ll444-lossless-key.obu"); | 6500 | let pin = pin_dir().join("ll444-lossless-key.obu"); |
| 6498 | let stream = match std::fs::read(&pin) { | 6501 | let stream = match std::fs::read(&pin) { |
| 6499 | Ok(stream) => stream, | 6502 | Ok(stream) => stream, |
| 6500 | Err(e) => { | 6503 | Err(e) => { |
| 6501 | assert!( | 6504 | 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(), | ||
| 6503 | "{NAME}: the pinned 4:4:4 lossless key frame is missing at {} ({e}). \ | 6507 | "{NAME}: the pinned 4:4:4 lossless key frame is missing at {} ({e}). \ |
| 6504 | - Regenerate it with `testsrc2 128x96` yuv444p 6 frames, aomenc \ | 6508 | + This gate would prove nothing. A worktree has no gitignored root \ |
| 6505 | - --profile=1 --lossless=1 --enable-palette=0 --enable-intrabc=0, \ | 6509 | + `fixtures/`: run scripts/link-fixtures.sh. No script generates this \ |
| 6506 | - cut to the key frame's OBUs -- or point EC_AV1_PIN_DIR at a \ | 6510 | + pin -- regenerate it with `testsrc2 128x96` yuv444p 6 frames, aomenc \ |
| 6507 | - directory that has it.", | 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.", | ||
| 6508 | pin.display() | 6513 | pin.display() |
| 6509 | ); | 6514 | ); |
| 6510 | eprintln!( | 6515 | eprintln!( |
| 6511 | "SKIP {NAME}: no pinned bytes at {} ({e}) -- this gate decoded nothing \ | 6516 | "SKIP {NAME}: no pinned bytes at {} ({e}) -- this gate decoded nothing \ |
| 6512 | - and proves nothing; regenerate with `testsrc2 128x96` yuv444p 6 \ | 6517 | + and proves nothing; run scripts/link-fixtures.sh, or regenerate with \ |
| 6513 | - frames, aomenc --profile=1 --lossless=1 --enable-palette=0 \ | 6518 | + `testsrc2 128x96` yuv444p 6 frames, aomenc --profile=1 --lossless=1 \ |
| 6514 | - --enable-intrabc=0, cut to the key frame's OBUs", | 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).", | ||
| 6515 | pin.display() | 6521 | pin.display() |
| 6516 | ); | 6522 | ); |
| 6517 | return; | 6523 | return; |