edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching·0 forks·Rust·370.3 MiB·9b67700·Tahinli·3 days ago·4021 commits
| 1 | # av1splitstream report |
| 2 | |
| 3 | **Goal:** mechanical split of `crates/ec-av1/src/stream.rs` (57,178 lines) into modules, zero behaviour change. |
| 4 | **Base:** main @ 322837a2 (lane start), then merged main @ 4872ca8e (av1splitdec). |
| 5 | **Branch:** lane/av1splitstream, head 512d7ea2. |
| 6 | |
| 7 | ## Steps done |
| 8 | - S1: `stream.rs` -> `stream/mod.rs` (git mv, 0 lines moved). |
| 9 | - S2: shared test helpers -> `stream/tests/support.rs`; gate tests -> `gates_a.rs`, `gates_b.rs`. Helpers, statics and FrameFacts fields made `pub(super)`; `lock_gate_counters` re-exported from `tests` for `encoder.rs`. |
| 10 | - S3-S12: the 397 `#[test]` fns moved in ten chunks: `t01.rs` ... `t10.rs`. `tests/mod.rs` is now a header (module list and imports, 20 lines). |
| 11 | - S13: fallout fix after the merge: child-process test filters now name `stream::tests::t09::...`; `test_source::read_module` also normalizes indented ` pub(super) fn` (so the source scanners see helpers as before the split). |
| 12 | - S13b: `gate_coverage::print_tx_size_search_census` ignores glued non-test helper segments when checking for unresolved tx-size-search values. |
| 13 | - Merge of main (av1splitdec): `stream.rs` deleted on this branch (the split version lives in `stream/mod.rs`); main's scanner change (`flat_of("decode_inter_block_intra_arm")`) applied to `stream/tests/t01.rs`. |
| 14 | |
| 15 | ## Line counts (after this lane) |
| 16 | | File | Lines | |
| 17 | |---|---:| |
| 18 | | stream/mod.rs | 2330 | |
| 19 | | stream/tests/mod.rs | 20 | |
| 20 | | stream/tests/support.rs | 4195 | |
| 21 | | stream/tests/gates_a.rs | 2850 | |
| 22 | | stream/tests/gates_b.rs | 2813 | |
| 23 | | stream/tests/t01.rs ... t10.rs | 4304 to 4594 each | |
| 24 | |
| 25 | Every file is under 5,000 lines. |
| 26 | |
| 27 | ## Verify |
| 28 | - `cargo check -p ec-av1 --tests`: clean (host b, earlier; also re-checked after S12). |
| 29 | - `#[test]` attribute count: 398 in `stream/` before and after the split (original `stream.rs` also had 398). |
| 30 | - Full gate (host c; host b was held by av1splitdec, and the orchestrator allowed c): |
| 31 | `EC_MEMGUARD_MAX=6G cargo test --release -p ec-av1 -- --test-threads=4` |
| 32 | Result: **807 passed, 0 failed, 49 ignored** (lib), doc tests 4 passed, 0 failed. |
| 33 | Earlier runs before the fallout fixes: 799 passed / 8 failed (child filters and scanner), then 806 / 1 (census helper). Both were fixed as described above. |
| 34 | |
| 35 | ## Left |
| 36 | - Unused-import warnings from the split are cleaned up for the stream files touched. |
| 37 | - Nothing else open for this lane. |