forge
Explore
Log in

Don't you dare go Hollow

Un-ignore the intra 1:4-in-inter gate on the merged tree, then re-ignore it on a MEASURED new blocker

Browse files at this commit

9704835af29ac208123b7464861bc0be5b8580fdAhmet Kaan GümüşParent: 9ffbff5
  • test
    • un-ignore the intra 1:4-in-inter gate on the merged tree, then re-ignore it on a MEASURED new blocker
Show full message
test(av1): un-ignore the intra 1:4-in-inter gate on the merged tree, then re-ignore it on a MEASURED new blocker

Merging main 18bf7dc (lane-r14 a2e2e29) lifts the refusal r1 named, and the
gate goes from 0 to 3 of 40 attempts pixel-compared, one firing 64x16=4
16x64=3. All three mismatch -- but so do the two that fire ZERO 1:4 strips,
identically (frame 3/4 luma ~4k samples max |d| 6..17, then reference drift),
and --enable-1to4-partitions=0 re-encodes byte-identical. The blocker is a
pre-existing inter-frame defect of the mandelbrot gate source, not this path.
Gate unchanged and unweakened; only the #[ignore] reason is now the measured
one.
crates/ec-av1/src/stream.rsmodified+44 -18
@@ -4600,30 +4600,56 @@ mod tests {
4600 /// [[gate-skips-on-its-own-failure]]); exhausting every attempt without a4600 /// [[gate-skips-on-its-own-failure]]); exhausting every attempt without a
4601 /// counted strip is a FAILURE, never a SKIP.4601 /// counted strip is a FAILURE, never a SKIP.
4602 #[test]4602 #[test]
4603- // MEASURED (r1, 40 gate attempts + 150 recipe-sweep attempts, see4603+ // r1 `#[ignore]`d this gate on "every stream with an intra 1:4 strip also
4604- // lanes/intra14-r1.report.md): on THIS tree every aomenc stream that4604+ // hits the inter rect-strip refusal". r2 merged main 18bf7dc (lane-r14
4605- // carries an intra 1:4 strip inside an inter frame ALSO carries a4605+ // a2e2e29 lifts exactly that refusal) and re-ran it: 3 of 40 attempts now
4606- // non-skip INTER 2:1 rect strip / SB-level AB partition / sub-8 inter4606+ // decode whole and reach the pixel compare (0 before), one of them firing
4607- // partition, each refused by name by another lane's surface before the4607+ // 64x16=4 16x64=3. But the compare fails on a defect this lane does not
4608- // frame completes -- so no attempt can be pixel-compared yet and this4608+ // own -- MEASURED (r2, $HOME/.cache/intra14-r2-*.log):
4609- // gate cannot pass. It is `#[ignore]`d rather than weakened; un-ignore4609+ // * seeds 46 and 54 fire ZERO 1:4 strips (`intra_rect4_strip_in_inter_hits`
4610- // it (and re-run) once the inter rect-leaf lane lands.4610+ // delta 0/0/0/0) and mismatch ffmpeg the same way as the firing seed 52:
4611- #[ignore = "blocked: every stream with an intra 1:4 strip also hits the inter rect-strip refusal"]4611+ // decode-order frame 3/4 luma ~3.7-4.5k samples, max |d| 6..17, then
4612+ // frames 5-7 drift to ~24k samples, max |d| ~220 as the references
4613+ // carry the error forward.
4614+ // * with `--enable-1to4-partitions=0` aomenc emits a BYTE-IDENTICAL
4615+ // stream at this recipe (same hits, same per-frame diff counts), so
4616+ // the 1:4 shape is not the discriminator either.
4617+ // i.e. this mandelbrot 192x128 source has a pre-existing INTER-frame
4618+ // pixel defect on this tree (r1 already recorded it as "open, NOT mine"
4619+ // with rect partitions off; it is now this gate's blocker). testsrc2 at
4620+ // 192x128 decodes pixel-exact on the same recipe but fires no 1:4 strip
4621+ // in 4 of 12 attempts that decode whole. So the gate stays `#[ignore]`d
4622+ // rather than weakened: a source whose baseline is exact AND that fires
4623+ // an intra 1:4 strip has not been found yet.
4624+ #[ignore = "blocked: the mandelbrot gate source has a pre-existing inter-frame pixel defect on this tree (zero-hit streams mismatch identically) -- see the MEASURED note above"]
4612 fn a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact() {4625 fn a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact() {
4613 intra_rect4_in_inter_gate(8);4626 intra_rect4_in_inter_gate(8);
4614 }4627 }
4615 4628
4616 /// The 10-bit arm (both of the user's films are `yuv420p10le`).4629 /// The 10-bit arm (both of the user's films are `yuv420p10le`).
4617 #[test]4630 #[test]
4618- // MEASURED (r1, 40 gate attempts + 150 recipe-sweep attempts, see4631+ // r1 `#[ignore]`d this gate on "every stream with an intra 1:4 strip also
4619- // lanes/intra14-r1.report.md): on THIS tree every aomenc stream that4632+ // hits the inter rect-strip refusal". r2 merged main 18bf7dc (lane-r14
4620- // carries an intra 1:4 strip inside an inter frame ALSO carries a4633+ // a2e2e29 lifts exactly that refusal) and re-ran it: 3 of 40 attempts now
4621- // non-skip INTER 2:1 rect strip / SB-level AB partition / sub-8 inter4634+ // decode whole and reach the pixel compare (0 before), one of them firing
4622- // partition, each refused by name by another lane's surface before the4635+ // 64x16=4 16x64=3. But the compare fails on a defect this lane does not
4623- // frame completes -- so no attempt can be pixel-compared yet and this4636+ // own -- MEASURED (r2, $HOME/.cache/intra14-r2-*.log):
4624- // gate cannot pass. It is `#[ignore]`d rather than weakened; un-ignore4637+ // * seeds 46 and 54 fire ZERO 1:4 strips (`intra_rect4_strip_in_inter_hits`
4625- // it (and re-run) once the inter rect-leaf lane lands.4638+ // delta 0/0/0/0) and mismatch ffmpeg the same way as the firing seed 52:
4626- #[ignore = "blocked: every stream with an intra 1:4 strip also hits the inter rect-strip refusal"]4639+ // decode-order frame 3/4 luma ~3.7-4.5k samples, max |d| 6..17, then
4640+ // frames 5-7 drift to ~24k samples, max |d| ~220 as the references
4641+ // carry the error forward.
4642+ // * with `--enable-1to4-partitions=0` aomenc emits a BYTE-IDENTICAL
4643+ // stream at this recipe (same hits, same per-frame diff counts), so
4644+ // the 1:4 shape is not the discriminator either.
4645+ // i.e. this mandelbrot 192x128 source has a pre-existing INTER-frame
4646+ // pixel defect on this tree (r1 already recorded it as "open, NOT mine"
4647+ // with rect partitions off; it is now this gate's blocker). testsrc2 at
4648+ // 192x128 decodes pixel-exact on the same recipe but fires no 1:4 strip
4649+ // in 4 of 12 attempts that decode whole. So the gate stays `#[ignore]`d
4650+ // rather than weakened: a source whose baseline is exact AND that fires
4651+ // an intra 1:4 strip has not been found yet.
4652+ #[ignore = "blocked: the mandelbrot gate source has a pre-existing inter-frame pixel defect on this tree (zero-hit streams mismatch identically) -- see the MEASURED note above"]
4627 fn a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact_10bit() {4653 fn a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact_10bit() {
4628 intra_rect4_in_inter_gate(10);4654 intra_rect4_in_inter_gate(10);
4629 }4655 }
lanes/COMMON-20260901.mdmodified+6 -0
@@ -100,3 +100,9 @@ If you ran it: extract your own hunks, `git checkout -- crates/`, re-apply.
100 never two suites per lane; film extracts ≤2 s; a watchdog (`ec-memwatch` user unit, log100 never two suites per lane; film extracts ≤2 s; a watchdog (`ec-memwatch` user unit, log
101 `$HOME/.cache/ec-memwatch.log`) SIGKILLs any codec/test process above 6 GiB RSS or the largest one101 `$HOME/.cache/ec-memwatch.log`) SIGKILLs any codec/test process above 6 GiB RSS or the largest one
102 when MemAvailable < 3 GiB — a killed run means YOUR command exceeded the budget: bound it, do not retry as-is.102 when MemAvailable < 3 GiB — a killed run means YOUR command exceeded the budget: bound it, do not retry as-is.
103+
104+## WORKTREE SETUP (2026-09-02, three lanes lost a round to this)
105+A new worktree needs the TOP-LEVEL fixtures symlink: `ln -s /home/user/Documents/Code/Rust/edith_codecs/fixtures <worktree>/fixtures`.
106+Without it exactly one gate fails: a_real_aomenc_stream_with_film_grain_decodes_pixel_exact with Os NotFound — it is NOT a decode defect.
107+New files under crates/ec-av1/fixtures/ need `git add -f` (bare `fixtures` in .gitignore); verify with `git ls-files`.
108+Commit-msg hook rejects film titles / home paths: describe streams by codec/resolution/bit depth.
lanes/intra14-r2.report.mdadded+101 -0
@@ -0,0 +1,101 @@
1+# lane-intra14 r2 -- merge main, un-ignore the gate, re-measure
2+
3+Branch `lane-intra14`, base main `18bf7dc`. **RED**: the r1 blocker refusal is
4+gone and the gate now reaches the pixel compare, but every compared attempt
5+mismatches on a defect this lane does not own, so the lifted refusal is still
6+**ungated** and this branch MUST NOT merge as-is.
7+
8+## 1. Merge (commit 4672212)
9+
10+`git merge --no-commit main` -- one conflict (stream.rs counter accessors,
11+resolved keeping BOTH lanes' functions: `intra_rect4_in_inter_counters` and
12+lane-r14's `rect64_inter_tu_hits`). md5 of the merged files vs main:
13+
14+| file | main | merged |
15+|---|---|---|
16+| cdf.rs (incl. NZ_MAP / FILTER_INTRA regions) | a3fb168e | a3fb168e |
17+| cdf_state.rs | 6faaa22c | 6faaa22c |
18+| encode.rs | 6c9f9f66 | 6c9f9f66 |
19+| mvstack.rs | 3ff196a2 | 3ff196a2 |
20+
21+i.e. every file this lane does not own came through byte-identical to main;
22+`decode.rs` / `refusal_inventory.rs` / `decode_probe.rs` carry only this lane's
23+additions on top of main's text (`git diff main -- <file>` reviewed hunk by hunk).
24+
25+## 2. The gate, un-ignored and re-run (8-bit, 40 attempts)
26+
27+`--exact stream::tests::a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact --nocapture`
28+
29+Before (r1 tree): 40/40 attempts refused, 0 pixel-compared.
30+After the merge: **3 attempts decode whole**, one of them firing the feature:
31+
32+* seed 52 (`--cpu-used=3 --cq-level=45`): `64x16=4 16x64=3 32x8=0 8x32=0`
33+* seed 46 (`--cpu-used=1 --cq-level=55`): `0 0 0 0`
34+* seed 54 (`--cpu-used=1 --cq-level=35`): `0 0 0 0`
35+
36+All three MISMATCH ffmpeg, and **the two zero-hit attempts mismatch exactly like
37+the firing one**: decode-order frame 3/4 luma ~3.7-4.5k samples at max |d| 6..17
38+(first diff around x=128..141, y=58..59), then frames 5-7 drift to ~24k samples
39+at max |d| ~220 as the references carry the error. So the failure is NOT the 1:4
40+strip path: it is a pre-existing INTER-frame defect of this mandelbrot 192x128
41+source on this tree -- the same one r1 already recorded as "open, NOT mine"
42+(3729 samples, max |d| = 6, with rect partitions off). Control: re-encoding the
43+seed-52 recipe with `--enable-1to4-partitions=0` yields a byte-identical stream
44+(same hits, same per-frame diff counts), so aomenc ignores that flag here and
45+the shape is not the discriminator either.
46+
47+Remaining refusals over the 40 attempts (37 of them, all other lanes' surfaces):
48+inter SB-level AB (12), inter 16x16-level AB or 1:4 (6), non-skip rect strip
49+needs rect residual coding (5), split intra strip whose TU is 32x64 / 64x32 (5),
50+inter partition below 8x8 (4), sub-8 angle delta / other (5).
51+
52+The two gate arms are therefore **`#[ignore]`d again, with the new blocker
53+measured and named in the source** (stream.rs, above both arms) instead of the
54+stale r1 reason. The gate itself is unchanged and unweakened: counters are
55+per-attempt deltas on decoded+compared attempts only, every decode-order frame
56+compared, a decode error is never a SKIP.
57+
58+### Recipe hunt for a clean-baseline source (240-recipe matrix + a 4-source probe)
59+* matrix 192x128/256x192/128x128 x min-part 16/32 x tx-size-search 0/1 x
60+ cq 63/55/45/35/25 x cpu 1..4 (98 recipes ran before the 10-min bound): exactly
61+ ONE fired 1:4 strips (192x128, min=32, txs=1, cq35, cpu2 -> `64x16=2 16x64=4`)
62+ and it mismatches (118035 samples); 7 more decoded with zero hits.
63+* `testsrc2=192x128` on the same recipe: 4 of 12 attempts decode **pixel-exact**
64+ (clean baseline) but fire zero 1:4 strips; the other 8 hit named refusals.
65+* `--enable-cfl-intra=1` was NOT re-measured -- the run budget went to the
66+ mismatch triage. deferred.
67+
68+## 3. Film check (his ReelB extract, unchanged by the merge)
69+
70+`decode_probe scratchpad/census3/kf/seg_4500.obu` (3840x1608 yuv420p10le, 213
71+frame headers): still stops at "a split intra strip whose transform unit is
72+64x32 (no luma coefficient tables for that shape here)", still decodes
73+`intra_rect4_in_inter: 64x16=0 16x64=4 32x8=0 8x32=0`. `EC_AV1_FINAL_DUMP` file
74+count is 0 (r1 measured 1 on the pre-merge tree) -- the stop is inside
75+decode-order frame 1 either way.
76+
77+EVIDENCE: $HOME/.cache/intra14-r2-fi0.log, $HOME/.cache/intra14-r2-sweep.log, $HOME/.cache/intra14-r2-src.log | un-ignored gate + 240-recipe matrix + 4-source probe under systemd-run scopes | 3/40 attempts pixel-compared (0 before the merge), seed 52 fires 64x16=4 16x64=3, and the two zero-hit attempts mismatch identically
78+EVIDENCE: scratchpad/census3/kf/seg_4500.obu | decode_probe under a 6G scope, EC_AV1_FINAL_DUMP file count | stop string unchanged ("transform unit is 64x32"), 4 intra 16x64 strips decoded, 0 frames completed
79+
80+## 4. Suite
81+
82+`cargo test -p ec-av1 --lib` under a user systemd unit (MemoryMax=10G):
83+**370 passed; 0 failed; 34 ignored** (2 of the ignored are this lane's gate
84+arms); 889.13s.
85+
86+EVIDENCE: $HOME/.cache/intra14-suite-r2.log | systemd-run --user --unit ... MemoryMax=10G, EC_NOMEMGUARD=1 EC_AV1_REQUIRE_AOMENC=1, nice -n 10 -j3 | test result: ok. 370 passed; 0 failed; 34 ignored; 889.13s
87+
88+## Residue
89+
90+* fix-now (successor / another lane): the pre-existing inter-frame pixel defect
91+ on 192x128 mandelbrot at cq 35..55, cpu 1..3 -- reproducible with ZERO 1:4
92+ strips and zero rect partitions, first divergence decode-order frame 3/4 luma
93+ around (130,58) with max |d| < 20. It is unrefused (silent), so every gate on
94+ mandelbrot inter content is measuring it. deferred -- what unblocks this lane:
95+ either that fix, or a source whose inter baseline is exact AND that fires an
96+ intra 1:4 strip.
97+* deferred: `--enable-cfl-intra=1` arm -- what unblocks it: a green gate to add
98+ it to.
99+* accepted: `--enable-filter-intra=1` stays in the recipe. An earlier r2 run with
100+ it at 0 showed zero mismatches, but only ONE stream was compared in that run,
101+ so it proves nothing; the claim is withdrawn.