Commits
Commits on
d6a3cc0a00b1eef239e2abf73b0d2760b5c693deFiltered to scripts/fixture-library.tsvClear filter2026-09-29
gen-fixture-library: an ellipsis placeholder is not a fixture pathAhmet Kaan Gümüş · d6a3cc0
gen-fixture-library: an ellipsis placeholder is not a fixture path A merged-in literal "fixtures/..." in ec-av1/stream.rs became a manifest row that resolves nowhere, so the preflight reported mode ii on its own tree. The literal filter now drops any candidate containing '...'. Manifest 290 rows, byte-identical on regeneration, verify GREEN.
preflight rework: path-free generated header, reproducible artifact, split exit statusAhmet Kaan Gümüş · e6d595d
preflight rework: path-free generated header, reproducible artifact, split exit status Review findings, fixed: 1. The generated header carried the AUTHORING WORKTREE's absolute path. A generated artefact is exactly how a host path slips past the commit-message scan, so the header now says only 'FIXTURE ROOT: worktree-relative' and resolves through EC_FIXTURES at run time. No absolute path remains anywhere in scripts/fixture-library.tsv. 2. The tsv carried three '(named absent pin)' rows the generator never emits -- the post-loop injection did, and it was already removed. Regenerated: zero such rows, and every one of the pins that row claimed (golden3, sbpart, ll444-lossless-key) is now present and tracked, as are the four recovered this session (golden4, golden6, golden7, lr-sgr-r7), which are committed here so the gate census reads committed=7 instead of committed=3. Regeneration is now byte-identical: cp tsv, regenerate, cmp -> IDENTICAL. 3. The host-dependent header is gone, so the drift check is no longer structurally red off the generating worktree; what legitimately differs is confined to the host-state columns (status, tracked, sha256) and the unresolved-literal count, all excluded from the row comparison. 4. ec-vorbis: the guard is NOT there and is not added. Its three fixture sites are the operator's own media library, which EC_REQUIRE_FIXTURES must not turn into a red fleet; the crate carries non-empty floors instead. The report now names the exact crate list instead of the wrong 'four crates'. 5. The 1054-line edit in ec-opus/../ec-h264/../ec-flac is GONE from this branch: the wave landed the same class fix in its own require_fixtures shape, and two conventions in one file is the defect this lane exists to prevent. Those three files are now main's version verbatim. What remains is the crates the wave did not touch: ec-aac (2 files), ec-flac/encode_matrix, ec-mp3, ec-vp9 (4), plus ec-vorbis floors. 6. lanes/av1fixlib.report.md now exists on this branch. Exit status is split, deliberately: the LIBRARY verdict (mode i, mode ii, drift) decides the exit under EC_REQUIRE_FIXTURES=1, and the four code-shape invariants are reported with their own count and fail only under EC_FIXTURE_SHAPE_STRICT=1. A shape violation is a defect in a file this preflight does not own -- two live sites in crates/ec-av1 -- and a batch that cannot start because another crate has two open lines helps nobody. Nothing is hidden: the count is printed every run, and one env var away from fatal. Default: GREEN 286 rows. Strict: RED (code-shape violations).
fixture-preflight: kill the fixture-absent silent-skip class, generate the fixture library manifestAhmet Kaan Gümüş · 60e2653
fixture-preflight: kill the fixture-absent silent-skip class, generate the fixture library manifest
A test that could not find its fixture printed SKIP and returned, so the suite
reported PASS having tested nothing. That cost a 3-hour suite red from a missing
repo-root fixtures/ dir and three hosts whose fixture libraries differed
silently. Two halves:
1. The sweep. One convention in every non-av1 test crate: probe first, assert
LAST with an EC_REQUIRE_FIXTURES escape, return LAST -- never an early
return, and never the probe folded into the same `if` as the escape (the
`have_ffmpeg` short-circuit in crates/ec-av1/src/stream.rs). Converted
ec-h264 (conformance + encode), ec-flac (xiph_vectors + encode_matrix),
ec-opus conformance, ec-aac (oracle + sbr_real_library), ec-mp3
encode_matrix, ec-vp9 (hbd_exact, inter_pixels_exact, subsampling_exact,
scratch_interdump), plus non-empty floors on fixture loops that ended in a
bare assert!(failed.is_empty()) over a possibly ZERO-iteration loop
(jvt_full_sequence_bit_exact, corrupt_streams_never_panic,
ns_per_macroblock_measurement, ec-aac synthetic_heaac_matrix, ec-mp3's 8-WAV
corpus, ec-vorbis' three user-library sweeps).
Host media directories are deliberately NOT gated: a personal corpus is not
the committed library, and EC_REQUIRE_FIXTURES must not turn one operator's
home into a red fleet. They route through a separate require_host_media
helper. Tool-absence SKIPs (ffmpeg/x264/aomenc on PATH) stay a tool gate,
out of scope.
2. The preflight. scripts/gen-fixture-library.sh GENERATES
scripts/fixture-library.tsv (path, required-by file:line, provenance,
status, sha256) and scripts/verify-fixture-library.sh checks SHAPE, RESOLVE
(every path exists, every directory non-empty) and DRIFT (regenerating
reproduces the committed file). It distinguishes the two failure modes: a
missing fixture ROOT (mode i -- a linked worktree never has the gitignored
fixtures/; fix the tree) from a missing path inside a present root (mode ii
-- run the generator). It honours the same EC_REQUIRE_FIXTURES env: red when
set, SKIP-shaped and exit 0 when not.
The manifest states findings rather than hiding them: 52 committed pins
whose only provenance is a gate comment, 3 known-absent pins kept as rows
(ll444-lossless-key.obu, golden3-pin.obu, sbpart-pin.obu), and 4 committed
pins no source literal references. Enumeration is grep-derived and therefore
blind to runtime-assembled names (191 media literals resolve under no
enumerated directory); those are covered as far as their parent directory,
which must exist and be non-empty.
Proof (EC_NOMEMGUARD=1 only because the repo's memguard runner hit a stale
systemd scope):
EC_REQUIRE_FIXTURES=1 ec-h264 conformance 23 passed / encode 12 passed
EC_REQUIRE_FIXTURES=1 ec-flac xiph_vectors 4, encode_matrix 2 passed
EC_REQUIRE_FIXTURES=1 ec-opus conformance 28 passed / 16 ignored
EC_REQUIRE_FIXTURES=1 ec-aac oracle 14, ec-mp3 encode_matrix 5, ec-vorbis 8
mv fixtures/video/h264-open-gop.mp4 -> RED: "EC_REQUIRE_FIXTURES=1 but
fixture ... is absent -- regenerate with: scripts/gen-fixtures.sh"
mv flac subset/ and opus testvector01.bit -> RED on both
scripts/verify-fixture-library.sh: GREEN; with a fixture renamed and
EC_REQUIRE_FIXTURES=1 -> RED mode ii listing the path; same rename with
the env unset -> SKIP-shaped, exit 0; EC_FIXTURES=/nonexistent -> RED
mode i.