Clippy passes on main again, and two tests of victory-gpu the merges left behind (the check job) #4297

Manually merged
github merged 1 commit from github-bot/gh-4296 into gh-pr/4296/base 2026-11-30 23:41:34 +00:00 AGit
Owner

@⁠banaanpapa on GitHub · 2026-11-30 18:20 UTC · original
banaanpapa:fix/clippy-on-main → main · +14 −26 · 7 files · 1 commits · merged 2026-11-30 23:37 UTC

The check job is red on every open pull request and on main: it stops at its first step, Clippy with -D warnings, so its tests have not run in CI for a while. This makes both Clippy steps pass on main (84bd61e2) and puts right the two tests of victory-gpu that were stale once the job reaches them. Nothing here changes what runs.

Clippy (both steps of the workflow, run locally as it runs them)

Where Finding What was done
victory-shader emit/lower.rs Lowered::loop_caps (a field kept for tests) is read by no test allowed, with a note
victory-gpu shadow.rs Shadow::ranged has no caller; ranged_parts is what is asked removed, its sentence moved to ranged_parts
victory-gpu host.rs (a test) seed % 3 == 0 seed.is_multiple_of(3)
victory-gpu copystat.rs (all features) the free function mb is shadowed by a closure of the same name wherever it was called removed
victory-hle xmem.rs a match that is unwrap_or_default written so; same value, comment kept

cargo clippy --workspace --all-targets --locked -- -D warnings and the same with --all-features: no finding.

The two tests

  • shader_cache::tests::every_switch_of_the_translator_is_in_the_key failed with "VICTORY_ORACLE_RUNS is not read by the translator any more": the four switches of the differential fuzzer were still named, and a1fe8350 reverted the fuzzer out of the translator. The four names are gone from the list.
  • list::thin::tests::bindings_record_no_work failed with "a call is in no list: 47, 49": BEGIN_QUERY and END_QUERY (471d05c4) were named neither as binding, nor as waiting, nor as work. They are named as work, which is how binds_only and waits take them today; whether the card runs nothing for them is for whoever knows to say, and the test will hold them to it.

cargo test -p victory-gpu --locked: 1,133 pass, none fail (RTX 5080).

What still fails in cargo test --workspace, and is left alone

  • xtask policy::tests::repository_passes_policy: the asset policy stops at crates/victory-shader/src/native.rs, a 560-character hex run in the test loose_metadata_reads_version_0x403 (698ab79e). Whether that line stays, is split or is allowed is the maintainers' to decide, not a contributor's. Until it is, the job stays red after this change too, at its third step and not its first.
  • victory-hle modules::xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_it: passes alone (5 of 5), fails when the crate's tests run together (4 of 4): the count of refused reads it wants to be 0 is one all tests share.
  • victory-shader emit::bitcode::opt::tests::hw_tests::split_lds_wave32_read_after_read_barrier_coalescing_and_parity: fails on this card at opt.rs:7736; whether it does on the runner's software adapter the job will now say.

The diagnostics build as well (2026-11-30)

cargo test -p victory-gpu --features diagnostics --locked --lib on this branch (RTX 5080): 1,205 passed, 1 failed, 69 ignored. Tyr0nsur's run of clean e1251c31 had 1,203 passed and 3 failed: the two this pull request puts right, and compose::tests::bgrx_plane_selects_a_typed_view (DXGI_FORMAT(88) against 93), the one left here. That one is what #2646 changes; with #2646's diff on top of this branch it passes. (In that run uav_pool's lifecycle test failed once instead, and passed three of three alone: it is one of the timing tests that fail now and then on main too.)

🤖 Generated with Claude Code

**@⁠banaanpapa** on GitHub · 2026-11-30 18:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4296) `banaanpapa:fix/clippy-on-main` → `main` · +14 −26 · 7 files · 1 commits · merged 2026-11-30 23:37 UTC The `check` job is red on every open pull request and on `main`: it stops at its first step, Clippy with `-D warnings`, so its tests have not run in CI for a while. This makes both Clippy steps pass on `main` (`84bd61e2`) and puts right the two tests of `victory-gpu` that were stale once the job reaches them. Nothing here changes what runs. ## Clippy (both steps of the workflow, run locally as it runs them) | Where | Finding | What was done | |---|---|---| | `victory-shader` `emit/lower.rs` | `Lowered::loop_caps` (a field kept for tests) is read by no test | allowed, with a note | | `victory-gpu` `shadow.rs` | `Shadow::ranged` has no caller; `ranged_parts` is what is asked | removed, its sentence moved to `ranged_parts` | | `victory-gpu` `host.rs` (a test) | `seed % 3 == 0` | `seed.is_multiple_of(3)` | | `victory-gpu` `copystat.rs` (all features) | the free function `mb` is shadowed by a closure of the same name wherever it was called | removed | | `victory-hle` `xmem.rs` | a `match` that is `unwrap_or_default` | written so; same value, comment kept | `cargo clippy --workspace --all-targets --locked -- -D warnings` and the same with `--all-features`: no finding. ## The two tests - `shader_cache::tests::every_switch_of_the_translator_is_in_the_key` failed with "VICTORY_ORACLE_RUNS is not read by the translator any more": the four switches of the differential fuzzer were still named, and a1fe8350 reverted the fuzzer out of the translator. The four names are gone from the list. - `list::thin::tests::bindings_record_no_work` failed with "a call is in no list: 47, 49": `BEGIN_QUERY` and `END_QUERY` (471d05c4) were named neither as binding, nor as waiting, nor as work. They are named as work, which is how `binds_only` and `waits` take them today; whether the card runs nothing for them is for whoever knows to say, and the test will hold them to it. `cargo test -p victory-gpu --locked`: 1,133 pass, none fail (RTX 5080). ## What still fails in `cargo test --workspace`, and is left alone - `xtask` `policy::tests::repository_passes_policy`: the asset policy stops at `crates/victory-shader/src/native.rs`, a 560-character hex run in the test `loose_metadata_reads_version_0x403` (698ab79e). Whether that line stays, is split or is allowed is the maintainers' to decide, not a contributor's. **Until it is, the job stays red after this change too**, at its third step and not its first. - `victory-hle` `modules::xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_it`: passes alone (5 of 5), fails when the crate's tests run together (4 of 4): the count of refused reads it wants to be 0 is one all tests share. - `victory-shader` `emit::bitcode::opt::tests::hw_tests::split_lds_wave32_read_after_read_barrier_coalescing_and_parity`: fails on this card at `opt.rs:7736`; whether it does on the runner's software adapter the job will now say. ## The diagnostics build as well (2026-11-30) `cargo test -p victory-gpu --features diagnostics --locked --lib` on this branch (RTX 5080): 1,205 passed, 1 failed, 69 ignored. Tyr0nsur's run of clean `e1251c31` had 1,203 passed and 3 failed: the two this pull request puts right, and `compose::tests::bgrx_plane_selects_a_typed_view` (`DXGI_FORMAT(88)` against `93`), the one left here. That one is what #2646 changes; with #2646's diff on top of this branch it passes. (In that run `uav_pool`'s lifecycle test failed once instead, and passed three of three alone: it is one of the timing tests that fail now and then on `main` too.) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The `check` job has stopped at its first step on every pull request: with
`-D warnings` Clippy finds, on `main` (84bd61e2):

- `victory-shader`: `Lowered::loop_caps`, kept for tests, is read by none
  now (allowed, with a note).
- `victory-gpu`: `Shadow::ranged` has no caller left; its two parts are
  asked for by `ranged_parts` (removed, its sentence moved there). A test's
  `seed % 3 == 0` is `is_multiple_of`. With all features, the free
  function `mb` of `copystat.rs` is shadowed by a closure of the same name
  wherever it was called (removed).
- `victory-hle`: a `match` that is `unwrap_or_default` (the same value;
  its comment kept).

Nothing of this changes what runs. With it both Clippy steps pass, and
the job reaches its tests, of which two in `victory-gpu` were stale:

- `shader_cache`'s key test still named the four switches of the
  differential fuzzer, which a1fe8350 reverted out of the translator.
- `list::thin`'s `bindings_record_no_work` wants every call named as
  binding, waiting or work; `BEGIN_QUERY` and `END_QUERY` (471d05c4) were
  in none. They are work, as the waits take them today.

`cargo test -p victory-gpu`: 1,133 pass, none fail.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 18:22:59 +00:00
Author
Owner

@⁠tyr0nsur on GitHub · 2026-11-30 18:36 UTC · original

I reproduced both failures from this PR on a clean Windows 11 checkout of e1251c31 (RTX 4060, driver 621.14) with cargo test -p victory-gpu --features diagnostics --locked --lib. The same run also reproduced the diagnostic-only BGRX assertion from #2646 (DXGI_FORMAT(88) vs 93). Counts on clean main were 1,203 passed, 3 failed and 69 ignored. This may help when rerunning the diagnostics build in addition to the default-feature suite.

**@⁠tyr0nsur** on GitHub · 2026-11-30 18:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4296#issuecomment-7288092104) I reproduced both failures from this PR on a clean Windows 11 checkout of `e1251c31` (RTX 4060, driver 621.14) with `cargo test -p victory-gpu --features diagnostics --locked --lib`. The same run also reproduced the diagnostic-only BGRX assertion from #2646 (`DXGI_FORMAT(88)` vs `93`). Counts on clean main were 1,203 passed, 3 failed and 69 ignored. This may help when rerunning the diagnostics build in addition to the default-feature suite.
Author
Owner

@⁠banaanpapa on GitHub · 2026-11-30 18:46 UTC · original

Thank you, that helps. The same here on an RTX 5080: with this branch, cargo test -p victory-gpu --features diagnostics --locked --lib gives 1,205 passed, 1 failed, 69 ignored, the one being compose::tests::bgrx_plane_selects_a_typed_view. With #2646's diff applied on top it passes as well. I've added the diagnostics run to the description, so both suites are on record.

**@⁠banaanpapa** on GitHub · 2026-11-30 18:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4296#issuecomment-7288333231) Thank you, that helps. The same here on an RTX 5080: with this branch, `cargo test -p victory-gpu --features diagnostics --locked --lib` gives 1,205 passed, 1 failed, 69 ignored, the one being `compose::tests::bgrx_plane_selects_a_typed_view`. With #2646's diff applied on top it passes as well. I've added the diagnostics run to the description, so both suites are on record.
Author
Owner

@⁠tyr0nsur on GitHub · 2026-11-30 19:29 UTC · original

Still needed on current main (e1251c31): both Clippy steps of the check job stop there on exactly the three findings this fixes (Lowered::loop_caps, Shadow::ranged, seed % 3). With this PR merged locally on top, cargo clippy --workspace --all-targets --locked -- -D warnings and the same with --all-features both pass (Windows 11, toolchain 1.98.1). Every open PR's check is red at its first step until then, so CI says nothing about them for now.

AI-assisted with Claude Code.

**@⁠tyr0nsur** on GitHub · 2026-11-30 19:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4296#issuecomment-7289483134) Still needed on current `main` (e1251c31): both Clippy steps of the `check` job stop there on exactly the three findings this fixes (`Lowered::loop_caps`, `Shadow::ranged`, `seed % 3`). With this PR merged locally on top, `cargo clippy --workspace --all-targets --locked -- -D warnings` and the same with `--all-features` both pass (Windows 11, toolchain 1.98.1). Every open PR's `check` is red at its first step until then, so CI says nothing about them for now. AI-assisted with Claude Code.
github-bot changed target branch from main to gh-pr/4296/base 2026-11-30 23:41:26 +00:00
github manually merged commit 4b9b861217 into gh-pr/4296/base 2026-11-30 23:41:27 +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!4297
No description provided.