CI green again: clippy clean in both builds, budget tests follow VICT… #425

Open
github-bot wants to merge 1 commit from github-bot/gh-425 into main AGit
Owner

@⁠Togicx on GitHub · 2026-11-27 22:16 UTC · original
Togicx:fix/ci-green → main · +103 −73 · 31 files · 1 commits · open

…ORY_INDIRECT_REST

CI on main stopped at its first step (clippy, 40+ findings), so the diagnostics clippy and the tests never ran. Locally all three steps of .github/workflows/ci.yml now pass.

Tests: two indirect budget tests still assumed VICTORY_INDIRECT_REST on, which 545f890 turned off by default.

  • host_list_budget_starts_empty_at_each_submission: the big records now fill the budget exactly, so the small record after them runs empty with REST on or off and the test still shows that no budget carries over.
  • warp_batch_charges_every_execution: the expected spend follows the REST rule in force (a job that does not fit takes nothing without REST). Both pass with VICTORY_INDIRECT_REST unset and =1.

Clippy:

  • mechanical: is_multiple_of, shift precedence, sort_by_key with Reverse, hex digit groups, contains_key, annotated transmutes, mem::take, from_ref, a same-type cast, an if with identical branches;
  • host/indirects.rs and placed_filler_twins are only used by the diagnostics build and are only compiled there;
  • removed the never-used batched in make_from and the never-read depth_written field; Touch::Title is only built by tests, marked so;
  • book.rs: the heap that keeps the descriptor alive is a named field;
  • ResourceDesc::from_level(&self) renamed levels_from;
  • allowed with a reason: two 8-argument functions, the Late enum (boxing a flight would allocate per flight) and the CLI Command enum;
  • apps/victory: default_paths moved above the test module; the match on a block in play.rs binds the block first.

No change in what the game runs.

**@⁠Togicx** on GitHub · 2026-11-27 22:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/425) `Togicx:fix/ci-green` → `main` · +103 −73 · 31 files · 1 commits · open …ORY_INDIRECT_REST CI on main stopped at its first step (clippy, 40+ findings), so the diagnostics clippy and the tests never ran. Locally all three steps of .github/workflows/ci.yml now pass. Tests: two indirect budget tests still assumed VICTORY_INDIRECT_REST on, which 545f890 turned off by default. - host_list_budget_starts_empty_at_each_submission: the big records now fill the budget exactly, so the small record after them runs empty with REST on or off and the test still shows that no budget carries over. - warp_batch_charges_every_execution: the expected spend follows the REST rule in force (a job that does not fit takes nothing without REST). Both pass with VICTORY_INDIRECT_REST unset and =1. Clippy: - mechanical: is_multiple_of, shift precedence, sort_by_key with Reverse, hex digit groups, contains_key, annotated transmutes, mem::take, from_ref, a same-type cast, an if with identical branches; - host/indirects.rs and placed_filler_twins are only used by the diagnostics build and are only compiled there; - removed the never-used `batched` in make_from and the never-read depth_written field; Touch::Title is only built by tests, marked so; - book.rs: the heap that keeps the descriptor alive is a named field; - ResourceDesc::from_level(&self) renamed levels_from; - allowed with a reason: two 8-argument functions, the Late enum (boxing a flight would allocate per flight) and the CLI Command enum; - apps/victory: default_paths moved above the test module; the match on a block in play.rs binds the block first. No change in what the game runs.
CI on main stopped at its first step (clippy, 40+ findings), so the
diagnostics clippy and the tests never ran. Locally all three steps of
.github/workflows/ci.yml now pass.

Tests: two indirect budget tests still assumed VICTORY_INDIRECT_REST on,
which 545f890 turned off by default.
- host_list_budget_starts_empty_at_each_submission: the big records now
  fill the budget exactly, so the small record after them runs empty with
  REST on or off and the test still shows that no budget carries over.
- warp_batch_charges_every_execution: the expected spend follows the REST
  rule in force (a job that does not fit takes nothing without REST).
Both pass with VICTORY_INDIRECT_REST unset and =1.

Clippy:
- mechanical: is_multiple_of, shift precedence, sort_by_key with Reverse,
  hex digit groups, contains_key, annotated transmutes, mem::take,
  from_ref, a same-type cast, an if with identical branches;
- host/indirects.rs and placed_filler_twins are only used by the
  diagnostics build and are only compiled there;
- removed the never-used `batched` in make_from and the never-read
  depth_written field; Touch::Title is only built by tests, marked so;
- book.rs: the heap that keeps the descriptor alive is a named field;
- ResourceDesc::from_level(&self) renamed levels_from;
- allowed with a reason: two 8-argument functions, the Late enum (boxing
  a flight would allocate per flight) and the CLI Command enum;
- apps/victory: default_paths moved above the test module; the match on
  a block in play.rs binds the block first.

No change in what the game runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:20:03 +00:00
Author
Owner

@⁠1tsethan on GitHub · 2026-11-27 23:01 UTC · original

Independent Windows validation of PR #425.

Tested commit: 7331b07bde8d7beca973f24a0575ca1866d034d4.

cargo test --locked -p victory-gpu indirect:: -- --nocapture --test-threads=1

Exit: 0.

  • test result: ok. 29 passed; 0 failed; 9 ignored; 0 measured; 419 filtered out; finished in 6.30s

Tested commit: 7331b07bde8d7beca973f24a0575ca1866d034d4.

cargo clippy --workspace --all-targets --locked -- -D warnings

Exit: 0.

Tested commit: 7331b07bde8d7beca973f24a0575ca1866d034d4.

cargo clippy --workspace --all-targets --all-features --locked -- -D warnings

Exit: 0.

Baseline df2daafeb1b2170931cf7a6eddff6de254841d9c: workspace test run reproduced host_list_budget_starts_empty_at_each_submission and warp_batch_charges_every_execution failures. The main shader suite passed 288 tests with 4 ignored; main HLE suite passed 174 with 2 ignored. Baseline strict-Clippy command results: baseline-clippy: exit 101, baseline-clippy-diagnostics: exit 101.

Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result.

**@⁠1tsethan** on GitHub · 2026-11-27 23:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/425#issuecomment-7229803774) Independent Windows validation of PR #425. Tested commit: `7331b07bde8d7beca973f24a0575ca1866d034d4`. `cargo test --locked -p victory-gpu indirect:: -- --nocapture --test-threads=1` Exit: **0**. - test result: ok. 29 passed; 0 failed; 9 ignored; 0 measured; 419 filtered out; finished in 6.30s Tested commit: `7331b07bde8d7beca973f24a0575ca1866d034d4`. `cargo clippy --workspace --all-targets --locked -- -D warnings` Exit: **0**. Tested commit: `7331b07bde8d7beca973f24a0575ca1866d034d4`. `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` Exit: **0**. Baseline `df2daafeb1b2170931cf7a6eddff6de254841d9c`: workspace test run reproduced `host_list_budget_starts_empty_at_each_submission` and `warp_batch_charges_every_execution` failures. The main shader suite passed 288 tests with 4 ignored; main HLE suite passed 174 with 2 ignored. Baseline strict-Clippy command results: baseline-clippy: exit 101, baseline-clippy-diagnostics: exit 101. Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result. <!-- victory-native-validation-20261128 -->
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/425/head:github-bot/gh-425'
git switch 'github-bot/gh-425'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-425'
git switch 'github-bot/gh-425'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-425'
git switch 'github-bot/gh-425'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-425'
git switch 'main'
git merge --squash 'github-bot/gh-425'
git switch 'main'
git merge --ff-only 'github-bot/gh-425'
git switch 'main'
git merge 'github-bot/gh-425'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.