The asset policy's 512 KiB limit is exceeded by host.rs and lower.rs on main: CI is red and the hook refuses commits to them #1342
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#1342
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@CarverXI on GitHub · 2026-11-26 17:15 UTC · original
Two source files on
mainare over the asset policy's 512 KiB limit, so thecheckjob fails onmainand the pre-commit hook refuses every commit that touches either file.What fails
xtask/src/policy.rshasMAX_FILE_SIZE = 512 * 1024for everything outside the run logs underdiagnostics/(which got rules of their own on 2026-11-26, the case of #1177). Onmainate4245f3:crates/victory-shader/src/emit/lower.rs58de9bf(526,968; it was 521,771 ata20809d)crates/victory-gpu/src/host.rse4245f3(it was 513,413 at58de9bf)The latest CI run on
mainfails inTests, atpolicy::tests::repository_passes_policy:What it does to contributors
cargo xtask policy --staged(the pre-commit hook) checks the whole staged file, not the change, so any commit that toucheshost.rsorlower.rsis refused whatever it changes. #1341 is 240 bytes inhost.rsand had to be committed with the hook skipped; #1320 notes the same failure.checkis red on every pull request for a reason that is not in it, so a real failure in a pull request no longer stands out.main(host.rstook 15 KiB in one), so this stays until something is decided.Ways out, as far as I can see
.rsthe size says little. For instance 2 MiB for.rs, 512 KiB for the rest, the way run logs have their own rule now.policy.rshas one, "keep this empty if at all possible"), each with its reason. The smallest change, and the next file to cross the line needs it again.host.rshas parts that stand alone (thefill_aheadmodule, the flights and the relay, the card copies,Batch); the cleanest and the most work, and it makes every open pull request against those files conflict.Option 1 looks to me like the one that fits what the limit is for. I can send it as a pull request (the constant by extension, a test beside
run_logs_have_their_own_rules) if you want it that way.github-bot referenced this issue2026-11-26 18:09:40 +00:00