Policy: the site tables name offsets and tags, not the title's bytes #2968
No reviewers
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!2968
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2968"
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?
@P1ayer-1 on GitHub · 2026-11-29 19:06 UTC · original
P1ayer-1:fix/asset-policy-site-tables→main· +50 −3 · 1 files · 1 commits · openRelated
#2420, item 1 of three. It does not close the issue: items 2 (the parallel-run flakes) and 3 (the
diagnostics-only test) are untouched.What it changes
cargo test --workspacecannot pass on main because of one deterministic policy violation, so CI has not reached its test step since the clippy errors landed:That file is the frame allocator's site table, and its rows are what its module docs say: an image offset, a window length and a BLAKE3-64 tag per site, with none of the title's bytes in it. It exceeds
MAX_ENCODED_RUN(512) becauseROWSis a long array of0xliterals.LITERAL_RUN_EXCEPTIONS: path → reason. Onlylongest_hex_literal_runis skipped for a listed path. The file type, size, text, magic and hex/base64-run checks all still apply to it.heap_sites/frame_users.rsis listed, with its reason, next to the constant.Two things I deliberately did not do:
EXCEPTIONS. That list skips every check for a path — size, text, forbidden magic — which is right forbcpack-tables.bin(a binary nothing decodes without) and more than a.rstable needs.ROWS: &[(u32, u16, u64, u16, u16, bool, u16)]), so re-encoding it would mean changing the generator and regenerating, which I cannot do here.How it was tested
No GPU, nothing runs the title. Windows 11 build 26300, rustc 1.98.1, MSVC 14.44,
--locked.Before (this change stashed):
After:
rustfmt --check xtask/src/policy.rsreports nothing in the added lines (it does flagALLOWED_EXTENSIONSat line 17, which is there on main already and is not touched here).Checked for overlap
xtask/src/policy.rs, but it rewrites the size-limit test inrejects_game_like_files. The changes are disjoint, and the new test here sits above that function, outside #2615's hunk, so the two should not conflict. I have not touched the size test.github-bot referenced this pull request2026-11-29 20:00:12 +00:00
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.