Asset policy: crates/victory-shader/src/emit/lower.rs is over the 640 KiB file-size limit on main #1429
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#1429
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?
@Jesper-Andersson on GitHub · 2026-11-28 19:45 UTC · original
On main (
923e38cc),crates/victory-shader/src/emit/lower.rsis 667,523 bytes, whilextask/src/policy.rssetsMAX_FILE_SIZEto 640 KiB (655,360 bytes), about 12 KB over. The comment above the constant still says the translator's file is 570 KiB.Effects: a commit that includes
lower.rsfails the pre-commit hook (cargo xtask policy --staged). The same check also runs in CI as part ofcargo test --workspace(repository_passes_policy), so that test should fail on main too (not run here). This is separate from #1267 / #1290 (clippy lints,bindings.iniallowlist): even with those merged, the policy test should still fail onlower.rs.Possible fixes: turn
lower.rsinto alower/module folder (none exists yet), or raise the limit or add the file to the exemption list with a reason.@github-actions[bot] on GitHub · 2026-11-28 19:45 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@LucaruluDev on GitHub · 2026-11-29 01:22 UTC · original
Independent Windows workspace testing confirms the
policy::tests::repository_passes_policyfailure.At
f9dfb76,lower.rsis 704,996 bytes against the 655,360-byte limit (640 KiB). I also checkedd585f88: the file blob and policy limit remain unchanged.Projected file sizes
Based on a static projection of the proposed changes:
These are static size projections, not test results from rebased PRs.
Thanks to the contributors working on #1460, #1527 and #1493. I'm happy to independently validate whichever approach the maintainers prefer.
@kalberts0089-hash on GitHub · 2026-11-29 08:00 UTC · original
Still failing on main at
e1f2eb6, and the gap has grown.lower.rsis now 711,512 bytes against the 655,360-byte limit, so it is 56,152 bytes over. It was 704,996 atf9dfb76, and 10 commits have touched it since then.What I checked:
bindings.iniis now allowed (xtask/src/policy.rs:151,4f60fbd).v2026.11.28.03(f4608f0) haslower.rsat 631,099 bytes, which is under the limit. So the file crossed 640 KiB after that release.f4608f0is an ancestor of main, and 66 commits have touchedlower.rssince.cargo test --workspace --locked(.github/workflows/ci.yml:33), and the pre-commit hook runs it too (.githooks/pre-commit:3).EXCEPTIONS(xtask/src/policy.rs:32) only listsbcpack-tables.bin. The comment atxtask/src/policy.rs:13still says 570 KiB.lower/folder now exists, holding onlyround16.rs(2,385 bytes, added in1a81b72).On the open PRs (both #1460 and #1527 show as conflicting with main):
#[cfg(test)] mod testsblock runs fromlower.rs:15109to the end of the file and is 39,057 bytes. Without it, the file would be 672,455 bytes, which is still 17,095 over. I measured this from thee1f2eb6blob. I did not rebase the PR.lower/analysis.rs. At its head (fb44422),lower.rsis 623,098 bytes (fromgh api repos/trustno1-coder/VIctory-NVIDIA/contents/crates/victory-shader/src/emit/lower.rs?ref=fb44422fc9e032be46b046a7dc7296e3792a18e2). That does not match the 669,710 projected above.lower.rssincef9dfb76. If those additions all stay inlower.rsafter a rebase, it would land near 629,600 bytes, still under the limit.