Repository navigation
Conversation
…icy's 512 KiB limit `cargo xtask policy` rejects `crates/victory-shader/src/emit/lower.rs`: the file grew past the 512 KiB limit (526,968 bytes) in the last translator change, so the `check` job fails on main - and on every PR, fxceless#1320 and fxceless#1321 included. Move the inline `#[cfg(test)] mod tests` (602 lines, 14 tests) to `crates/victory-shader/src/emit/lower_tests.rs` and declare it with `#[cfg(test)] #[path = "lower_tests.rs"] mod tests;`. `lower.rs` already uses `#[path]` for `intersect.rs` and `halves.rs`, and `emit/` keeps its other test modules in their own files. The module path (`emit::lower::tests`), the imports and the test names are unchanged; the code moves as it is. `lower.rs` is 505,165 bytes after the move; the new file is 19,555. `cargo xtask policy`: 222 files ok; `cargo test -p xtask`: 5 passed, `repository_passes_policy` among them; `cargo test -p victory-shader --lib lower::tests`: 13 passed, 1 ignored; `cargo clippy -p victory-shader --all-targets -- -D warnings`: clean.
This was referenced Nov 26, 2026
Merged
Contributor
Author
|
Local CI-like validation on this branch:
|
Contributor
Author
|
CI-main-log evidence for this PR (run 45836860665, commit 58de9bf, job |
This was referenced Nov 26, 2026
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
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.