Linux: compile, test and run the analysis commands + format all files #128
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!128
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-128"
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?
@LazyHatGuy on GitHub · 2026-11-24 21:42 UTC · original
LazyHatGuy:linux→main· +5372 −1611 · 72 files · 6 commits · closed without mergingWhat this does
Makes
cargo test --workspaceandcargo run -p victory -- configpass on aLinux host. The tree was already mostly gated behind
cfg(windows); thiscloses the last leaks, and the Windows build is untouched: every edit is an
attribute or code moved verbatim under a gate.
cargo fmt --allwas also ran so the lint job passesWhat was leaking
victory-loaderdeclared thecrashmodule (VEH handler,windows_sys)unconditionally.
victory-gpureferencedhost::read_into,texture::committedandhost_resourcefrom code that compiles everywhere. On Linux a memory valuewait now counts as met, as unmapped memory already does.
victory-hleused the Win32 modal dialog, thexmemallocator hook,lifecycle's relaunch andfiles' drive mount from ungated paths. Thedialog is dismissed and a self-relaunch parks outside Windows.
apps/victory'stranslatecommand needs the host D3D compiler: likerun, it is present on Linux and says so.Tests
Unit tests that lean on a Windows host are gated with
cfg(all(test, windows)), following the pattern the tree already uses: the loader and PEtests parse the host's own test binary as a PE image (an ELF on Linux), and
two kernel tests assume Windows path semantics. Everything else runs on both:
23 test targets, 0 failures.
Hygiene
cargo check/clippy --workspace --all-targets,plain and
--all-features. Deps that only the Windows modules use (anyhow,tracing, miniz_oxide, opus-pure, victory-core, victory-pipeline,
victory-shader) moved under the existing
cfg(windows)target sections.fetch_updatekept with#[allow(deprecated)]:try_updateis newer thanthe pinned 1.98 toolchain.
Cargo.lockunchanged;--lockedpasses.Still Windows-only
Actually running a title: it needs host D3D12 and the Windows loader. Linux
gets the build, the tests, and the file-side commands —
config,inspect,census,lib-exports,shader-info.This PR was AI assisted
@ericomeehan on GitHub · 2026-11-24 22:28 UTC · original
The CI changes look careful: actions pinned by commit SHA,
permissions: contents: readkept, no secrets, and the concurrency group fixed for pull requests. Three things to check:cargo fmt --all -- --checkis a new gate. The workspace may not be rustfmt-clean atmain(anAGENTS.mddraft upstream, Marvisak/VIctory#1707, says a fullcargo fmtis avoided because of that, and this fork has added a lot of code since). Ifmaindoesn't pass it today, every open PR goes red once this lands. Worth running it onmainfirst, or landing the formatting separately.actions-rust-lang/setup-rust-toolchainin place ofrustup toolchain installplusSwatinem/rust-cache: it readsrust-toolchain.tomland caches by default, so the pinned 1.98.1 toolchain should still apply. Worth confirming in the first run's log that it isn't picking up stable.ci.yml(a Linux cross-compile job), so the two will conflict; #37 and the Wine fixes (#20, #28, #127) overlap with the Linux goal too.Written with an AI assistant (Claude).
@Yoshi-233 on GitHub · 2026-11-25 02:49 UTC · original
Independent Linux compilation check at your PR head
072b1e3bfa45, with Rust 1.98.1 on Ubuntu 24.04.5 x86-64:cargo check --locked --workspace --all-targetsexited 0, including the CLI, GPU, HLE, pipeline and xtask crates. The all-targets check compiled the Linux test targets too. This result is for compilation; it does not exercise the Windows runtime paths.@ErRusso on GitHub · 2026-11-24 23:45 UTC · original · requested changes
Reviewed at
7c936abagainst2119b0e.Linux build/test gating is sound:
cargo test --workspace --lockedpasses on this Linux host (all targets green; 170 in victory-shader, 48 in victory-hle, etc.), and the Windows-only paths are gated without changing the Windows build.Blocking: the new CI
fmtstep fails on this branch.cargo fmt --all -- --checkexits 1 with a large diff (12k lines of formatting output, starting atapps/victory/src/main.rs). Since the PR addscargo fmt --all -- --checkto CI, either runcargo fmt --alland commit the result, or drop the fmt step. As written, the new lint job cannot pass.Also check the
ubuntu-latestmatrix job: the workspace tests pass here, but the job needs the pinned toolchain and any system deps; it is otherwise reasonable.@ErRusso on GitHub · 2026-11-25 11:15 UTC · original · approved these changes
Reviewed at
072b1e3. The formatting blocker is resolved:cargo fmt --all -- --checknow exits 0 with no diff on this branch. The only commit after my review isFormat all files, so the gating and test results from the previous review still hold.cargo check --locked --workspace --all-targetsat this same head passes.The PR is currently
CONFLICTINGwithmain; please rebase before merging. With that, the Linux gating and the CI changes are good to go.Pull request closed