lanes: av1skipfix report — per-crate assert-site rows, link-fixtures root cause
Browse files at this commitb1ef0d6a7035792301c62a9bfd07fb8b1a9c6d3dParent: 168b4911 changed file +48 -0
- lanes/av1skipfix.report.md +48 -0
lanes/av1skipfix.report.mdmodified+48 -0
| @@ -85,8 +85,56 @@ across two homes (`crates/ec-av1/fixtures/`, committed, 48 files) and the root | ||
| 85 | 85 | `fixtures/`, gitignored — and `pin_dir()` resolves to the gitignored one, so any pin |
| 86 | 86 | written there is un-reproducible on a fresh clone by construction. |
| 87 | 87 | |
| 88 | +## Defect 3 — the root cause: a worktree has no `fixtures/` at all | |
| 89 | + | |
| 90 | +`fixtures/` is `.gitignore:2`, so `git worktree add` hands every lane worktree a tree | |
| 91 | +without it. Not one gate in ec-av1/ec-h264/ec-flac/ec-opus checks that before skipping, | |
| 92 | +so a worktree run measures nothing while looking clean. Fixed on both halves: | |
| 93 | + | |
| 94 | +- **(b) root cause** — `scripts/link-fixtures.sh` resolves the primary checkout through | |
| 95 | + `git rev-parse --git-common-dir` (works from any linked worktree), symlinks its | |
| 96 | + `fixtures/` in, no-ops with a message when the directory already exists, and refuses | |
| 97 | + loudly (exit 2) when the primary has none. `--check` is the preflight. Verified in a | |
| 98 | + synthetic repo+worktree: links, is idempotent, and refuses with the generator names. | |
| 99 | + Documented in `lanes/COMMON-20260901.md` beside the batch env line. | |
| 100 | +- **(a) the assert** — `EC_REQUIRE_FIXTURES=1` (default off, set in every batch unit by | |
| 101 | + the parent) turns each missing-fixture skip into a hard failure naming the path, the | |
| 102 | + generator when one exists, and `scripts/link-fixtures.sh` when the real cause is the | |
| 103 | + missing root directory. | |
| 104 | + | |
| 105 | +### Per-crate assert sites | |
| 106 | + | |
| 107 | +| file:line | shape before | shape after | red proof | green proof | | |
| 108 | +|---|---|---|---|---| | |
| 109 | +| `crates/ec-h264/tests/conformance.rs:299` (`jvt_cavlc_first_idr_bit_exact`) | `!base.is_dir()` → `SKIP: … missing — run scripts/fetch-vectors.sh` | `require_fixtures(&base, "the JVT conformance vectors", "scripts/fetch-vectors.sh")` | `EC_REQUIRE_FIXTURES=1`, `fixtures/` unlinked → panics "the JVT conformance vectors missing at …/vectors/h264-jvt — this gate would prove nothing" | linked: 1 passed (1.58s) | | |
| 110 | +| `crates/ec-h264/tests/conformance.rs:406` (`steady_state_decode_loop_zero_alloc`) | `!base.is_dir()` → `SKIP: fixtures missing` | same helper | same env/path | linked: 1 passed (0.73s) | | |
| 111 | +| `crates/ec-h264/tests/conformance.rs:490` (`ns_per_macroblock_measurement`) | `!base.is_dir()` → `SKIP: fixtures missing` | same helper | same env/path | linked: 1 passed (9.94s) | | |
| 112 | +| `crates/ec-h264/tests/conformance.rs:574` (`corrupt_streams_never_panic`) | `!base.is_dir()` → `SKIP: fixtures missing` | same helper | same env/path | linked: 1 passed (20.85s) | | |
| 113 | +| `crates/ec-h264/tests/conformance.rs:1080` (`jvt_full_sequence_bit_exact`) | `!base.is_dir()` → `SKIP: … missing` | same helper | same env/path | linked: 1 passed (5.59s) | | |
| 114 | +| `crates/ec-h264/tests/conformance.rs:2323` (`h264_seek_matches_linear_open_gop`) | `!src.is_file()` → `SKIP: no fixtures/video/h264-open-gop.mp4 (run scripts/gen-fixtures.sh)` | same helper, generator `scripts/gen-fixtures.sh` | `EC_REQUIRE_FIXTURES=1` → panics "the open-GOP fixture missing at …/video/h264-open-gop.mp4" | linked: 1 passed (0.75s) | | |
| 115 | +| `crates/ec-flac/tests/xiph_vectors.rs:24` (`corpus()`, all 4 gates) | `read_dir().ok()?` → `None` → each gate `eprintln!("skipped: …")` + return | assert in `corpus()` itself — the one place that knows the path — so 4 gates, 1 hunk | `EC_REQUIRE_FIXTURES=1` → panics "the FLAC xiph subset corpus is missing at …/subset" | linked: 4 passed (32.0s) | | |
| 116 | +| `crates/ec-opus/tests/conformance.rs:425` (`rfc6716_test_vectors`) | `!path.exists()` → `eprintln!("{name}: missing, skipped")` + `continue` (no env at all) | per-vector assert naming path + `scripts/link-fixtures.sh` + `scripts/fetch-vectors.sh` | `EC_REQUIRE_FIXTURES=1` → panics "RFC 6716 test vector testvector01 missing at …/opus_testvectors/testvector01.bit" | linked: 1 passed (179.2s) | | |
| 117 | +| `crates/ec-av1/src/stream.rs:6500` (`a_real_aomenc_lossless_444_key_frame_decodes_sample_exact`) | `Err` → `SKIP … -- regenerate with …` (gate ran 0.05s, decoded nothing) | assert naming path + `scripts/link-fixtures.sh` + regeneration recipe + `EC_AV1_PIN_DIR`; fires on `EC_REQUIRE_FIXTURES` **or** `EC_AV1_REQUIRE_AOMENC` | `EC_REQUIRE_FIXTURES=1` → panics "the pinned 4:4:4 lossless key frame is missing at …/ll444-lossless-key.obu" | default: SKIP with the recipe; both envs: FAILED | | |
| 118 | + | |
| 119 | +Deliberately **not** converted: the `if path.exists()` arms in ec-opus at 740/1852 | |
| 120 | +(optional-input blocks inside tests that assert nothing on them) and the | |
| 121 | +`~/Music/…` skips at 4985/5378/5607 (personal media, not a fixture manifest — failing | |
| 122 | +those on every box would be its own lie). | |
| 123 | + | |
| 124 | +### Provenance hand-off | |
| 125 | + | |
| 126 | +The enumeration above is Agent18-2's input for `scripts/fixture-library.tsv`; this lane did | |
| 127 | +not build the manifest. What the assert messages now guarantee is that every gate that | |
| 128 | +reads a fixture names the path it wanted, the generator when one exists, and | |
| 129 | +`scripts/link-fixtures.sh` when the cause is the missing root directory. | |
| 130 | + | |
| 88 | 131 | ## Commits |
| 89 | 132 | |
| 90 | 133 | - `cd81750b` — stream: convert the four skip-on-decode-error gates to attempt loops |
| 91 | 134 | - `0b92c6da` — refusal_inventory: empty GATES_THAT_SKIP_ON_A_DECODE_ERROR |
| 92 | 135 | - `3c302798` — stream: a_real_aomenc_lossless_444_key_frame stops reporting green on a missing pin |
| 136 | +- `62c04b70` — scripts: link-fixtures.sh — give a worktree the gitignored root fixtures/ | |
| 137 | +- `423ce6be` — stream: the 444 pin arm also honours the repo-wide EC_REQUIRE_FIXTURES | |
| 138 | +- `ae94ee6a` — ec-h264: a missing conformance vector FAILS under EC_REQUIRE_FIXTURES | |
| 139 | +- `d853d31a` — ec-flac: a missing xiph corpus FAILS under EC_REQUIRE_FIXTURES | |
| 140 | +- `3f94c60d` — ec-opus: a missing RFC 6716 vector FAILS under EC_REQUIRE_FIXTURES |