CI passes on main again: clippy clean in both CI configurations, tests green (includes #67), no behaviour change #86
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!86
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-86"
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?
@harrisotiropoulos-jpg on GitHub · 2026-11-27 17:34 UTC · original
harrisotiropoulos-jpg:ci/main-green→main· +69 −37 · 30 files · 3 commits · openCI fails on
mainright now, so every open pull request's CI fails too, whatever the PR changes:-D warnings) stop on about 45 errors, nearly all invictory-gpu;cargo test --workspacefails 2 tests (indirect::tests::host_list_budget_starts_empty_at_each_submission,warp_batch_charges_every_execution).This PR makes all three CI steps pass without changing what the code does.
What changed
cargo clippy --fix), each reviewed by hand:x % n == 0becomesx.is_multiple_of(n). The one divisor that comes from a setting (VICTORY_FRAMEGEN_CYCLE) is already checked> 0.mem::replace(x, default)becomesmem::take;slice::from_ref;_.sort_*_by_key(Reverse(..)): same order, and the stable sort stays stable;drop(<Copy value>)becomeslet _ =;get(..).is_none()becomes!contains_key(..)in xmem tests.replay/play/diverge.rs:1217:if s.kind == SRV { 8 } else { 8 }becomes8. It's the same value, but the lines above it all differ between the two branches, so the original may be a typo. Worth a look by whoever wrote it.#[allow]s, each with a note, where a "real" fix would delete or restructure code other open PRs touch:host/indirects.rs,Touch::Title,placed_filler_twins, a test field,book.rs's held heap;large_enum_variant:host.rs'sLate(boxing it would add an allocation per flight) and the CLI'sCommand;too_many_argumentson two functions;wrong_self_conventiononfrom_level;Checked locally, with CI's exact commands (Windows 11, toolchain 1.98.1)
cargo clippy --workspace --all-targets --locked -- -D warnings: exit 0cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: exit 0cargo test --workspace --locked: 0 failures (victory-gpu 420 passed, 35 ignored; the rest of the workspace passes too)cargo xtask policy --staged: okFormatting is untouched: CI doesn't check it, and most files already differ from
rustfmt.🤖 Generated with Claude Code
545f890); two clippy fixes in tests d763e9c903`cargo clippy --workspace --all-targets --locked -- -D warnings` (and the same with --all-features) failed with about 45 errors, so every pull request's CI was red whatever it changed. This makes both pass without changing what the code does: - clippy's own machine-applicable fixes (`cargo clippy --fix`): `% n == 0` as `is_multiple_of(n)` (the one divisor that comes from a setting, VICTORY_FRAMEGEN_CYCLE, is checked > 0 first), needless borrows and casts, `mem::replace(.., default)` as `mem::take`, `slice::from_ref`, a precedence parenthesis, an unused binding prefixed with `_`. - sorts by a descending key as `sort_*_by_key(Reverse(..))` (same order; the stable sort stays stable); hex literals regrouped (same values); `drop(<Copy value>)` as `let _ =`; `contains_key` for `get(..).is_none()` in xmem tests; `if a { 8 } else { 8 }` in the replay tool as `8` (same value; maybe a typo for its author to look at). - scoped `#[allow]`s, with a note, where a fix would change code others are working on: unused items (host/indirects.rs, Touch::Title, placed_filler_twins, a test field, book.rs's held heap), large_enum_variant (host.rs's Late, the CLI's Command), too_many_arguments (two functions), wrong_self_convention (from_level), and a test's deliberate write after taking a pointer. Includes #67 (merged in first), which fixes the two indirect budget tests. Checked locally with CI's exact commands: both clippy steps exit 0; `cargo test --workspace --locked` passes with 0 failures (victory-gpu 420 passed, 35 ignored); `cargo xtask policy --staged`: ok. Co-Authored-By: Claude Opus 5.5 <[email protected]>@JoeY54 on GitHub · 2026-11-27 20:50 UTC · original
Supplemental Windows / Rust 1.98.1 validation and two small follow-up fixes for integration with newer main.
PR head
388485b91f253032f2af7d530c977c6e6290de17includes #67. Both workspace Clippy configurations pass at that head. The initial 8-thread workspace run had 1052 passed, 2 failed and 46 ignored:watch::tests::faults_that_take_no_lock_tell_the_samepassed on isolated serial retry;modules::net::tests::only_loopback_is_reachablepassed outside the execution sandbox. These retries are not a single green full run or proof of a PR regression.Merging this PR into main
e69e39c55b92f71a40ea3eadaa3439678df4e721produced a single successful serial workspace run: 1064 passed, 0 failed, 46 ignored (cargo test --workspace --locked --no-fail-fast -- --test-threads=1 --nocapture). Both budget tests passed. Internally skipped optional paths are not claimed as covered; no game launch or assets were used.That integration exposed two lints in newer main code, still present at
f3534e6b09f113e369c3ade2a13ff3d711ce0cf1and not covered by #265's changed-file list:manual_is_multiple_of: use the equivalent block-length predicate (N = 2048).items_after_test_module: movedefault_pathsunchanged before the test module.The patch below applies to the integration with newer main, not directly to this older PR head. After applying it, both
cargo clippy --workspace --all-targets --locked -- -D warningsand the same command with--all-featurespass. The two convolution unit tests and all 22 CLI tests pass;cargo xtask policyalso passes. The 1064-test full run above was before these mechanical fixes; it was not repeated afterward. No lint suppressions or runtime behavior changes were added.Sharing the small follow-up here for adoption by this PR's author, rather than opening a competing CI-cleanup PR.
AI-assisted by OpenAI Codex.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.