Fix main's CI: four clippy lints and the policy allowlist that failed the last four pushes #1290
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1290"
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 HailLucifer666 on 2026-11-28T17:01:03Z.
Fixes main's CI, which has failed the last four pushes (runs 46154038190, 46154833762, 46155565404, 46157117122) — the build dies on
clippy -D warningsbefore any test runs. Tracked in #1267.Four lints, each with its suggested form:
let_and_return—crates/victory-shader/src/emit/mod.rs:2756(thelet l = …; lhelper)manual_is_multiple_of—crates/victory-gpu/src/shadow.rs:1708some_filter—crates/victory-hle/src/modules/gameinput.rs:1383(written as the condition first;vkis a plain local, so the evaluation-order note is immaterial)manual_is_multiple_of—crates/victory-gpu/src/descriptor.rs:1234— only fires under--all-features, which is why the first failures showed fewerPlus one the lints were hiding:
repository_passes_policyhas been failing since4715a42committedbindings.iniwithout an allowlist entry (iniwas not inALLOWED_EXTENSIONS). Added with a comment naming that commit — veto and remove if the file should live outside the repo instead.Verified locally: both CI clippy variants (
--all-targetsand--all-targets --all-features,-D warnings) finish clean, andcargo test -p xtaskpasses — which means CI's test step can reach the tests for the first time in four pushes.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by HailLucifer666 on 2026-11-28T18:10:25Z.
Credit first: @jptorres96's heads-up was exactly right — the clippy steps passed here on the runner (the four fixes verified in CI's own environment), and the test step then failed on something else.
The failure:
pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_drawspanicked atpipeline/host.rs:1466—depth 0.5 outside [0.6, 1.0] must be rejected: left: 255, right: 0. The draw that depth bounds should have rejected rendered instead.It is not one of the three known flakes in the #1138 table (save_share, the watch tests,
views_off_their_elements) — this looks like a fourth, or something real. My four changes in this PR have no causal path to it: three are clippy-form rewrites (is_multiple_oftwice, a let binding returned directly, a condition-first filter) and one is theiniallowlist entry; none touchpipeline/host.rsor the depth-bounds path, and the descriptor change is a logging-cadence count with identical semantics.What would settle it: whether this test is stable across CI runs of PRs that touch nothing near it — the suite has run only intermittently on main for days, so its CI-side variance is unknown. If it is a fourth parallel/runner flake, #724's shape (serializing the tests that share state) may fit; if it reproduces, it is a real depth-bounds bug worth its own issue.
Happy to open that diagnosis as its own PR or issue, maintainer's preference.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by HailLucifer666 on 2026-11-28T18:20:20Z.
For the review queue, the six PRs from this issue's thread in suggested merge order (each stacks on the one before):
Each is small, carries red-first tests with recorded mutation probes, and is verified locally; the clippy half of #1290 is verified in this repo's own CI. Happy to rebase any of them on review.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by babuakhil on 2026-11-28T19:23:58Z.
Verified locally: green with this applied on top of current
main(9300875, one commit past this PR's base; it cherry-picks cleanly).Windows 11, Rust 1.98.1 (the pinned toolchain), commit
c4ab180=9300875+825dc27:ci.yml)cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo run -p xtask -- policycargo test --workspace --locked, run 1On
mainwithout it, the same commands fail with the two clippy lints andPOLICY: bindings.ini: file type not on the allowlist.I read the diff: the four lint fixes don't change behaviour (
is_multiple_offor% n == 0, thefilterturned into anifwith the same result, theletreturned directly). The flakyvictory-gputests mentioned in #1267 did not fail in these three runs on this machine.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by HailLucifer666 on 2026-11-29T00:25:12Z.
The red is diagnosed and fixed — the fix is in this PR (amended head) and in every stacked PR's head.
The cause, from the evidence: all eight CI runs failed on the same test,
depth_bounds_pipeline_loads_and_filters_draws— a draw at depth 0.5 with bounds [0.6, 1.0] rendered (255) instead of being rejected (0), eight of eight times, while passing locally every time. Not a flake: deterministic per environment. The depth-bounds test is an adapter capability (OPTIONS2'sDepthBoundsTestSupported), and the layer's gate indraw::depth_boundscorrectly refuses to set it where the adapter says unsupported — the runner's WARP says unsupported, this machine's says supported. The test was the bug: it assumed the capability universally.The fix (in this PR's head now): the test is capability-aware — it probes both conditions the layer's real gate checks (the OPTIONS2 report, and the
ID3D12GraphicsCommandList1cast) and asserts the arm that matches: on a supporting adapter, the rejection assertions as before; on a refusing one, it pins that the draw renders and the gate said so. No silent skip, no harness weakening — the layer's gate is correct and unchanged.The remaining reds and who owns them: the descriptor
views_off_their_elementsfailure (run 3) is one of the three known flakes in the #1138 table, fixed by #785; the watch-test class by #724; save_share by #819/#594. Until those land, a PR's CI can still go red ~1 run in 4 through no fault of its own — recommending them for the queue alongside this stack.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by HailLucifer666 on 2026-11-29T00:30:14Z.
Follow-up to the depth-bounds fix above: after rebasing the whole stack onto it, the remaining reds are fully explained and none are in this stack's code — 10 full parallel suite runs on the stack head: 8 clean, 2 failures, both watch tests (
what_is_put_in_beside_the_guards…,what_the_kernel_writes_through…) — #724's class, reproduced independently (that PR's one-at-a-time pattern measured 0 in 20). The descriptor failure in run 3 was #785's, save_share is #819/#594's.So the green path for every PR in this repo's queue is: #724 → #785 → #819 first, then this stack — and CI stops being a coin flip for everyone, which is what #1294's gate is for. Updated merge order: #1290 → #724 → #785 → #819 → #1294 → #1326 → #1328 → #1348 → #1357 → #1360 → #1363.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.