CI: repair Clippy gate after 11.29.01 combine #2792

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

@⁠mokkamokacaffe on GitHub · 2026-11-29 17:22 UTC · original
mokkamokacaffe:fix/clippy-main-55d069 → main · +93 −175 · 21 files · 1 commits · open

Related: #2019, #2048, #2173, #2175, #2486, #2772

Fixes the failing Clippy job in Actions run 46283213005.

What it changes

The v2026.11.29.01 combined release left main with a chain of -D warnings failures. The first visible error was the diagnostics-only unwind_copy, but clearing it exposed unused imports, merge-dropped call sites, superseded duplicate helpers, and newer Clippy findings across the GPU, HLE, loader, and shader crates.

This PR:

  • gates diagnostics/test-only helpers and removes superseded duplicate or unreachable code;
  • restores merge-dropped runtime paths for stepped-down fetch-buffer allocation, busy-resource eviction protection, lock-free refresh checks, VICTORY_WIDE_CHUNK, and the adapter selected by game_adapter();
  • applies behavior-preserving Clippy suggestions and keeps test helpers below the argument-count lint;
  • replaces File::try_lock with the Win32 whole-file lock already available to the Windows build, preserving the declared Rust 1.88 MSRV instead of raising it to 1.89.

This is a combined post-merge repair. The related PRs above contain the original focused work; this PR credits and reconciles those paths against current main rather than presenting them as newly discovered behavior.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): NVIDIA GeForce RTX 4080 SUPER; automated D3D12 shader tests only. No title profile or gameplay run.
  • Before: cargo clippy --workspace --all-targets --locked -- -D warnings exited 1, first at crates/victory-loader/src/crash.rs because unwind_copy was dead in the default build.
  • After: the same Clippy command passes with no warnings.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): both, through the shader unit and D3D12 hardware tests.
  • cargo test passed for the crates it touches: no, not as one unfiltered workspace run; the existing parent failures and timing-sensitive reruns are detailed below.

Additional results:

  • cargo test -p victory-shader --locked: 462 passed, 0 failed, 9 ignored.
  • Loader with its host-memory-label assertion excluded: 78 passed, 0 failed, 1 filtered across unit and integration tests.
  • GPU excluding the parent-reproduced working-directory restart assertion: 913 passed, 57 ignored; one parallel timing test failed once and passed immediately with --exact.
  • HLE: 422 passed, 5 ignored; one parallel range-lock timing test failed once and passed immediately with --exact.
  • The workspace run reaches three BC7 oracle parity failures in victory-formats (80 passed, 3 failed, 7 ignored). The untouched parent commit 55d069141eb85f83838b26b470d2ccd52a81ae9f reproduces the same three failures.
  • The untouched parent also reproduces host::menu::tests::preload_restart_preserves_paths_and_working_directory on this Windows host.
  • git diff --check: pass.

Checked for overlap

**@⁠mokkamokacaffe** on GitHub · 2026-11-29 17:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2792) `mokkamokacaffe:fix/clippy-main-55d069` → `main` · +93 −175 · 21 files · 1 commits · open Related: #2019, #2048, #2173, #2175, #2486, #2772 Fixes the failing Clippy job in [Actions run 46283213005](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46283213005/job/141409860737). ## What it changes The `v2026.11.29.01` combined release left `main` with a chain of `-D warnings` failures. The first visible error was the diagnostics-only `unwind_copy`, but clearing it exposed unused imports, merge-dropped call sites, superseded duplicate helpers, and newer Clippy findings across the GPU, HLE, loader, and shader crates. This PR: - gates diagnostics/test-only helpers and removes superseded duplicate or unreachable code; - restores merge-dropped runtime paths for stepped-down fetch-buffer allocation, busy-resource eviction protection, lock-free refresh checks, `VICTORY_WIDE_CHUNK`, and the adapter selected by `game_adapter()`; - applies behavior-preserving Clippy suggestions and keeps test helpers below the argument-count lint; - replaces `File::try_lock` with the Win32 whole-file lock already available to the Windows build, preserving the declared Rust 1.88 MSRV instead of raising it to 1.89. This is a combined post-merge repair. The related PRs above contain the original focused work; this PR credits and reconciles those paths against current `main` rather than presenting them as newly discovered behavior. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): NVIDIA GeForce RTX 4080 SUPER; automated D3D12 shader tests only. No title profile or gameplay run. - Before: `cargo clippy --workspace --all-targets --locked -- -D warnings` exited 1, first at `crates/victory-loader/src/crash.rs` because `unwind_copy` was dead in the default build. - After: the same Clippy command passes with no warnings. - For shader changes, the wave sizes tested (32 and/or 64 lanes): both, through the shader unit and D3D12 hardware tests. - `cargo test` passed for the crates it touches: no, not as one unfiltered workspace run; the existing parent failures and timing-sensitive reruns are detailed below. Additional results: - `cargo test -p victory-shader --locked`: **462 passed, 0 failed, 9 ignored**. - Loader with its host-memory-label assertion excluded: **78 passed, 0 failed, 1 filtered** across unit and integration tests. - GPU excluding the parent-reproduced working-directory restart assertion: **913 passed, 57 ignored**; one parallel timing test failed once and passed immediately with `--exact`. - HLE: **422 passed, 5 ignored**; one parallel range-lock timing test failed once and passed immediately with `--exact`. - The workspace run reaches three BC7 oracle parity failures in `victory-formats` (**80 passed, 3 failed, 7 ignored**). The untouched parent commit `55d069141eb85f83838b26b470d2ccd52a81ae9f` reproduces the same three failures. - The untouched parent also reproduces `host::menu::tests::preload_restart_preserves_paths_and_working_directory` on this Windows host. - `git diff --check`: pass. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2019, #2048, #2173, #2175, #2486, #2772.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:27:52 +00:00
github-bot force-pushed github-bot/gh-2792 from 50549d58f9 to 7b430f8cc0 2026-11-29 18:40:30 +00:00 Compare
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/descriptor/host.rs
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/host/panel.rs
  • crates/victory-gpu/src/host/recycle.rs
  • crates/victory-gpu/src/memory.rs
  • crates/victory-gpu/src/pipeline.rs
  • crates/victory-gpu/src/pipeline/library.rs
  • crates/victory-gpu/src/pipeline/make.rs
  • crates/victory-gpu/src/resource.rs
  • crates/victory-gpu/src/streamline.rs
  • crates/victory-hle/src/modules/gameinput.rs
  • crates/victory-hle/src/modules/lifecycle.rs
  • crates/victory-loader/src/crash.rs
  • crates/victory-shader/src/emit/lower/analysis.rs
  • crates/victory-shader/src/native.rs
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.
git fetch -u origin '+refs/pull/2792/head:github-bot/gh-2792'
git switch 'github-bot/gh-2792'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2792'
git switch 'github-bot/gh-2792'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2792'
git switch 'github-bot/gh-2792'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2792'
git switch 'main'
git merge --squash 'github-bot/gh-2792'
git switch 'main'
git merge --ff-only 'github-bot/gh-2792'
git switch 'main'
git merge 'github-bot/gh-2792'
git push origin 'main'
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!2792
No description provided.