Skip to content

CI has never been green: clippy fails first in victory-shader, then ~29 more in victory-gpu (the test step has never run) #2

Backlog

Description

@erdemcisse

CI has not been green on main yet: all ten CI runs in the Actions history fail (latest: 46275309101, 17303ca, 2m17s). The job stops at the Clippy step, so the Tests step — cargo test --workspace --locked — has never run in CI at all. Two things are in the way.

1. Two lints in victory-shader (the ones CI actually prints)

error: manual implementation of `.is_multiple_of()`
  --> crates/victory-shader/src/emit/water_tile_slots.rs:80:50
80 |         debug_assert!(new.len() <= body.len() && body.len() % 4 == 0);

error: returning the result of a `let` binding from a block
  --> crates/victory-shader/src/emit/mod.rs:2893..2905   (div_fixup_corner_fixture)
        let l = super::lower::lower(&…).unwrap();
        l

Both are mechanical (body.len().is_multiple_of(4), and return the expression directly). Fixing them alone does not turn the job green, because the next crate then fails.

2. ~29 more in victory-gpu once victory-shader compiles

Collected with the pinned 1.98.1 toolchain, cargo clippy --workspace --all-targets --locked -- -D warnings on x86_64-pc-windows-gnu (this PC has no MSVC toolchain; worth re-running on windows-latest to confirm the dead-code set there). 31 distinct errors: 27 dead_code, and four mechanical ones (is_multiple_of at shadow.rs:1714, a needless borrow at texture.rs:1562, a needless mut at watch.rs:3946).

file count what
crates/victory-gpu/src/turbo.rs 19 a whole unused "meta store" block: ShaderMeta, MetaStore, META, META_MAGIC, meta_enabled, load_meta_file, meta_store, shader_meta_get/put, flush_meta_now, encode/decode_resource_kind, encode/decode_root, plus mix64, fast_hash_128*, log_stats
crates/victory-gpu/src/watch.rs 8 Port7Counts, port_journal_counts, per_frame, nothing_new, port_guard_plan, port_guard_line, held_elsewhere(in shadow.rs)…
crates/victory-gpu/src/shadow.rs 2 held_elsewhere (dead), is_multiple_of
crates/victory-gpu/src/smart_back.rs 1 log_stats
crates/victory-gpu/src/texture.rs 1 needless borrow

The turbo.rs block looks like what Revert "merge: take non-RT performance and stability work from Leonida Continued" (732113e) left behind: the call sites went, the code stayed. Whether it should be deleted, wired up, or put behind cfg(feature = …) is your call — that is why this is an issue and not a pull request. The four mechanical ones (and the two in victory-shader) have no such question and can be done straight away.

Why it matters beyond CI colour

-- -D warnings also means nobody can use cargo clippy locally as the guide's pre-commit check, and the test suite has not been run by CI since 2026-11-28 — a failing test on main (host::menu::tests::the_link_is_always_right_under_the_note, see #1) went unnoticed for exactly that reason.

Reproduce:

cd <checkout>; rustup toolchain install          # 1.98.1, from rust-toolchain.toml
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
cargo test --workspace --locked

AI-assisted: yes (DeepSeek Harness, lead agent) — the inventory was produced by running the commands above; no code was changed by this issue.

Activity

  1. github-actions commented on Dec 1, 2026

    @github-actions

    Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

    1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
    2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

    Also say which GPU, Windows version (10 or 11)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions