policy: run the file-size check over every crate #223

Manually merged
github merged 1 commit from github-bot/gh-223 into gh-pr/223/base 2026-12-02 18:27:09 +00:00 AGit
Owner

@⁠TheRifai on GitHub · 2026-12-02 15:00 UTC · original
TheRifai:size-check-all-crates → main · +17 −6 · 2 files · 1 commits · merged 2026-12-02 17:36 UTC

What

TASKS item "Oversized files" (docs/TASKS.md:939): the 1,500-line check reached only greenfield, victory-gpu and victory-hle. This gives the size check its own root list covering every crate in the game build, while the toggle walk keeps its existing ROOTS (so the change stays one topic). *_tests.rs files are excluded like tests.rs and inline #[cfg(test)] mods. Four newly covered files are listed as debt at their current counts, so any further growth fails the check:

  • crates/victory-shader/src/emit/lower.rs 13,730
  • crates/victory-shader/src/resource.rs 2,435
  • crates/victory-shader/src/ir.rs 1,964
  • crates/victory-shader/src/structure.rs 1,520

Evidence

cargo test -p vkback --test policy: 6 passed, 0 failed — includes file_size and toggles_registered. Before the oversize entries were added, file_size failed with exactly those four paths and their counts; after, all six tests pass. No runtime code or build output changed.

Checklist (docs/AGENTS.md)

  • One topic; docs/TASKS.md not edited (rules 29/31)
  • No fallback, constant, switch, queue, unsafe or translator output changed (rules 2/9b/33/35/36/27)
  • Comments say what is true now (rule 3)
**@⁠TheRifai** on GitHub · 2026-12-02 15:00 UTC · [original](https://github.com/vktory6/VKtory/pull/223) `TheRifai:size-check-all-crates` → `main` · +17 −6 · 2 files · 1 commits · merged 2026-12-02 17:36 UTC ## What TASKS item "Oversized files" (`docs/TASKS.md:939`): the 1,500-line check reached only `greenfield`, `victory-gpu` and `victory-hle`. This gives the size check its own root list covering every crate in the game build, while the toggle walk keeps its existing `ROOTS` (so the change stays one topic). `*_tests.rs` files are excluded like `tests.rs` and inline `#[cfg(test)]` mods. Four newly covered files are listed as debt at their current counts, so any further growth fails the check: - `crates/victory-shader/src/emit/lower.rs` 13,730 - `crates/victory-shader/src/resource.rs` 2,435 - `crates/victory-shader/src/ir.rs` 1,964 - `crates/victory-shader/src/structure.rs` 1,520 ## Evidence `cargo test -p vkback --test policy`: 6 passed, 0 failed — includes `file_size` and `toggles_registered`. Before the oversize entries were added, `file_size` failed with exactly those four paths and their counts; after, all six tests pass. No runtime code or build output changed. ## Checklist (docs/AGENTS.md) - [x] One topic; `docs/TASKS.md` not edited (rules 29/31) - [x] No fallback, constant, switch, queue, `unsafe` or translator output changed (rules 2/9b/33/35/36/27) - [x] Comments say what is true now (rule 3)
TASKS "Oversized files": the 1,500-line check only covered greenfield, victory-gpu
and victory-hle. Give it its own root list covering all of crates/ and keep the
toggle walk's ROOTS unchanged (one topic). Exclude *_tests.rs from the size
walk, like tests.rs and inline #[cfg(test)] mods. List the four newly covered
files as debt at their current counts: lower.rs 13730, resource.rs 2435,
ir.rs 1964, structure.rs 1520.

cargo test -p vkback --test policy: 6 passed (including toggles_registered
and file_size). No runtime or build changes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 15:01:59 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 17:37 UTC · original

Merged, thanks: the file-size check covers every crate now, with the four large shader files listed at their counts. #244 (the toggle walk over every crate) needs main merged into it now.

**@⁠vktory6** on GitHub · 2026-12-02 17:37 UTC · [original](https://github.com/vktory6/VKtory/pull/223#issuecomment-7353481866) Merged, thanks: the file-size check covers every crate now, with the four large shader files listed at their counts. #244 (the toggle walk over every crate) needs main merged into it now.
github-bot changed target branch from main to gh-pr/223/base 2026-12-02 18:27:08 +00:00
github manually merged commit 47baa34148 into gh-pr/223/base 2026-12-02 18:27:09 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.