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

Merged
wasonidas merged 1 commit from upstream-pr/1527 into main 2026-11-29 08:16:56 +00:00
wasonidas commented 2026-11-28 21:16:13 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wasonidas on 2026-11-28T21:16:13Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5544649021 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1527). Originally posted by [wasonidas](https://github.com/wasonidas) on 2026-11-28T21:16:13Z. --- 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`.
Sign in to join this conversation.
No reviewers
No labels
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.

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