Shaders: lower.rs's tests move to their own file, under the asset policy's 512 KiB limit #1322
No reviewers
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!1322
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1322"
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?
@CwWwWwW on GitHub · 2026-11-26 15:07 UTC · original
CwWwWwW:fix/lower-tests-below-asset-limit→main· +604 −604 · 2 files · 1 commits · closed without mergingProblem
The
checkjob fails on main, so every PR (including #1320 and #1321) inherits a red check:cargo xtask policyreportsThe file crossed the repository's 512 KiB asset-policy limit in the last translator change (
58de9bf). The policy is an allowlist for text files, so the fix is to keep the file under the limit rather than to add an exception.Change
Move the inline
#[cfg(test)] mod testsoflower.rs(602 lines, 14 tests) verbatim tocrates/victory-shader/src/emit/lower_tests.rs, declared fromlower.rsas:lower.rsalready uses#[path]forintersect.rsandhalves.rs;emit/keeps its other tests in their own files (diff_tests.rs,valu_tests.rs, ...). The module path (emit::lower::tests), theuse super::...imports and every test name are unchanged; no non-test code moves or changes.Sizes:
lower.rs526,968 -> 505,165 bytes;lower_tests.rsis new at 19,555 bytes.Tests
cargo xtask policy: 222 files ok (was 1 violation) - this is the check that was failing.cargo test -p xtask --locked: 5 passed,policy::tests::repository_passes_policyincluded.cargo test -p victory-shader --lib --locked lower::tests: 13 passed, 1 ignored (the module's 14 tests; one was ignored before the move too).cargo clippy -p victory-shader --all-targets --locked -- -D warnings: clean.cargo clippy --workspace --all-targets --lockedandcargo test --workspace --locked --exclude victory-gpu: running at the time of writing; I will report/update here if anything fails.Once this lands, #1320 and #1321 can be rebased and their
checkjob is expected to go green.@CwWwWwW on GitHub · 2026-11-26 15:09 UTC · original
Local CI-like validation on this branch:
cargo xtask policy: 222 files ok (the failing check).cargo test -p xtask --locked: 5 passed,repository_passes_policyincluded.cargo test -p victory-shader --lib --locked: 222 passed, 0 failed, 4 ignored (whole crate;lower::testsalone: 13 passed, 1 ignored, as before the move).cargo clippy --workspace --all-targets --locked -- -D warnings: clean (39 s).cargo test --workspace --locked --exclude victory-gpucannot complete on this machine:victory-loader'sloads_binds_and_calls_probebuildstests/fixtures/hle-probewith a nested cargo, and this machine has no MSVC toolchain (the repo pinsx86_64-pc-windows-msvc; I use a GNU host as a fallback), so that nested fixture link fails. Environmental and unrelated to this move; the CIwindows-latestjob with MSVC is the authority.@CwWwWwW on GitHub · 2026-11-26 15:23 UTC · original
CI-main-log evidence for this PR (run 45836860665, commit
58de9bf, jobcheck): theTestsstep is the only failing one and fails on exactly this:POLICY: crates/victory-shader/src/emit/lower.rs: 526968 bytes exceeds the 524288-byte limit->policy::tests::repository_passes_policy ... FAILED. All other crates' tests listed in the log passed. So this branch removes the only failure that was keepingcheckred on main; once it lands, #1320/#1321/#1323 can be rebased and their checks are expected to go green.Pull request closed