Fix the Linux build and clippy gates (carries #1017) #2334
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!2334
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2334"
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?
@ntgata1-dotcom on GitHub · 2026-11-25 10:54 UTC · original
ntgata1-dotcom:carry-1017-linux-build→main· +310 −28 · 25 files · 7 commits · openThis carries #1017. Its author closed it today and its fork has since been deleted, so it can't be reopened. Its last triage, at
d5de72bon the currentmain(940d32f), was "merge candidate". Of the other open Linux-build PRs, #112 and #523 need a rebase, and #2008 fixes only the first error: with it alone,victory-hlestill doesn't compile on Linux (7 errors, 8 with its tests).What
5189576,d5de72b: #1017, unchanged. The commits keep Jitheswar as their author. #1017's description lists the changes. In short:#[cfg(windows)].translateskips the validator and host pipeline checks with a note, andtranslate --cachestops with an error.1ea4296: one addition. #1017 madeimage_namedsplit title paths at\and/on every host. On Windows it now keepsPath::file_name, asmaindoes, so no Windows code path changes; the split is for other hosts only. A new test checks the name on both.dd58dd7: rustfmt's layout for #1017's new title-path test. No other formatting.Checks
Arch Linux, Rust 1.98.1 from
rust-toolchain.toml, atdd58dd7:cargo clippy --workspace --all-targets --locked -- -D warnings, default and--all-featurescargo test --workspace --locked, default and--all-featurescargo xtask policycargo xwin clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings, default and--all-features(cargo-xwin 0.24.1)cargo xwin test --workspace --locked --no-fail-fast --target x86_64-pc-windows-msvc, run under Wine 11.22 (RX 9070 XT, vkd3d-proton)main: 682 / 19 / 10, with the same 19 failures, all from running under Wine (its HLSL compiler, nogitin the prefix and so on). The two extra passes are the new Windows tests.cargo fmt --all --checklists the same files here as onmain.Not run: Windows itself. CI here is the first native Windows run.
#2008 adds the same
#[cfg(windows)]toview_format, and the two merge cleanly in either order.AI-assisted (Claude Code).
🤖 Generated with Claude Code
940d32f58760871337828fa7600to9137f3f667@Marvisak on GitHub · 2026-11-25 15:23 UTC · original · edited 2026-11-26 09:18 UTC
Automated triage for the maintainers.
Needs work: needs the maintainer's decision. The PR merges cleanly again. It adds
#[cfg(windows)]gates and off-Windowsallow(dead_code)acrossvictory-gpu,victory-hle,victory-shader, the loader andapps/victoryso the workspace builds on Linux. On Windows,absolute_title_pathandtitle_file_nameincrates/victory-hle/src/runtime.rskeepmain's behaviour. Two things need a decision:mainafter the PR was opened. The PR also adds off-Windows runtime behaviour, which is more than a build fix:xgameui::askreturnsNone,title_absolutetreats Windows-style paths specially,HeapRefusalonly logs, andtranslate --cachestops with an error..githooks/pre-commitfrom mode 100644 to 100755, which the description does not mention. Please move that to its own PR if you want it.If the scope is accepted, a smaller PR that only gates Windows-only items and tests, with no new off-Windows runtime paths, plus a Linux CI job, would be easier to judge.
CI: not run (the workflow is waiting for approval).
Generated by Claude Code
@ntgata1-dotcom on GitHub · 2026-11-25 15:56 UTC · original
Thanks. On the three points:
Off-Windows builds: agreed, without a job these gates rot. Rebasing onto
67e8ae1(82 commits after940d32f) shows how fast. It needed four new gates for compile errors:texture_descnow calls the Windows-onlytexture_memory;chooseuses the Windows-onlyIDLE_MS/IDLE_FRAMES;executeleavesthisunused;About 30 items in
victory-gpuare also unused off Windows, most of them in the newhold.rs. So this only holds with a Linux job. If you want off-Windows builds, I'll finish the rebase and add alinuxjob (check, clippy-D warnings, test), here or by extending #1241's to the whole workspace. If not, feel free to close this.Windows CI: it hasn't run because the workflow is waiting for approval (first-time contributor).
The no-op gates: you're right. With the rebase I'll drop the inner
#[cfg(windows)]instorage.rsandroot.rs, and look at gating the callers ofstub_ps/stub_vsso theunreachable!()stubs can go.AI-assisted (Claude Code).
@ntgata1-dotcom on GitHub · 2026-11-25 16:28 UTC · original
Rebased onto
67e8ae1(no conflicts now) and did point 3, so it's ready either way:5876087: the gates for whatmaingained (as listed above).7828fa7: the innercfg(windows)instorage.rsandroot.rsare gone. translate's host checks are Windows-only, sostub_ps/stub_vsare gone and the off-WindowsHostkeeps onlynew.Linux: clippy
-D warnings(default and--all-features) is clean, andcargo test --workspacegives 422 passed, 0 failed. Windows target: clippy-D warnings, both, is clean. Under Wine, the same 27 failures asmain. Windows CI still waits for workflow approval.AI-assisted (Claude Code).
@catminou4 on GitHub · 2026-11-25 11:03 UTC · original · approved these changes
Tested locally on macOS arm64, merged into main
940d32f69b:cargo test -p victory-loader --locked— all green, 0 failures. The prepare tests are now correctly#[cfg(windows)]-gated: they parsed the host's own test binary as PE, which can only work on Windows (they were the crate's 3 permanent failures on macOS).cargo check -p victory --lockedpasses andcargo build -p victoryproduces a working binary:victory --helpruns and lists all subcommands on macOS. Before this PR, apps/victory did not compile off Windows at all (hard dependency on the dxc validator and D3D12 host). The validator_stub/host no-op modules are the right shape — checks report as skipped.This unlocks translate/inspect/census/shader-info development on Linux and macOS. Strong approve.
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.