xtask: add CPU-only source verification report #2166
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2166
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2166"
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?
@yefan911 on GitHub · 2026-11-25 06:46 UTC · original
yefan911:feat/xtask-cpu-verification→main· +687 −2 · 6 files · 1 commits · openSummary
Adds
cargo xtask verify-cputo run a reviewed CPU-only selection of existing component tests and emit a Markdown report (or list planned checks). The report records the source revision, compiler, target, commands, summaries, and full output. It fails on command errors or empty test selections.The verifier excludes title-path overrides and GitHub tokens from Cargo test subprocesses, selects the supported MSVC target by default on Windows x64, and uses the same target for the nested synthetic loader fixture. The fixture test now derives and passes its target triple explicitly.
This complements #2057 and #2090: it is a curated run/report entry point reusing existing tests, not another conformance suite.
Coverage and limits
Type-checks workspace targets, then runs existing source-library, loader, selected HLE, CPU shader-analysis/lowering, and xtask tests. GPU execution tests, game data, title execution, gameplay compatibility, and performance are not covered. The report explicitly describes ignored/skipped tests and these limitations.
Verification
On Windows x64 with Rust 1.98.1 and the MSVC target:
cargo xtask verify-cpu --jobs 2 --report target/cpu-verification.md: 333 passed, 0 failed, 7 ignored across all selected suites; workspace target check passed.cargo clippy --workspace --all-targets --locked -- -D warnings: passed.--all-features: passed.cargo xtask policy: 184 files ok;rustfmt --checkandgit diff --check: passed.No game files were used and the title was not launched. Coordination claim: #1633.
@Marvisak on GitHub · 2026-11-25 12:36 UTC · original
Automated triage for the maintainers.
Needs work: needs the maintainer's decision. This adds
cargo xtask verify-cpu(xtask/src/verify_cpu.rs, about 610 lines), plusdocs/cpu-verification.mdand README/architecture lines. It runs a curated list ofcargo check/cargo testinvocations as child processes and writes a Markdown report. Tooling that spawns processes is the maintainer's call.On the merits:
cargo test --workspace. The new doc says the full suite also needs no game data. The extra this adds is a hand-picked subset and a report file, and the doc itself says the list needs reviewing whenever tests are added or moved. That ongoing upkeep is the main cost.crates/victory-loader/tests/load_probe.rs, which isn't explained in the PR.--helpinstead of a new doc.What would change the verdict: a maintainer saying the tool is wanted, plus the
load_probe.rschange explained or split out.Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.