ci: fix default and diagnostics Clippy failures #3530
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3530
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3530"
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?
@wrq2007 on GitHub · 2026-11-30 00:32 UTC · original
wrq2007:ci/clippy-cleanup→main· +393 −381 · 27 files · 6 commits · closed without mergingSummary
Restore the default and all-features CI gates on current
mainwithout changing runtime behavior.unwind_copyhelper with the same feature as its caller.Validation
cargo clippy --workspace --all-targets --locked -- -D warnings— passed.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings— passed.cargo test --workspace --locked— passed in CI.cargo xtask policy— passed locally: 429 files ok.No game assets, binaries, screenshots, logs, local paths, or account data are included.
@Trillazill on GitHub · 2026-11-30 02:20 UTC · original
Thanks for getting
checkgreen. I went through the same findings separately and traced each "never used" item through the wave merges (git log --first-parent -m -S, then both parents of the merge). Two of them are callers a merge dropped, not dead code, so silencing or deleting them keeps a regression:1.
memory::lock_memory: deleting it leaves the lock-wait figure at 0 for good.The wave-4 merge (
1d5e66a8) madereadylock throughtake()instead oflock_memory.lock_memorywas the only thing that fedtiming::WAIT, and the 10 s "title memory by address" line still reportstiming::take(&timing::WAIT). So since that merge the line's lock wait has read 0, and withlock_memoryremoved it can't come back.readyistake()'s only caller, so the fix is one line intake():It's log only, with no change to locking (
lock_memoryhandles poisoning the same way).2.
host::take_spare_wb: with#[allow(dead_code)]its test checks code that no longer runs.Since the wave-3 merge (
c777d871),take_chunk_kindmakes the same pick inline throughtake_kept, and onlyspare_pool_separates_streaming_and_reuses_wb_fallbacksstill callstake_spare_wb. That test passes whatevertake_chunk_kinddoes. Making the helper be that pick, and havingtake_chunk_kindcall it, gives the test real coverage with identical behaviour:In the test, the calls become
take_spare_wb(&mut spare, 4096, false, wb, false, |x| x.1).map(|t| t.0), plus one assertion that the shared pool takes any chunk.Both are in one commit on
829188e9, wherevictory-gpu's tests pass (915) along with both clippy gates (stacked on #2019/#2173/#2175/#2208):github.com/Trillazill/VIctory-NVIDIA@e5c58b0e. Feel free to take them into this PR. The rest of that commit overlaps yours.@wrq2007 on GitHub · 2026-11-30 03:18 UTC · original
Thanks — both points are fair. Fixed in
d579d04:lock_memoryand routedtake()through it, keepingWAITEDaccounting explicit on the single locking path.take_spare_wbwraptake_keptand changedtake_chunk_kindto call it, sospare_pool_separates_streaming_and_reuses_wb_fallbacksnow exercises the production selection logic. Added the shared-pool case as well.Validation: focused spare-pool test passed, and both default and all-features workspace Clippy gates passed.
@wrq2007 on GitHub · 2026-11-30 04:05 UTC · original
The re-run of
d579d04failed onhost::card_steps::tests::places_written_after_sending_are_learned, which passes alone and only fails in a full-crate run when the allocator hands the test a page an earlierlatetest already learned — the order-dependent flake described and fixed in #3668. Nothing in this branch touchescard_stepsorlate. I pushed a no-op commit (9539d97) to retrigger CI since the failed run cannot be re-run from a fork.@wrq2007 on GitHub · 2026-11-30 04:15 UTC · original
The retrigger at
9539d97reproduced the same #3668 order-dependent flake (same assertion at card_steps.rs:2118; 921 other tests passed). I will not keep retriggering an unrelated flaky test. This PR's review fixes are ind579d04; final green status depends on the test-only isolation fix in #3668 reaching main.github-bot referenced this pull request2026-11-30 05:13:30 +00:00
github-bot referenced this pull request2026-11-30 05:13:30 +00:00
@davemathews12 on GitHub · 2026-11-30 05:16 UTC · original
main(41adb551) fails four checks: theunwind_copydead code, the victory-shader clippy lints, the threebcpack::oracle_parity_*tests, andrepository_passes_policyonheap_sites/frame_users.rs. Of the open fixes:Suggestion: merge #3530 alone; the others then conflict.
frame_users.rsis the same value, hex to decimal, checked with a script.One caution for both #3530 and #3385:
frame_users.rssays it is generated and must not be edited by hand. The next regeneration will bring the hex run back unless the generator writes decimal, or the file gets an exception inxtask/src/policy.rs.The oracle change (all four PRs) aligns the test with f9de61c5's decoder. Whether
f9de61c5itself is right can only be checked againstBCPack.dll.@wrq2007 on GitHub · 2026-11-30 05:23 UTC · original
Thanks for the update. My take: #3530 is worth merging, but I would not force it through with the current red check. The remaining failure is the known
card_stepsorder-dependent flake, so the clean sequence is:labelcheck is green, so I would not treat it as validated yet.Two non-blocking follow-ups I would keep visible:
frame_users.rsis generated. Converting the offsets to decimal satisfies the policy today, but the next regeneration will bring the hex run back unless the generator emits decimal or the policy gets a narrow exception.windows-latestthat likely means they never run in CI, so this is a coverage reduction rather than a true fix. Long-term these should run on a GPU runner, or be explicitly ignored with the reason recorded.The BC7 oracle change is test-only and aligns the test with the production decoder; it is not evidence that the decoder matches
BCPack.dll, so I would keep that distinction in mind.@Trillazill could you re-review
d579d04when you get a chance? I think the review comments are addressed; the only thing left is the unrelated #3668 flake.@trustno1-coder on GitHub · 2026-12-01 18:51 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.
Pull request closed