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

Open
opened 2026-12-01 20:54:27 +00:00 by github-bot · 2 comments
Owner

@⁠erdemcisse on GitHub · 2026-12-01 20:52 UTC · original

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-msvc — rustup's default host on this PC is the GNU one, so the toolchain has to be named: RUSTUP_TOOLCHAIN=1.98.1-x86_64-pc-windows-msvc. On main b67c405 that is 32 distinct errors in two crates: the two in victory-shader above, then 30 in victory-gpu once that crate compiles — 27 dead_code and three mechanical ones (is_multiple_of at shadow.rs:1716, a needless borrow at texture.rs:1657, a needless mut at watch.rs:4026).

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.

**@⁠erdemcisse** on GitHub · 2026-12-01 20:52 UTC · [original](https://github.com/RedLightDOWN/VIvidia/issues/2) 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-msvc` — rustup's default host on this PC is the GNU one, so the toolchain has to be named: `RUSTUP_TOOLCHAIN=1.98.1-x86_64-pc-windows-msvc`. On `main` `b67c405` that is **32** distinct errors in two crates: the two in `victory-shader` above, then 30 in `victory-gpu` once that crate compiles — 27 `dead_code` and three mechanical ones (`is_multiple_of` at `shadow.rs:1716`, a needless borrow at `texture.rs:1657`, a needless `mut` at `watch.rs:4026`). | 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: ```powershell 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:54:28 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-12-01 20:53 UTC · original

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)

**@⁠github-actions[bot]** on GitHub · 2026-12-01 20:53 UTC · [original](https://github.com/RedLightDOWN/VIvidia/issues/2#issuecomment-7325418575) 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)
Author
Owner

@⁠erdemcisse on GitHub · 2026-12-02 18:39 UTC · original

Measured again on the current main (b67c405) with the MSVC host of 1.98.1, and with #3 applied on top:

main b67c405, cargo clippy --workspace --all-targets --locked -- -D warnings
  -> exit 101 at victory-shader: 2 errors (the two above)
     once those are fixed: victory-gpu (lib test) 30 errors = 27 dead_code + the 3 mechanical ones
     i.e. 32 in total, not the 31 first reported here (that count came from 17303ca on the GNU host)

#3 (e90076c, rebased on b67c405)
  -> victory-shader clean
  -> what is left is exactly "could not compile victory-gpu (lib test) due to 27 previous errors",
     every one of them dead_code (29 items: two messages name a pair of methods each)
  -> --all-features: the same set plus a never-constructed faultbook::Unlocked,
     is_multiple_of at crates/victory-gpu/src/descriptor.rs:1235, a needless borrow at
     crates/victory-gpu/src/texture.rs:1825

Per file, the 27 remaining are: turbo.rs 19, watch.rs 8, shadow.rs 2, host.rs 1 (sends_own), smart_back.rs 1.

What the Tests step will say the first time it runs, because this issue is the reason it never has. On this PC, with #3 applied, cargo test -p victory-gpu --lib --locked -- --test-threads=1 is 466 passed / 5 failed, and the same five fail on unmodified main:

gpu_owned::tests::dekker_check_refuses_promotion_and_preserves_cpu_write_after_update
gpu_owned::tests::subregion_circuit_breaker_retires_faulting_chunk_and_preserves_siblings
gpu_owned::tests::veh_circuit_breaker_batch_demotes_remaining_blocks_on_one_fast_copy
gpu_owned::tests::veh_read_and_write_fault_pulls_real_gpu_bytes_and_demotes_piece
gpu_owned::tests::warmup_resets_when_cpu_writes_intervene_between_frames

all panicking at assert!(shadow.carded(), …) (gpu_owned.rs:1254, :1370, :1433, :1508, :1567). They are not a lint and not a flake: they fail single-threaded too, and they still fail with VICTORY_ADAPTER naming the RTX card on this machine, so the host here never places those buffers on the card. Multi-threaded, the workspace run is 7 failed: those five, host::menu::tests::the_link_is_always_right_under_the_note whenever VICTORY_STREAMLINE_DIR is set (#1), and the watch::port7_tests flake (#4).

So the three pieces are #3 (this), #1 (the menu note) and #4 (the flakes); green CI also needs a decision on the five gpu_owned tests.

**@⁠erdemcisse** on GitHub · 2026-12-02 18:39 UTC · [original](https://github.com/RedLightDOWN/VIvidia/issues/2#issuecomment-7354949596) Measured again on the current `main` (`b67c405`) with the MSVC host of 1.98.1, and with #3 applied on top: ``` main b67c405, cargo clippy --workspace --all-targets --locked -- -D warnings -> exit 101 at victory-shader: 2 errors (the two above) once those are fixed: victory-gpu (lib test) 30 errors = 27 dead_code + the 3 mechanical ones i.e. 32 in total, not the 31 first reported here (that count came from 17303ca on the GNU host) #3 (e90076c, rebased on b67c405) -> victory-shader clean -> what is left is exactly "could not compile victory-gpu (lib test) due to 27 previous errors", every one of them dead_code (29 items: two messages name a pair of methods each) -> --all-features: the same set plus a never-constructed faultbook::Unlocked, is_multiple_of at crates/victory-gpu/src/descriptor.rs:1235, a needless borrow at crates/victory-gpu/src/texture.rs:1825 ``` Per file, the 27 remaining are: `turbo.rs` 19, `watch.rs` 8, `shadow.rs` 2, `host.rs` 1 (`sends_own`), `smart_back.rs` 1. **What the Tests step will say the first time it runs**, because this issue is the reason it never has. On this PC, with #3 applied, `cargo test -p victory-gpu --lib --locked -- --test-threads=1` is 466 passed / 5 failed, and the same five fail on unmodified `main`: ``` gpu_owned::tests::dekker_check_refuses_promotion_and_preserves_cpu_write_after_update gpu_owned::tests::subregion_circuit_breaker_retires_faulting_chunk_and_preserves_siblings gpu_owned::tests::veh_circuit_breaker_batch_demotes_remaining_blocks_on_one_fast_copy gpu_owned::tests::veh_read_and_write_fault_pulls_real_gpu_bytes_and_demotes_piece gpu_owned::tests::warmup_resets_when_cpu_writes_intervene_between_frames ``` all panicking at `assert!(shadow.carded(), …)` (`gpu_owned.rs:1254`, `:1370`, `:1433`, `:1508`, `:1567`). They are not a lint and not a flake: they fail single-threaded too, and they still fail with `VICTORY_ADAPTER` naming the RTX card on this machine, so the host here never places those buffers on the card. Multi-threaded, the workspace run is 7 failed: those five, `host::menu::tests::the_link_is_always_right_under_the_note` whenever `VICTORY_STREAMLINE_DIR` is set (#1), and the `watch::port7_tests` flake (#4). So the three pieces are #3 (this), #1 (the menu note) and #4 (the flakes); green CI also needs a decision on the five `gpu_owned` tests.
This discussion has been locked. Commenting is limited to contributors.
No description provided.