Move host.rs's and lower.rs's test modules to their own files, under the asset policy's 512 KiB limit #1357
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!1357
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@fxceless on GitHub · 2026-11-26 18:08 UTC · original
fxceless:claude/project-thread-4946gf→main· +1407 −1415 · 11 files · 1 commits · openRequested 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
@Filip722 on GitHub · 2026-11-27 00:44 UTC · original · edited 2026-11-27 00:48 UTC
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).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.