forge
Explore
Log in

Don't you dare go Hollow

ec-av1: restore the verbatim forbidden literal in the golden7 doc comment

Browse files at this commit

62d9c1e794663d55154f8cf0e02d6f74f1eef0beAhmet Kaan GümüşParent: 59fe559
My first commit reworded this comment so a plain grep could not match the
banned concat! literal it quotes. That was the wrong fix: the sentence
explains the shape the gate removed, which is exactly what a reader needs,
and the real defect was the scanner, not the prose. lane-av1fixlib 12cae635
strips comments before invariant 1 matches and plants a positive control,
so the literal is now correctly ignored as prose:

  EC_REQUIRE_FIXTURES=1 scripts/verify-fixture-library.sh
    invariant 1: no root-fixture pin path
    code-shape violations: 0
    verify-fixture-library: GREEN (303 rows)   exit 0

Comment restored to the text it had before 2364d7a7. No behaviour change:
pinned_golden7_stream_decodes_pixel_exact still passes.

Branch rebased onto 12cae635 so the preflight is committed in this tree
rather than copied in untracked; scripts/ is 12cae635 verbatim.
crates/ec-av1/src/stream.rsmodified+4 -4
@@ -23977,10 +23977,10 @@ pub(crate) mod tests {
2397723977 /// delta=2). `GOLDEN_FRAME` refuses by name until this decodes exact.
2397823978 ///
2397923979 /// LIVE since lane-av1pinslive r3. The old shape was the worst of the
23980- /// class: a `concat!` of `CARGO_MANIFEST_DIR` with the GITIGNORED
23981- /// repo-root `fixtures/` directory, which no committed pin can satisfy,
23982- /// combined with a bare `.expect()`.
23983- /// The bytes are now committed at
23980+ /// class: a `concat!(env!("CARGO_MANIFEST_DIR"), "/../../fixtures/...")`
23981+ /// literal, which points at the GITIGNORED root and can therefore never be
23982+ /// satisfied by a committed pin, combined with a bare `.expect()`. The
23983+ /// bytes are now committed at
2398423984 /// `crates/ec-av1/fixtures/golden7-forwarding-mismatch.obu` (152 bytes;
2398523985 /// sha256 `81b3bf657a85e95085287b30d97dee93ba5aea0ed1db1e1f4fcd19a06afc17be`,
2398623986 /// recovered byte-for-byte from the runner library).