lanes/av1pins r2: the two pins were still #[ignore]d, so a plain run executed nothing
Browse files at this commit7e0495071eb4dfcac7593c3f14f48fe96cf04d0aParent: 04ca4501 changed file +120 -0
- lanes/av1pins.report.md +120 -0
lanes/av1pins.report.mdmodified+120 -0
| @@ -202,3 +202,123 @@ probes/benchmarks excluded from the earlier release triage. | ||
| 202 | 202 | |
| 203 | 203 | Procedure saved as managed skills `stale-ignore-reason-vs-stale-comment` and |
| 204 | 204 | `fixture-absent-silent-skip-class`. |
| 205 | + | |
| 206 | +--- | |
| 207 | + | |
| 208 | +# r2 — the two pins were still `#[ignore]`d, so a plain run executed nothing | |
| 209 | + | |
| 210 | +Branch `lane-av1pinslive` off current main `a5867794`. Commit `2e9086c0`. Tests | |
| 211 | +only, no decoder change, no push. | |
| 212 | + | |
| 213 | +A clean-checkout verification (13 branches, 39 gates) reported that the two gates | |
| 214 | +lane-av1pins recovered are `#[ignore]`d: they pass under `--ignored` and their pins | |
| 215 | +are committed, but **in a plain suite run they do not execute**. That is correct | |
| 216 | +and it is the same hole in a different costume. r1's before/after table was | |
| 217 | +measured with `--ignored` and did not say so, which made it read as a fix when it | |
| 218 | +was only a fix *under a flag*. | |
| 219 | + | |
| 220 | +## 1. The facts | |
| 221 | + | |
| 222 | +| gate | `#[ignore]` on main `a5867794`? | reason string | | |
| 223 | +|---|---|---| | |
| 224 | +| `pinned_golden3_stream_decodes_pixel_exact` | **yes** | `bisect aid, not a suite gate; run it with --ignored` | | |
| 225 | +| `pinned_sbpart_stream_decodes_pixel_exact` | **yes** | `bisect aid, not a suite gate; run it with --ignored` | | |
| 226 | +| `a_real_aomenc_lossless_444_key_frame_decodes_sample_exact` | **no — already live** | — | | |
| 227 | + | |
| 228 | +**The reason string is stale, and it went stale twice.** It was introduced at | |
| 229 | +`c9fede5d` (2026-08-28, lane-av1golden3) as | |
| 230 | +`reads a pinned fixture path outside the repo; run manually`, with the doc comment | |
| 231 | +giving the real cause: *"the file only exists on this machine's scratchpad"*. True | |
| 232 | +then. It stopped being true at `78c805bd` (lane-av1pins), which committed both pins | |
| 233 | +under `crates/ec-av1/fixtures/` — a path that travels in the runner tarball, so the | |
| 234 | +bytes are on every runner. | |
| 235 | + | |
| 236 | +**The second staleness is mine.** lane-av1pins replaced the reason with *"bisect aid, | |
| 237 | +not a suite gate"* — a judgement, not a fact, and wrong on this tree: with the bytes | |
| 238 | +committed these are ordinary decode-exactness gates that cost 0.10–0.15 s, not | |
| 239 | +bisect aids. A clean-checkout run cannot see a committed pin, so the lane that | |
| 240 | +*fixed* the pin hole left the ignore hole standing in the same commit. | |
| 241 | + | |
| 242 | +## 2. No condition that makes this crate ignore a gate applies | |
| 243 | + | |
| 244 | +Measured on `a5867794`, both gate bodies: | |
| 245 | + | |
| 246 | +* **no process-global** — neither calls `force_sb128` nor `knob_write`. This is the | |
| 247 | + condition that legitimately earns 11 other ignores in this crate. | |
| 248 | +* **no counter, no `lock_gate_counters()`** — so `--test-threads=1` is not required | |
| 249 | + of them either. | |
| 250 | +* **no aomenc** — they decode committed bytes and compare to ffmpeg, so they are not | |
| 251 | + real-aomenc gates and stay out of the `gate_coverage` census either way. | |
| 252 | +* **not slow** — 0.10–0.15 s each, against 9 ignored siblings that declare | |
| 253 | + minutes-per-item. | |
| 254 | +* **ffmpeg guarded** — `have_ffmpeg()` already honours `EC_AV1_REQUIRE_FFMPEG`, so a | |
| 255 | + missing ffmpeg is a hard failure, not a silent skip. | |
| 256 | + | |
| 257 | +Precedent in-tree: `gate_coverage.rs` records the 10-bit LR gate *"was `#[ignore]`d on | |
| 258 | +that branch and passes un-ignored on main, which carries the fix"* — the same | |
| 259 | +un-ignore-once-the-blocker-clears move. | |
| 260 | + | |
| 261 | +## 3. Before / after, plain run | |
| 262 | + | |
| 263 | +Both commands are **plain** — no `--ignored`, no `--exact` needed to select them: | |
| 264 | + | |
| 265 | +``` | |
| 266 | +cargo test -p ec-av1 --lib --release -- --exact stream::tests::pinned_golden3_stream_decodes_pixel_exact --test-threads=1 --nocapture | |
| 267 | + test ...pinned_golden3_stream_decodes_pixel_exact ... pinned_golden3_stream_decodes_pixel_exact: | |
| 268 | + 4 frame(s) byte-exact vs ffmpeg from .../crates/ec-av1/fixtures/golden3-pin.obu | |
| 269 | + test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 730 filtered out; finished in 0.15s | |
| 270 | + | |
| 271 | +cargo test -p ec-av1 --lib --release -- --exact stream::tests::pinned_sbpart_stream_decodes_pixel_exact --test-threads=1 --nocapture | |
| 272 | + test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 730 filtered out; finished in 0.10s | |
| 273 | + (EC_SBPART_DIAG=1 additionally prints "DIAG frame 0: 0 luma mismatches ... of 192x128" | |
| 274 | + plus per-SB-column counts — all 24576 luma samples walked) | |
| 275 | +``` | |
| 276 | + | |
| 277 | +| | main `a5867794` plain run | branch `2e9086c0` plain run | | |
| 278 | +|---|---|---| | |
| 279 | +| `pinned_golden3` | *not executed* (ignored) | 1 passed, 0.15s, prints 4 frames byte-exact | | |
| 280 | +| `pinned_sbpart` | *not executed* (ignored) | 1 passed, 0.10s | | |
| 281 | +| `a_real_aomenc_lossless_444_key_frame...` | 1 passed, 0.21s | 1 passed, 0.21s (unchanged) | | |
| 282 | + | |
| 283 | +Three further confirmations that they are genuinely live rather than merely | |
| 284 | +un-flagged: they execute under a plain **substring** filter (`-- pinned_`, no | |
| 285 | +`--exact`, no `--ignored`); neither appears in `-- --ignored` any more (0 matches); | |
| 286 | +and `#[ignore]` in `stream.rs` drops **41 → 39**. | |
| 287 | + | |
| 288 | +## 4. A regression I caused and then disproved — recorded because it nearly shipped | |
| 289 | + | |
| 290 | +The first `gate_coverage` run **on this branch** showed | |
| 291 | +`FAILED. 8 passed; 2 failed` (`never_exercised_8bit_matches_the_gate_recipes`, | |
| 292 | +`never_exercised_10bit_matches_the_gate_recipes`), while the same filter on main | |
| 293 | +passed 10/10. Un-ignoring changes the census input, so I took that as a regression | |
| 294 | +I had introduced. | |
| 295 | + | |
| 296 | +It was not. A 554-second `--ignored` full-suite run was executing **against the same | |
| 297 | +worktree and the same `CARGO_TARGET_DIR` at that moment**. Re-run after it finished: | |
| 298 | +`gate_coverage` **10 passed / 0 failed on 6 consecutive runs**, and alone with | |
| 299 | +`--exact` it also passes. These are compile-time source scans (`include_str!`), | |
| 300 | +which cannot be perturbed by runtime state — consistent with a build/link race on | |
| 301 | +the shared target dir, not with a logic change. Recorded because "I broke a meta-gate" | |
| 302 | +was the correct reading of the evidence at the time, and the reason it was wrong is | |
| 303 | +worth keeping. | |
| 304 | + | |
| 305 | +Final meta-gate state after the change: `gate_coverage` **10 passed**, | |
| 306 | +`refusal_inventory` **15 passed**, both green. | |
| 307 | + | |
| 308 | +## 5. Follow-on found, NOT done here | |
| 309 | + | |
| 310 | +Three sibling pin gates carry the same stale reason **and** still read pins that are | |
| 311 | +not committed — so in a clean checkout each either skips or panics: | |
| 312 | + | |
| 313 | +| gate | pin | committed? | failure mode if un-ignored as-is | | |
| 314 | +|---|---|---|---| | |
| 315 | +| `pinned_golden4_stream_decodes_pixel_exact` | `golden4-pin.obu` | no | silent skip | | |
| 316 | +| `pinned_golden7_stream_decodes_pixel_exact` | `golden7-forwarding-mismatch.obu` | no | silent skip | | |
| 317 | +| `pinned_lr_sgr_stream_call_unique_dump` | `lr-sgr-r7.obu` | no | **panic** — `std::fs::read(path).expect(...)`, no graceful skip | | |
| 318 | + | |
| 319 | +All three read through `pin_dir()` or a `concat!(env!("CARGO_MANIFEST_DIR"), | |
| 320 | +"/../../fixtures/...")` literal, i.e. the gitignored root. `golden6-mismatch.obu` is | |
| 321 | +a fourth untracked pin. These are the same defect and the same fix; recovering them | |
| 322 | +is mechanical from the r1 recipes (golden4 and golden7 are siblings of golden3 off | |
| 323 | +the cdf-forwarding gate). Left out of this commit to keep it a reason-removal, and | |
| 324 | +handed back rather than folded in silently. |