gate_coverage: lower the count-vacuity unpinned ceiling 43 -> 2
Browse files at this commitfbed1b614e7b3bfe63435e9dfe9c81fd442d8c0eParent: 222f4c51 changed file +23 -1
crates/ec-av1/src/gate_coverage.rsmodified+23 -1
| @@ -2414,8 +2414,30 @@ mod count_vacuity_tests { | |||
| 2414 | // A CEILING on the unpinned population, so a NEW site cannot be added | 2414 | // A CEILING on the unpinned population, so a NEW site cannot be added |
| 2415 | // silently. Lower it as sites are fixed; a fix that does not lower it is | 2415 | // silently. Lower it as sites are fixed; a fix that does not lower it is |
| 2416 | // still a fix, but a NEW site is an immediate red. | 2416 | // still a fix, but a NEW site is an immediate red. |
| 2417 | + // | ||
| 2418 | + // lane-av1pinspec: 43 -> 2. Each of the 41 fixes adds the ENCODE's own | ||
| 2419 | + // frame count as an `assert_eq!` ABOVE the `ffmpeg_decode_sequence*` | ||
| 2420 | + // call (`-frames:v 1` / `-vframes 1` / `--limit=N` / a helper's `frames` | ||
| 2421 | + // parameter / the arm tuple's `frame_count` / the wire's own OBU frame | ||
| 2422 | + // headers), so the count handed to the oracle is a value already proven | ||
| 2423 | + // against the encode instead of read off our decode. The two that remain | ||
| 2424 | + // are the two that are not a count to fix: | ||
| 2425 | + // * `an_svt_screen_palette_block_with_a_split_transform_decodes_exactly` | ||
| 2426 | + // reads the path `EC_AV1_SVT1_STREAM` names, and that crop is not | ||
| 2427 | + // committed to `fixtures/`, so no `--limit`, no `-frames:v` and no | ||
| 2428 | + // frame count exists anywhere in the tree for it. The doc comment's | ||
| 2429 | + // "12-frame stream" is prose about one capture and the env var | ||
| 2430 | + // accepts any file, so asserting 12 would pin a number nothing can | ||
| 2431 | + // check. Counting the stream's own OBU frame headers with | ||
| 2432 | + // `Av1Parser` would derive one, and is left on the table | ||
| 2433 | + // deliberately: the gate SKIPs on any box without that env var, so | ||
| 2434 | + // such an assert would ship unexercised. | ||
| 2435 | + // * a `///` DOC COMMENT quoting the pre-r4 body of | ||
| 2436 | + // `pinned_lr_sgr_stream_call_unique_dump`, which this line-based | ||
| 2437 | + // scan cannot tell from code. The gate it describes already spends | ||
| 2438 | + // `FRAMES` and asserts `pics.len() == FRAMES`. | ||
| 2439 | + const UNPINNED_CEILING: usize = 2; | ||
| 2417 | let unpinned = s.iter().filter(|x| x.pinned_by.is_none()).count(); | 2440 | let unpinned = s.iter().filter(|x| x.pinned_by.is_none()).count(); |
| 2418 | - const UNPINNED_CEILING: usize = 43; | ||
| 2419 | assert!( | 2441 | assert!( |
| 2420 | unpinned <= UNPINNED_CEILING, | 2442 | unpinned <= UNPINNED_CEILING, |
| 2421 | "{unpinned} unpinned count site(s), ceiling is {UNPINNED_CEILING} -- a new one \ | 2443 | "{unpinned} unpinned count site(s), ceiling is {UNPINNED_CEILING} -- a new one \ |