Move host.rs's and lower.rs's test modules to their own files, under the asset policy's 512 KiB limit #1357
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1357"
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?
Imported from fxceless/victory-fork. Originally posted by fxceless on 2026-11-26T18:08:13Z.
Requested by ELEVEN · project thread
Problem
The
checkjob fails onmain(#1342):cargo xtask policyreportsChange
Only
#[cfg(test)]modules move. Each one moves verbatim apart from losing one level of indentation, and the lines inside multi-line raw strings are left untouched. Module names and paths (host::tests,emit::lower::tests, ...) stay the same, souse super::...and every test name are unchanged. No non-test code changes.host.rs: its eight test modules (tests,relay_tests,grouped_tests,late_tests,trail,spare,batch,queue2_tests) move tocrates/victory-gpu/src/host/<name>.rs, the same layoutprofile.rs/profile/tests.rsalready use. The size goes from 528,954 to 492,495 bytes.lower.rs:mod testsmoves toemit/lower_tests.rs, declared with#[path = "lower_tests.rs"]the way #1322 does it. The size goes from 535,588 to 512,559 bytes. #1322 has conflicts withmainnow, so this redoes its move on currentmainand would replace it.Tests
HEAD: the code is identical apart from whitespace, and all 1,958 string literals are byte-for-byte the same.cargo xtask policy: 232 files ok.cargo test -p xtask --locked: 5 passed, includingrepository_passes_policy.cargo test -p victory-shader --lib --locked lower::tests: 14 passed, 1 ignored. That test was ignored before the move too.cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warningswas clean, both with and without--all-features. I ran it from Linux withCARGO_FEATURE_PURE=1so blake3 builds without MSVC.Note:
lower.rsis about 11 KiB under the limit and grows quickly, so #1342's idea of a separate limit for.rsfiles is still worth deciding.Fixes #1342.
Generated by Claude Code
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T00:44:56Z.
I carried the existing host test split onto the current
d154dcb1base and preserved its authorship. The extracted bodies and the new deferred test were verified byte-for-byte. For the shader file, current main already moves out the lower tests, so the branch moves the intact buffer-lowering method to its own module. A separate test commit expresses the inherited IEEE comparison expectations throughpartial_cmp.The full local asset policy passes for 240 files on
6a0bce34. The host and shader source files are 514,318 and 521,436 bytes. On the immediately precedingb1d777aintegration, Windows-target GPU and shader Clippy passed with warnings denied, the focused suites passed, and the NaN shader test ran on the RTX 5060 Laptop under GE-Proton11-14. The old and new NaN reference functions also agreed in 1,498,176 comparisons. The two contributor PRs using this shared dependency passed full Windows CI on the latest base. Render-scale CI · Wine-fixture CISource for the rebase is available in my fork. Review branch
Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T07:38:19Z.
I updated the source-split review branch to main
9a9091dat47d0ba29f6c06aee7f6c057b4c94c406daec9d40. It retains this proposal's source moves and places two additional GPU helpers in modules because the currenthost.rsexceeded the policy limit. It includes #1440's precedence fix and the warning-free NaN comparison oracle already in the review stack.I tested the combination with #1442 on Windows MSVC. Both workspace Clippy modes passed with warnings denied, and the full asset scan passed all 246 files. Five pipeline-library tests, five scheduler tests, and the IEEE comparison fixture on the RTX 5060 under GE-Proton passed.
Assisted by Codex (GPT-6.2-Sol High).
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.