CI: main's clippy gate runs again (five findings left after 145f7722) #4166
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4166"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tribbedev on 2026-11-30T16:57:09Z.
Fixes #1267
The
checkjob still stops in its first clippy step, socargo test --workspacehas not run on
mainfor a while. Thecard_passargument error that stopped itearlier was fixed upstream in
145f7722; these five are what is left.I see the queue of gate repairs (#1566, #3530, #3560, #2048, #2792, #2682, #3385,
#1290, #2772, #2744, #3086, #2019, #3785), most of them
CONFLICTINGnow. This isnot a fourteenth opinion on the same lint — it is what
maincarries today,on top of
84bd61e2.What it changes
crates\victory-gpu\src\shadow.rs:7197:Shadow::rangedhas no caller left;ranged_parts, which it wrapped, is what the copy code calls. Removed.crates\victory-shader\src\emit\lower.rs:114:Lowered::loop_capsis writtenby the lowering and read by nothing yet. Kept, with
#[allow(dead_code)], forthe tests that look at a lowering's loops.
crates\victory-gpu\src\host.rs:5081(CaptureRing's test):seed % 3 == 0as
seed.is_multiple_of(3).crates\victory-gpu\src\copystat.rs:1470(only with--all-features):mb,bytes as megabytes for the log lines, is unused in a diagnostics build, where
the logging crate leaves those lines out as a whole. Kept, with the same mark.
crates\victory-hle\src\modules\xmem.rs:1933(fromedb22cfd, the one CIreported on the previous push of this PR): the switch was read with
match … { Some(explicit) => explicit, None => false };bool's default isthat
false, so.unwrap_or_default(), with the comment it carried keptinside the closure.
Nothing runs differently: one dead wrapper gone, one spelling, two marks, one
matchwritten as the default it is.How it was tested
cargo clippy --workspace --all-targets --locked -- -D warnings: passes.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings:passes.
cargo test --workspace(the job's third step) is not run here — reaching it iswhat this PR is for, and the CI job on this PR runs it.
cargo fmt --all --checkis not clean onmaineither (apps\victory\build.rs,crates\victory-gpu\src\host\aside.rs); the CI job does not run it, and nothinghere changes formatting.
Checked for overlap
84bd61e2(finding 3's test and finding 5's commit came with yesterday'scapture plan and today's xmem port change), and #2019/#3785 do the loader's
unwind_copyinstead, whichmainno longer needs. Findings 1 to 4 are one lineeach; finding 5 is a
matchin one closure. This branch rebases cleanly on anyof them.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by iBooM72 on 2026-11-30T17:17:57Z.
The CI run for
97a58644, merged withmainat84bd61e2, gets past the errors fixed here, then stops at one already onmain, fromffe92c57:crates/victory-hle/src/modules/xmem.rs:1933:clippy::manual_unwrap_or_default(thematchinport_on)Replacing the
matchwith.unwrap_or_default(), as Clippy suggests, should keep the same behaviour, as unset is alreadyfalse. I haven't tested that change. The comment with the fps measurements can stay above it.I haven't run this PR locally. With #3902 (
e89ce07b) merged into the samemain, that line was the only Clippy error left with default features and with--all-features. Both Clippy commands passed when I ignoredmanual_unwrap_or_defaultandmanual_unwrap_or, which flags the same line if only the first is ignored. I didn't run the tests. #3902 also fixes the three Clippy errors CI currently reports onmain, and conflicts with this PR incopystat.rs,shadow.rsandlower.rs.Checked with AI assistance (Claude Code).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tribbedev on 2026-11-30T17:54:27Z.
Second commit, from the job's third step: with the clippy gate passed,
cargo test --workspacereached the tests for the first time and 1131 passed, 2 failed, bothof them completeness tests that yesterday's and today's merges left behind:
list::thin::tests::bindings_record_no_work— "a call is in no list", 47 of 49:BEGIN_QUERYandEND_QUERY(query recording, which calls nothing on the card,as
SAMPLE_MASKdoes not) were not inbinds_only.shader_cache::tests::every_switch_of_the_translator_is_in_the_key— the fourVICTORY_ORACLE_*names of the differential fuzzer are read by nothing in thetree any more.
Both pass here; the job on this push runs the whole suite again.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:46:22Z.
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