From a668ef2b3387748db7bc680c235d0c4032498e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 3 Oct 2026 05:44:36 +0300 Subject: [PATCH] ec-av1: the full suite found three real gaps the scoped runs never saw The server suite at the merged head (wave13) went 776/3/49 and BOTH hosts failed the same three tests, so these are tree defects, not flakes: - refusal_inventory: the BLOCK_INVALID subsize refusal added by lane-av1unwritten and lane-av1subsizesweep was never inventoried. The scanner collects the reason string from unsupported(...) joining line continuations, and it keeps escaped quotes, so the entry is written in the scanner's form. - stack_budget: dumpio.rs landed without being registered in the by-value scan's FILES, so the sweep was blind to any by-value return landing in it. Registered. - stream::tests::allocdet_child_decode: another child-helper test that asserted its ALLOCDET_FIXTURES unconditionally and reddened every full suite -- the same class as the 1f4fcc84 hotfix, shipped one lane later. It now returns with a printed skip when invoked without the parent-set variable; the parent still fails when the child prints no census line, so the skip cannot hide a broken child. Swept: the four child helpers in the crate (dumpio x2, uwdep, allocdet) are all guarded now. --- crates/ec-av1/src/refusal_inventory.rs | 6 ++++++ crates/ec-av1/src/stack_budget.rs | 1 + crates/ec-av1/src/stream.rs | 12 +++++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index 360348db..eda5b7d2 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -62,6 +62,12 @@ const REFUSALS: &[&str] = &[ "a 128x128 superblock partition value outside the 8-symbol alphabet", "an inter var-tx tree with a leaf transform larger than 64x64", "CfL, filter intra or a palette on a 128-root HORZ/VERT intra block (every one of their size gates caps at 64x64 or below, so none of these symbols exists there)", + // lane-av1unwritten + lane-av1subsizesweep: the BLOCK_INVALID subsize + // refusal that mirrors libaom's own (decodeframe.c:1456). The source + // string carries escaped quotes around the libaom citation and this + // table is matched against the scanner's collected form, so the quotes + // stay escaped here the way the scanner keeps them. + "a block size 4x8, 8x16 or 16x4 (or 8x4 at 4:4:0) has no chroma plane block at this frame's subsampling mode (libaom: \\\"Block size %dx%d invalid with this subsampling mode\\\", av1/decoder/decodeframe.c:1456, refusing by the same rule)", // lane-t900 r23: palette RECONSTRUCTION now covers the key-frame paths // (earlier lanes), the intra-in-inter square/rect paths (r22) and the // 8x8 LEAF inside an inter frame (this round, gate diff --git a/crates/ec-av1/src/stack_budget.rs b/crates/ec-av1/src/stack_budget.rs index e90b4538..feef8e57 100644 --- a/crates/ec-av1/src/stack_budget.rs +++ b/crates/ec-av1/src/stack_budget.rs @@ -448,6 +448,7 @@ mod tests { ("census.rs", include_str!("census.rs")), ("compound.rs", include_str!("compound.rs")), ("decode.rs", include_str!("decode.rs")), + ("dumpio.rs", include_str!("dumpio.rs")), ("encode.rs", include_str!("encode.rs")), ("encoder.rs", include_str!("encoder.rs")), ("envflags.rs", include_str!("envflags.rs")), diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index c1cd47be..439c8823 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -48760,7 +48760,17 @@ exit 0 println!("ALLOCDET_SYNTHETIC {a:016x} {b:016x}"); return; } - let list = std::env::var("ALLOCDET_FIXTURES").expect("ALLOCDET_FIXTURES"); + let Ok(list) = std::env::var("ALLOCDET_FIXTURES") else { + // Reached without either variable == a normal suite run: the parent + // names this test with ALLOCDET_FIXTURES (or ALLOCDET_SYNTHETIC) set, + // so there is nothing to measure here. Asserting the variable instead + // made every full suite red (caught by the server suite at the merged + // head); the parent already fails when the child prints no ALLOCDET + // line, so a skip cannot hide a broken child. Print rather than + // pass silently. + println!("ALLOCDET skipped: not invoked as a census child"); + return; + }; let mut hash = 0xcbf2_9ce4_8422_2325u64; for fixture in list.split(',').filter(|s| !s.is_empty()) { let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))