Skip to content

CI: repair Clippy gate after 11.29.01 combine - #2792

Open
mokkamokacaffe wants to merge 1 commit into
trustno1-coder:mainfrom
mokkamokacaffe:fix/clippy-main-55d069
Open

mokkamokacaffe wants to merge 1 commit into
trustno1-coder:mainfrom
mokkamokacaffe:fix/clippy-main-55d069

Conversation

@mokkamokacaffe

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the pr-fix Pull request: fixes a bug label Nov 29, 2026
@github-actions github-actions Bot changed the title [pr-fix] CI: repair Clippy gate after 11.29.01 combine CI: repair Clippy gate after 11.29.01 combine Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-fix Pull request: fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant