From fc5489f95f6f24aab016169d0d648164e9b80fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 29 Sep 2026 04:33:46 +0300 Subject: [PATCH] gen-fixture-library: stop injecting absent-pin rows for pins no code references Pass 1 already emits a row for every literal, including referenced-but-absent pins, so the post-loop injection only ever fired for a path nothing reaches -- a deleted reference, not a library gap. Injecting it kept a stale claim alive (ll444-lossless-key.obu was recovered under crates/ec-av1/fixtures/ and the injected root row outlived the reference). --- scripts/gen-fixture-library.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/gen-fixture-library.sh b/scripts/gen-fixture-library.sh index 1055e5ed..0982e33f 100755 --- a/scripts/gen-fixture-library.sh +++ b/scripts/gen-fixture-library.sh @@ -214,12 +214,12 @@ while IFS= read -r pin; do done < <(find "$ROOT"/crates/*/fixtures -maxdepth 1 -type f 2>/dev/null | sed "s#^$ROOT/##" | sort) -# Known-absent pins that no source literal reached still belong in the -# manifest: a missing pin must be a row, not a gap. -for p in fixtures/ll444-lossless-key.obu fixtures/golden3-pin.obu fixtures/sbpart-pin.obu; do - grep -qP "^\Q$p\E\t" "$tmp" && continue - row "$p" "(named absent pin)" "$(absent_pin "$p")" absent-pin >>"$tmp" -done +# A known-absent pin is annotated where a source literal actually REACHES for +# it (pass 1, above: `absent_pin` supplies the provenance and the `absent-pin` +# status). Nothing is injected here: a pin no code references any more is not +# a gap in the library, it is a deleted reference, and inventing a row for it +# would keep a stale claim alive. A pin that IS referenced and IS absent still +# gets a row, because pass 1 emits one for every literal. # Which tests consume the fetched vector sets, and does anything need the # .tar.gz blobs? The fleet sync excluded them deliberately, so a test that