Fix failing lib tests, dead-code clippy errors and a stale diagnostics test #4485

Closed
github-bot wants to merge 14 commits from github-bot/gh-4484 into main AGit
Owner

@⁠Kerimrode on GitHub · 2026-11-30 21:04 UTC · original
Kerimrode:fix-tests-and-clippy → main · +964 −868 · 35 files · 14 commits · closed without merging

What it changes

Fixes failures seen on a fresh checkout of main with the pinned toolchain (1.98.1). No runtime behaviour changes.

  • list/thin.rs: test bindings_record_no_work did not list BEGIN_QUERY/END_QUERY; added them as work.
  • shader_cache.rs: removed four stale VICTORY_ORACLE_* names from a test list (no oracle_tests.rs exists).
  • shadow.rs: removed unused Shadow::ranged (clippy dead_code).
  • host.rs: use is_multiple_of(3) in a test (clippy).
  • copystat.rs: removed unused free fn mb (clippy dead_code, --all-features).
  • compose.rs: test expected sRGB plane to keep sRGB format, but view reads sRGB planes as UNORM; updated the expectation. This test only builds with --features diagnostics.

How it was tested

Windows 11, no game/GPU title run (tests and lints only).

  • cargo test -p victory-gpu --locked: 1133 passed
  • cargo test -p victory-gpu --all-features --locked: 1206 passed
  • cargo clippy -p victory-gpu --all-targets [--all-features] --locked -- -D warnings: clean
  • cargo xtask policy --staged: ok

Note: three concurrency tests each failed once in a parallel full run (timing) and passed alone and on re-run; unrelated to this change.

**@⁠Kerimrode** on GitHub · 2026-11-30 21:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4484) `Kerimrode:fix-tests-and-clippy` → `main` · +964 −868 · 35 files · 14 commits · closed without merging ## What it changes Fixes failures seen on a fresh checkout of main with the pinned toolchain (1.98.1). No runtime behaviour changes. - list/thin.rs: test `bindings_record_no_work` did not list BEGIN_QUERY/END_QUERY; added them as work. - shader_cache.rs: removed four stale VICTORY_ORACLE_* names from a test list (no oracle_tests.rs exists). - shadow.rs: removed unused `Shadow::ranged` (clippy dead_code). - host.rs: use `is_multiple_of(3)` in a test (clippy). - copystat.rs: removed unused free fn `mb` (clippy dead_code, --all-features). - compose.rs: test expected sRGB plane to keep sRGB format, but `view` reads sRGB planes as UNORM; updated the expectation. This test only builds with `--features diagnostics`. ## How it was tested Windows 11, no game/GPU title run (tests and lints only). - `cargo test -p victory-gpu --locked`: 1133 passed - `cargo test -p victory-gpu --all-features --locked`: 1206 passed - `cargo clippy -p victory-gpu --all-targets [--all-features] --locked -- -D warnings`: clean - `cargo xtask policy --staged`: ok Note: three concurrency tests each failed once in a parallel full run (timing) and passed alone and on re-run; unrelated to this change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 21:05:09 +00:00
github-bot closed this pull request 2026-12-01 18:43:27 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:40 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:40 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4484#issuecomment-7321303163) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:40 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:40 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4484#issuecomment-7321334803) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

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!4485
No description provided.