forge
Explore
Log in

Don't you dare go Hollow

R3 report -- three reds, two causes, suite 378/0

Browse files at this commit

0ecdfcb25043ea912d0ad3fd1ac76c39d4ba54baAhmet Kaan GümüşParent: 17dd9ad
  • docs
    • r3 report -- three reds, two causes, suite 378/0
Show full message
docs(sbrect10): r3 report -- three reds, two causes, suite 378/0

film_grain was the worktree's missing top-level `fixtures` symlink (gitignored,
per-worktree), not a temp-path race: that gate writes no temp file, and the two
helpers that do already key their scratch dir on test-name + pid.

The other two reds were one cause: r2's half-random lavfi source was written
into the superblock-rect gate instead of the no-CFL uv_mode gate it was measured
for. The CFL gate kept the flat source that codes the right half skip (8-bit
arm: 0 intra blocks above 32x32) and the rect gate lost its 10-bit 64-axis
residual TU. Sources swapped back; no assert weakened. Both gates now fire at
both depths (15/43 no-CFL uv_mode reads, 2/2 64-axis residual TUs, zero
out-of-scope mismatches), which also clears r2's comp_list global-motion tail
fill of any regression suspicion.
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/sbrect10-r3.report.mdadded+98 -0
@@ -0,0 +1,98 @@
1+# lane-sbrect10 r3 report
2+
3+Branch `lane-sbrect10`. Round input: r2 tip `1866bd5`, suite RED with 3 failed gates.
4+Round output: all three root-caused and green; merged main `85887c7` (which now carries
5+lane-mvtwin `2e2a225`), mvstack.rs resolved to main's copy byte-for-byte.
6+
7+## 1. `a_real_aomenc_stream_with_film_grain_decodes_pixel_exact` -- ENVIRONMENT, not code
8+
9+Panic body (r2 log had none: the unit was still running when the handoff was written, my first
10+`systemctl --user is-active sbrect10-suite-r2` used the un-timestamped unit name and read back
11+`inactive` wrongly). Run alone off the r2 binary:
12+
13+ stream.rs:15680: called `Result::unwrap()` on an `Err` value:
14+ Os { code: 2, kind: NotFound, message: "No such file or directory" }
15+
16+The worktree had **no top-level `fixtures` symlink** (`fixtures` is gitignored and per-worktree).
17+`fixtures/golden6-mismatch.obu` was simply absent. Not a temp-path collision: this gate writes no
18+temp file at all -- `ffmpeg_decode_sequence` (stream.rs:1316) pipes the stream through ffmpeg's
19+stdin/stdout, and the two helpers that DO make scratch dirs already key them on
20+`{test name}-{std::process::id()}` (stream.rs:2000, 15735), which is unique per process and per test.
21+Same failure at the same wall-clock in lane-sb128c's suite = the same missing symlink there, not a
22+race. Fixed with `ln -s .../edith_codecs/fixtures fixtures`.
23+
24+SWEEP: all three `../../fixtures/*.obu` reads in `crates/ec-av1/src` (golden6-mismatch.obu,
25+golden7-forwarding-mismatch.obu, lr-sgr-r7.obu) now resolve.
26+
27+EVIDENCE: $HOME/.cache/sbrect10-suite-r2.log + rerun | ln -s fixtures; ec_av1 binary --exact
28+a_real_aomenc_stream_with_film_grain_decodes_pixel_exact | FAILED (NotFound) -> ok, 0.31s
29+
30+## 2. The other two reds: ONE cause -- r2's fixture swap landed in the sibling gate
31+
32+Neither red was a pixel mismatch; both were vacuity asserts, and both counters read 0 for the
33+same reason. r2's half-random lavfi source
34+
35+ horizontal: if(lt(X,128), 40+mod(floor((Y+N*sp)/32)*90,200), mod((X*7+Y*13+N*97)*31,256))
36+ vertical: if(lt(Y,64), 40+mod(floor((X+N*sp)/32)*90,200), mod((X*7+Y*13+N*97)*31,256))
37+
38+was written into `a_real_aomenc_inter_sequence_with_a_superblock_level_rect_partition_decodes_pixel_exact`
39+(stream.rs:6592) instead of `a_real_aomenc_inter_frame_with_a_64x64_intra_block_reads_the_no_cfl_uv_alphabet`
40+(stream.rs:6791) -- the rationale comment travelled with it, so the code read consistent. Effect:
41+
42+- CFL gate kept r1's flat `200` source, whose right-hand superblocks aomenc codes skip ->
43+ 8-bit arm decoded 0 intra blocks above 32x32: *"no attempt decoded an intra block above 32x32
44+ ... gate proved nothing (2 refusals, 14 attempts carried none)"*.
45+- rect gate got the textured source, which changed the RD's residual decisions -> its 10-bit arm
46+ lost the coded 64-axis transform unit lane-r14 r2 had measured on the flat source
47+ (8-bit residual TUs=1, 10-bit=0): *"no superblock-level rect strip carried a coded 64-axis
48+ residual transform unit ... (horz=2, vert=0)"*.
49+
50+FIX (`e2d9e9e`): sources swapped back so each gate runs the source it was measured on. No assert
51+weakened, no grid changed, no decoder code touched.
52+
53+Result of the two gates alone at the merged tree (`--test-threads=1 --exact`):
54+
55+| gate | 8-bit | 10-bit |
56+|---|---|---|
57+| no_cfl_uv_alphabet | 4 refusals, 4 exact attempts, **15** no-CFL uv_mode reads | 0 refusals, 8 exact attempts, **43** reads |
58+| superblock_level_rect_partition | 2 refusals, 4 exact, 64x32=4 32x64=4, **64-axis residual TUs=2** | 2 refusals, 2 exact, 64x32=2 32x64=2, **residual TUs=2** |
59+
60+0 out-of-scope mismatches in either depth of either gate, so r2's `combine_compound_candidates`
61+global-motion tail fill is NOT a regression source -- every attempt that decoded compared exact.
62+
63+EVIDENCE: $HOME/.cache/sbrect10-g2-a_real_aomenc_inter_frame_with_a_64x64_intra_block_reads_the_no_cfl_uv_alphabet.log,
64+$HOME/.cache/sbrect10-g2-a_real_aomenc_inter_sequence_with_a_superblock_level_rect_partition_decodes_pixel_exact.log |
65+swap the two gates' geq sources, rebuild, run each gate alone under systemd-run MemoryMax=6G |
66+both `test result: ok`, counters 15/43 no-CFL reads and 2/2 64-axis residual TUs
67+
68+## 3. Merge
69+
70+`git merge --no-commit main` twice: first main `4eff3a1` (`de045b7`, clean auto-merge), then main
71+`85887c7` after it took lane-mvtwin mid-round. Only conflict: `crates/ec-av1/src/mvstack.rs`,
72+resolved to MAIN's copy byte-for-byte (`git diff main -- crates/ec-av1/src/mvstack.rs` EMPTY) --
73+main carries this lane's own comp_list global-motion tail fill plus mvtwin's insertion-time
74+candidate cap and tile-origin clamp. `cdf.rs`, `cdf_state.rs`, `refusal_inventory.rs` all
75+byte-identical to main. Lines this branch drops vs main are only its own hunks (uv_mode_cfl
76+narrowing, indexed `dump_stage16` prefix, gate fixtures). The merge commit was recorded by the
77+coordinator as `10e25e3` (parents `e2d9e9e` + `85887c7`) while this round was mid-flight.
78+
79+## 4. Suite
80+
81+`EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -j3` under user unit
82+`sbrect10-suite-r3-1788326330.service`, log `$HOME/.cache/sbrect10-suite-r3.log`.
83+r2 for comparison: 368 passed / 3 failed / 32 ignored (the three above).
84+
85+**GREEN: 378 passed / 0 failed / 33 ignored / 0 measured, 1229.56s.**
86+
87+EVIDENCE: $HOME/.cache/sbrect10-suite-r3.log | systemd-run --user --unit=sbrect10-suite-r3-1788326330
88+-p MemoryMax=10G cargo test -p ec-av1 --lib -j3, EC_AV1_REQUIRE_AOMENC=1 |
89+`test result: ok. 378 passed; 0 failed; 33 ignored` (r2 was 368/3/32)
90+
91+## 5. Residue
92+
93+- accepted: the no-CFL gate's 8-bit arm still takes named refusals on other shapes
94+ (SB-level AB partition, 32x64/64x32 split intra strips) -- other lanes' scope, and 4 attempts
95+ decode + prove the shape regardless.
96+- accepted: r2's `probe.sh` counted intra-in-inter blocks through an `EC_AV1_TELL` trace grep,
97+ not through `nocfl_uv_mode_hits`; the gate itself asserts the real counter, so the proxy is only
98+ a probe convenience. Not worth a rewrite.