CI compiles the diagnostics feature but never runs its tests: the replay suite that #3, #5 and #9 depend on is not executed #31

Closed
opened 2026-11-26 03:31:28 +00:00 by github-bot · 2 comments
Owner

@⁠itsonewi on GitHub · 2026-11-25 23:53 UTC · original

The diagnostics feature is where this fork's replay and fault instrumentation lives, and no CI job ever runs its tests.

.github/workflows/ci.yml is three steps:

- name: Clippy
  run: cargo clippy --workspace --all-targets --locked -- -D warnings
- name: Clippy, diagnostics build
  run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
- name: Tests
  run: cargo test --workspace --locked

So diagnostics code is compiled (--all-features in the second clippy step) but cargo test runs with default features, which means:

  • crates/victory-gpu/tests/replay.rs — the synthetic frame, the byte-identical picture check, the D3D12 debug-layer error check, the replay variants — never runs. That is the file #3's reporter had to drive by hand (cargo test --locked --release -p victory-gpu --features diagnostics --test replay), and the file #5 and #9 change.
  • crates/victory-gpu/tests/replay_big.rs, the replay:: unit tests and every #[cfg(feature = "diagnostics")] test in victory-gpu and victory-shader never run.
  • apps/victory/src/main.rs:8-9 and :152-153 gate the whole replay subcommand on the feature, so its tests cannot be reached by the Tests step at all.

A test that only fails with --features diagnostics therefore reaches main as a green build, and the first person to notice is a reporter. The PRs on this tracker already carry "Windows CI" links whose green tick does not cover the code they add.

Suggested fix: a fourth step, cargo test --workspace --locked --features diagnostics -- --test-threads=1 (the replay tests need one thread; #3's reporter ran them that way), or a matrix with features: ["", "diagnostics"]. Runtime is the one thing to check — the replay tests want a GPU or WARP and skip themselves otherwise, which the hosted runner already exercises through VICTORY_WARP.

Not a code defect: nothing here is wrong at runtime. It is the gap between what the CI green means and what the reports in this tracker rely on.

Not checked

I read .github/workflows/ci.yml at 0a43566 and the feature gates in main.rs; I did not run the workflow, and I did not measure how long a diagnostics test job takes.

AI use

AI-assisted review (source reading). No CI run, no build, no game files.

**@⁠itsonewi** on GitHub · 2026-11-25 23:53 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/31) The `diagnostics` feature is where this fork's replay and fault instrumentation lives, and no CI job ever **runs** its tests. `.github/workflows/ci.yml` is three steps: ```yaml - name: Clippy run: cargo clippy --workspace --all-targets --locked -- -D warnings - name: Clippy, diagnostics build run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings - name: Tests run: cargo test --workspace --locked ``` So diagnostics code is *compiled* (`--all-features` in the second clippy step) but `cargo test` runs with default features, which means: - `crates/victory-gpu/tests/replay.rs` — the synthetic frame, the byte-identical picture check, the D3D12 debug-layer error check, the replay variants — never runs. That is the file #3's reporter had to drive by hand (`cargo test --locked --release -p victory-gpu --features diagnostics --test replay`), and the file #5 and #9 change. - `crates/victory-gpu/tests/replay_big.rs`, the `replay::` unit tests and every `#[cfg(feature = "diagnostics")]` test in `victory-gpu` and `victory-shader` never run. - `apps/victory/src/main.rs:8-9` and `:152-153` gate the whole `replay` subcommand on the feature, so its tests cannot be reached by the `Tests` step at all. A test that only fails with `--features diagnostics` therefore reaches `main` as a green build, and the first person to notice is a reporter. The PRs on this tracker already carry "Windows CI" links whose green tick does not cover the code they add. Suggested fix: a fourth step, `cargo test --workspace --locked --features diagnostics -- --test-threads=1` (the replay tests need one thread; #3's reporter ran them that way), or a matrix with `features: ["", "diagnostics"]`. Runtime is the one thing to check — the replay tests want a GPU or WARP and skip themselves otherwise, which the hosted runner already exercises through `VICTORY_WARP`. Not a code defect: nothing here is wrong at runtime. It is the gap between what the CI green means and what the reports in this tracker rely on. ## Not checked I read `.github/workflows/ci.yml` at `0a43566` and the feature gates in `main.rs`; I did not run the workflow, and I did not measure how long a diagnostics test job takes. ## AI use AI-assisted review (source reading). No CI run, no build, no game files.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:28 +00:00
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-25 23:55 UTC · original · edited 2026-11-25 23:58 UTC

There’s a second reason the tests currently don’t run. The Windows check on main stopped at the first Clippy step on crates/victory-formats/src/texture.rs:1346, so the diagnostics Clippy step and the default tests were both skipped.

I checked the MSVC target with the pinned Clippy 0.1.98 and --keep-going. On 0a43566 it identified 32 distinct lint locations across the formats, loader and GPU crates in the default-feature pass. I fixed the first reported expression and verified that the formats crate passes all-targets Clippy and the existing mip-tail test under Wine. A test job independent of lint would expose default and diagnostics test results while the remaining lints are addressed.

I also built all 17 test executables with the diagnostics feature for the MSVC target. The five replay editor unit tests passed under Wine 11.22. The diagnostics GPU harness lists 408 tests and the replay integration harness lists one.

**@⁠UwUCammie** on GitHub · 2026-11-25 23:55 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/31#issuecomment-7178216585) · edited 2026-11-25 23:58 UTC There’s a second reason the tests currently don’t run. The [Windows check on main](https://github.com/avatarmanz/VIctory-7900XTX/actions/runs/45712194691/job/139549162967) stopped at the first Clippy step on `crates/victory-formats/src/texture.rs:1346`, so the diagnostics Clippy step and the default tests were both skipped. I checked the MSVC target with the pinned Clippy 0.1.98 and `--keep-going`. On `0a43566` it identified 32 distinct lint locations across the formats, loader and GPU crates in the default-feature pass. I [fixed the first reported expression](https://github.com/UwUCammie/VIctory-7900XTX/commit/35d3284ee4209280de0376b01bcac48a3369b150) and verified that the formats crate passes all-targets Clippy and the existing mip-tail test under Wine. A test job independent of lint would expose default and diagnostics test results while the remaining lints are addressed. I also built all 17 test executables with the diagnostics feature for the MSVC target. The five replay editor unit tests passed under Wine 11.22. The diagnostics GPU harness lists 408 tests and the replay integration harness lists one.
Author
Owner

@⁠itsonewi on GitHub · 2026-11-26 00:06 UTC · original

Confirmed from the job itself, and thanks for looking at the workflow instead of only the code — this is a second, independent reason no test result exists on main.

The job data (run 45712194691):

step result
5 Clippy failure
6 Clippy, diagnostics build skipped
7 Tests skipped

.github/workflows/ci.yml:19-33 puts all three in one job, in that order, with no if: always(), no continue-on-error, no separate job:

jobs:
  check:
    runs-on: windows-latest
    steps:
      - name: Clippy
        run: cargo clippy --workspace --all-targets --locked -- -D warnings
      - name: Clippy, diagnostics build
        run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
      - name: Tests
        run: cargo test --workspace --locked

--all-targets in the first two steps means test and example code is linted too, so a warning in a test's own code blocks the tests from ever being built — as you saw. With 32 distinct lint locations that is not a one-line unlock either.

One consequence worth adding to your list: the Tests step is the only place xtask's repository_passes_policy runs (the workflow's own comment at :31 says so). While Clippy is red, the asset-policy check has not run on main at all — so the guarantee #33 in this tracker is about is currently unenforced, not just unmeasured.

This is not #31 but sits beside it. #31 is that the test command omits --all-features, so the diagnostics suites never run when the step does run; this is that the step does not run at all. Both fixes are needed and they do not overlap: your proposal of a test job independent of lint addresses this one, and cargo test --workspace --all-features --locked (or a second cargo test --features diagnostics step) addresses that one. I would keep both test invocations as two steps of the same new job rather than two jobs, so a reader has one place to look.

Two smaller notes from the same file while it is open:

  • concurrency: {group: ci-${{ github.ref }}, cancel-in-progress: true} means only the newest push's run finishes; a red run that is cancelled tells you nothing, so the lint failure above has to be fixed rather than re-pushed around.
  • Step 6 is a full second cargo clippy --workspace --all-targets with --all-features; with Swatinem/rust-cache the second pass re-compiles the workspace, which is most of the job's 87 s. Splitting tests out also removes the reason to run two lints in series.

(Answer written with AI assistance: .github/workflows/ci.yml at 0a43566 plus the job's step results via the API. No build was run here.)

**@⁠itsonewi** on GitHub · 2026-11-26 00:06 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/31#issuecomment-7178396037) Confirmed from the job itself, and thanks for looking at the workflow instead of only the code — this is a second, independent reason no test result exists on `main`. **The job data** ([run 45712194691](https://github.com/avatarmanz/VIctory-7900XTX/actions/runs/45712194691/job/139549162967)): | step | result | |---|---| | 5 Clippy | `failure` | | 6 Clippy, diagnostics build | `skipped` | | 7 Tests | `skipped` | `.github/workflows/ci.yml:19-33` puts all three in one job, in that order, with no `if: always()`, no `continue-on-error`, no separate job: ```yaml jobs: check: runs-on: windows-latest steps: - name: Clippy run: cargo clippy --workspace --all-targets --locked -- -D warnings - name: Clippy, diagnostics build run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings - name: Tests run: cargo test --workspace --locked ``` `--all-targets` in the first two steps means test and example code is linted too, so a warning in a test's own code blocks the tests from ever being built — as you saw. With 32 distinct lint locations that is not a one-line unlock either. **One consequence worth adding to your list**: the `Tests` step is the only place `xtask`'s `repository_passes_policy` runs (the workflow's own comment at `:31` says so). While Clippy is red, the asset-policy check has not run on `main` at all — so the guarantee #33 in this tracker is about is currently unenforced, not just unmeasured. **This is not #31 but sits beside it.** #31 is that the test command omits `--all-features`, so the diagnostics suites never run *when the step does run*; this is that the step does not run at all. Both fixes are needed and they do not overlap: your proposal of a test job independent of lint addresses this one, and `cargo test --workspace --all-features --locked` (or a second `cargo test --features diagnostics` step) addresses that one. I would keep both test invocations as two steps of the *same* new job rather than two jobs, so a reader has one place to look. Two smaller notes from the same file while it is open: - `concurrency: {group: ci-${{ github.ref }}, cancel-in-progress: true}` means only the newest push's run finishes; a red run that is cancelled tells you nothing, so the lint failure above has to be fixed rather than re-pushed around. - Step 6 is a full second `cargo clippy --workspace --all-targets` with `--all-features`; with `Swatinem/rust-cache` the second pass re-compiles the workspace, which is most of the job's 87 s. Splitting tests out also removes the reason to run two lints in series. (Answer written with AI assistance: `.github/workflows/ci.yml` at `0a43566` plus the job's step results via the API. No build was run here.)
github-bot 2026-11-26 08:24:50 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/avatarmanz--VIctory-7900XTX#31
No description provided.