CI: clippy and the file-size policy green on main after the 28 November merges #1527

Manually merged
github merged 1 commit from github-bot/gh-1527 into main 2026-11-29 08:20:40 +00:00 AGit
Owner

@⁠wasonidas on GitHub · 2026-11-28 21:16 UTC · original
wasonidas:fix/clippy-1128-merges → main · +2050 −2025 · 10 files · 1 commits · merged 2026-11-29 08:16 UTC

Clippy (-D warnings, both builds) and cargo xtask policy failed on main, so every pull request's check was red whatever it changed. Rebased cleanly onto main (0338ec6c):

  • host.rs, present_planes: three drop(presenter) dropped a reference, not the lock guard; the retry that follows (self.present_planes) locks self.presenter again on the same thread. They now drop presentation, the guard. Reached only when the two-plane composer cannot be made or record (Series S two planes).
  • emit/lower.rs: checked_div for the LDS cap; moved its wave/LDS analysis helpers to emit/lower/analysis.rs (48,561 bytes) and its mod tests to emit/lower/tests.rs (35,369 bytes) unchanged in logic, bringing emit/lower.rs back below the 640 KiB policy limit (704,996 -> 623,098 bytes).
  • victory-gpu: pool::let_go and resource::host_pressure_reclaimed are read only by the diagnostics memory line, so they are gated on feature = "diagnostics"; send::Memory::gpu was never read and removed; first_upload_decision and streamline::fsr::before_present allowed clippy::too_many_arguments as elsewhere; is_multiple_of, redundant 1 * identity ops in tests, and a constant test assertion made a const assertion.

Checks on fb44422fc (Rust 1.98.1, Windows)

  • cargo clippy --workspace --all-targets --locked --offline -- -D warnings and --all-features: both passed (0 warnings).
  • cargo run --locked --offline -p xtask -- policy: passed (323 files ok); cargo test --locked --offline -p xtask: 7 passed, 0 failed.
  • cargo test --locked --offline -p victory-shader --lib emit::lower:: -- --test-threads=1: 22 passed, 0 failed, 1 ignored (moved tests).
  • cargo test --locked --offline -p victory-gpu --lib -- --test-threads=1: 589 passed, 0 failed, 44 ignored.
  • Not run in the game on this rebase (present_planes change only affects the fallback path where the two-plane composer fails).

It overlaps older CI-fix PRs only where main moved; the unused colour finding was already fixed on 0338ec6c.

**@⁠wasonidas** on GitHub · 2026-11-28 21:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1527) `wasonidas:fix/clippy-1128-merges` → `main` · +2050 −2025 · 10 files · 1 commits · merged 2026-11-29 08:16 UTC Clippy (`-D warnings`, both builds) and `cargo xtask policy` failed on `main`, so every pull request's check was red whatever it changed. Rebased cleanly onto `main` (`0338ec6c`): - `host.rs`, `present_planes`: three `drop(presenter)` dropped a reference, not the lock guard; the retry that follows (`self.present_planes`) locks `self.presenter` again on the same thread. They now drop `presentation`, the guard. Reached only when the two-plane composer cannot be made or record (Series S two planes). - `emit/lower.rs`: `checked_div` for the LDS cap; moved its wave/LDS analysis helpers to `emit/lower/analysis.rs` (`48,561` bytes) and its `mod tests` to `emit/lower/tests.rs` (`35,369` bytes) unchanged in logic, bringing `emit/lower.rs` back below the 640 KiB policy limit (`704,996 -> 623,098` bytes). - `victory-gpu`: `pool::let_go` and `resource::host_pressure_reclaimed` are read only by the diagnostics memory line, so they are gated on `feature = "diagnostics"`; `send::Memory::gpu` was never read and removed; `first_upload_decision` and `streamline::fsr::before_present` allowed `clippy::too_many_arguments` as elsewhere; `is_multiple_of`, redundant `1 *` identity ops in tests, and a constant test assertion made a `const` assertion. ## Checks on `fb44422fc` (Rust 1.98.1, Windows) - `cargo clippy --workspace --all-targets --locked --offline -- -D warnings` and `--all-features`: both passed (0 warnings). - `cargo run --locked --offline -p xtask -- policy`: passed (`323 files ok`); `cargo test --locked --offline -p xtask`: `7 passed, 0 failed`. - `cargo test --locked --offline -p victory-shader --lib emit::lower:: -- --test-threads=1`: `22 passed, 0 failed, 1 ignored` (moved tests). - `cargo test --locked --offline -p victory-gpu --lib -- --test-threads=1`: `589 passed, 0 failed, 44 ignored`. - Not run in the game on this rebase (`present_planes` change only affects the fallback path where the two-plane composer fails). It overlaps older CI-fix PRs only where `main` moved; the unused `colour` finding was already fixed on `0338ec6c`.
Clippy (-D warnings, both builds) and `cargo xtask policy` failed on main
(923e38c), so every pull request's check is red whatever it changes.

- host.rs, present_planes: three `drop(presenter)` dropped a reference, not
  the lock guard; the retry that follows (`self.present_planes`) locks
  `self.presenter` again on the same thread. They now drop `presentation`,
  the guard. Reached only when the two-plane composer cannot be made or
  record (Series S two planes).
- emit/lower.rs: an unused `colour` (shadowed by the one in the loop), and
  `checked_div` for the LDS cap; its test module moves to
  emit/lower/tests.rs unchanged, so the file is under the 640 KiB limit
  again (667,380 -> 638,804 bytes).
- victory-gpu: `pool::let_go` and `resource::host_pressure_reclaimed` are
  read only by the diagnostics memory line, so they are built with it;
  `send::Memory::gpu` was never read; two functions over seven arguments
  allowed as elsewhere; `is_multiple_of`, an identity op in three tests,
  and a constant assertion made a `const` one.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 21:19:13 +00:00
github-bot force-pushed github-bot/gh-1527 from 3a7cff390e to fb44422fc9 2026-11-29 01:40:27 +00:00 Compare
github manually merged commit 7edc64923d into main 2026-11-29 08:20:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1527
No description provided.