ci: fix workspace clippy warnings and VICTORY_INDIRECT_REST tests #14

Open
github-bot wants to merge 1 commit from github-bot/gh-14 into main AGit
Owner

@⁠mattkajorinc on GitHub · 2026-11-26 07:58 UTC · original
mattkajorinc:fix/ci-clippy-and-tests → main · +90 −69 · 25 files · 1 commits · open

Fixes CI failures observed on main (f4b48ad):

  1. Workspace Clippy (-D warnings under default and --all-features):

    • Resolve clippy::manual_is_multiple_of, clippy::precedence, clippy::unnecessary_sort_by, clippy::unreadable_literal, clippy::mem_replace_with_default, clippy::needless_borrow, clippy::unnecessary_cast, clippy::unit_arg, clippy::slice_from_ref, clippy::zero_ptr, clippy::implicit_saturating_sub, clippy::empty_loop, and feature-gated dead_code warnings across victory, victory-formats, victory-gpu, victory-hle, and victory-loader.
    • Allow intentional CLI/UI signatures where appropriate (large_enum_variant, too_many_arguments, wrong_self_convention).
  2. Indirect batch tests vs VICTORY_INDIRECT_REST=0 default:

    • indirect::tests::host_list_budget_starts_empty_at_each_submission: use a [64, 1, 1] small draw (2,048 cost vs 4,096 remaining after two [2^26, 1, 1] draws leave 2,048 budget) so budget exhaustion behaves identically under both VICTORY_INDIRECT_REST=0 and VICTORY_INDIRECT_REST=1.
    • indirect::tests::warp_batch_charges_every_execution: check take_rest against the active REST behavior (filled == 0 && !take_rest vs resting charges).

Verification (Windows MSVC offline, WARP + RTX 4070)

  • cargo clippy --workspace --all-targets --locked --offline -- -D warnings: passed
  • cargo clippy --workspace --all-targets --all-features --locked --offline -- -D warnings: passed
  • cargo test --workspace --locked --offline: all crates passed (0 failed; victory: 10+2, victory-core: 13, victory-formats: 41, victory-game: 3, victory-gpu: 335 passed / 34 ignored, victory-hle: 150+1 passed / 2 ignored, victory-loader: 39+2+1, victory-pe: 36, victory-pipeline: 7, victory-shader: 281 passed / 4 ignored, xtask: 6)
  • cargo run --locked --offline -p xtask -- policy: asset policy: 250 files ok
**@⁠mattkajorinc** on GitHub · 2026-11-26 07:58 UTC · [original](https://github.com/codec-d/cool_fox/pull/14) `mattkajorinc:fix/ci-clippy-and-tests` → `main` · +90 −69 · 25 files · 1 commits · open Fixes CI failures observed on `main` (`f4b48ad`): 1. **Workspace Clippy (`-D warnings` under default and `--all-features`):** - Resolve `clippy::manual_is_multiple_of`, `clippy::precedence`, `clippy::unnecessary_sort_by`, `clippy::unreadable_literal`, `clippy::mem_replace_with_default`, `clippy::needless_borrow`, `clippy::unnecessary_cast`, `clippy::unit_arg`, `clippy::slice_from_ref`, `clippy::zero_ptr`, `clippy::implicit_saturating_sub`, `clippy::empty_loop`, and feature-gated `dead_code` warnings across `victory`, `victory-formats`, `victory-gpu`, `victory-hle`, and `victory-loader`. - Allow intentional CLI/UI signatures where appropriate (`large_enum_variant`, `too_many_arguments`, `wrong_self_convention`). 2. **Indirect batch tests vs `VICTORY_INDIRECT_REST=0` default:** - `indirect::tests::host_list_budget_starts_empty_at_each_submission`: use a `[64, 1, 1]` small draw (`2,048` cost vs `4,096` remaining after two `[2^26, 1, 1]` draws leave `2,048` budget) so budget exhaustion behaves identically under both `VICTORY_INDIRECT_REST=0` and `VICTORY_INDIRECT_REST=1`. - `indirect::tests::warp_batch_charges_every_execution`: check `take_rest` against the active `REST` behavior (`filled == 0 && !take_rest` vs resting charges). ### Verification (Windows MSVC offline, WARP + RTX 4070) - `cargo clippy --workspace --all-targets --locked --offline -- -D warnings`: passed - `cargo clippy --workspace --all-targets --all-features --locked --offline -- -D warnings`: passed - `cargo test --workspace --locked --offline`: all crates passed (`0 failed`; `victory`: 10+2, `victory-core`: 13, `victory-formats`: 41, `victory-game`: 3, `victory-gpu`: 335 passed / 34 ignored, `victory-hle`: 150+1 passed / 2 ignored, `victory-loader`: 39+2+1, `victory-pe`: 36, `victory-pipeline`: 7, `victory-shader`: 281 passed / 4 ignored, `xtask`: 6) - `cargo run --locked --offline -p xtask -- policy`: `asset policy: 250 files ok`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 07:58:43 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/14/head:github-bot/gh-14'
git switch 'github-bot/gh-14'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-14'
git switch 'github-bot/gh-14'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-14'
git switch 'github-bot/gh-14'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-14'
git switch 'main'
git merge --squash 'github-bot/gh-14'
git switch 'main'
git merge --ff-only 'github-bot/gh-14'
git switch 'main'
git merge 'github-bot/gh-14'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.