Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#31
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@itsonewi on GitHub · 2026-11-25 23:53 UTC · original
The
diagnosticsfeature is where this fork's replay and fault instrumentation lives, and no CI job ever runs its tests..github/workflows/ci.ymlis three steps:So diagnostics code is compiled (
--all-featuresin the second clippy step) butcargo testruns 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, thereplay::unit tests and every#[cfg(feature = "diagnostics")]test invictory-gpuandvictory-shadernever run.apps/victory/src/main.rs:8-9and:152-153gate the wholereplaysubcommand on the feature, so its tests cannot be reached by theTestsstep at all.A test that only fails with
--features diagnosticstherefore reachesmainas 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 withfeatures: ["", "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 throughVICTORY_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.ymlat0a43566and the feature gates inmain.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.
@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. On0a43566it 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.
@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):
failureskippedskipped.github/workflows/ci.yml:19-33puts all three in one job, in that order, with noif: always(), nocontinue-on-error, no separate job:--all-targetsin 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
Testsstep is the only placextask'srepository_passes_policyruns (the workflow's own comment at:31says so). While Clippy is red, the asset-policy check has not run onmainat 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, andcargo test --workspace --all-features --locked(or a secondcargo test --features diagnosticsstep) 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.cargo clippy --workspace --all-targetswith--all-features; withSwatinem/rust-cachethe 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.ymlat0a43566plus the job's step results via the API. No build was run here.)