Linux build: main builds, lints and tests off Windows again (carries #2334, fixes #90) #2890

Open
github-bot wants to merge 8 commits from github-bot/gh-2890 into main AGit
Owner

@⁠arogan178 on GitHub · 2026-11-25 23:09 UTC · original
arogan178:linux-build-carry → main · +335 −36 · 25 files · 8 commits · open

main does not build on Linux (#90): cargo check --workspace --all-targets at 842b0cb stops with 21 errors in victory-gpu and victory-shader. That blocks contributors on Linux from running the tests at all.

This carries #2334, which conflicts with main, rebased onto 842b0cb. Its commits keep their authors. #2334 in turn carries #1017; its description lists what the gates do.

What is new here

  • Rebase conflict in xgameui.rs. main added a password parameter to ask. The off-Windows ask takes it too and still cancels.
  • 0721c05: gates for code main gained after #2334.
    • descriptor::fallback_samplers is re-exported on Windows only, beside its host module.
    • a_released_view_heap_drops_its_page_table runs on Windows only. It reads the host heap and memory.
    • Off Windows, the audio heap logs a host-allocator refusal with tracing::warn!, because xmem is Windows-only.
    • password_scope_masks_the_edit_control checks the edit-control style on Windows only. The scope-to-password check still runs everywhere.
    • In the wave64 validator test, lowered is mutable on Windows only, so unused_mut is allowed off Windows.
  • 5333d11: a Linux CI job, so main stays building off Windows. Since #2334 was opened, main broke the Linux build twice more. The job runs on ubuntu-latest with the same clippy gates and tests as the Windows job. The job itself is from #2670.

No behaviour changes on Windows.

Proof

On CachyOS Linux, Rust 1.98.1:

  • cargo clippy --workspace --all-targets --locked -- -D warnings: clean. The same command with --all-features is also clean.
  • cargo test --workspace --locked: 458 passed, 0 failed.
  • CI on this PR: the new linux job and the Windows check job both pass.
  • main at 842b0cb: cargo check --workspace --all-targets fails with 21 errors.
  • Windows target, cross-checked from Linux (--target x86_64-pc-windows-msvc, with clang-cl for blake3's C files): both CI clippy gates are clean. CI here runs the Windows tests.
  • cargo xtask policy: 191 files ok.
**@⁠arogan178** on GitHub · 2026-11-25 23:09 UTC · [original](https://github.com/Marvisak/VIctory/pull/2890) `arogan178:linux-build-carry` → `main` · +335 −36 · 25 files · 8 commits · open `main` does not build on Linux (#90): `cargo check --workspace --all-targets` at `842b0cb` stops with 21 errors in `victory-gpu` and `victory-shader`. That blocks contributors on Linux from running the tests at all. This carries #2334, which conflicts with `main`, rebased onto `842b0cb`. Its commits keep their authors. #2334 in turn carries #1017; its description lists what the gates do. ## What is new here - **Rebase conflict in `xgameui.rs`.** `main` added a `password` parameter to `ask`. The off-Windows `ask` takes it too and still cancels. - **`0721c05`: gates for code `main` gained after #2334.** - `descriptor::fallback_samplers` is re-exported on Windows only, beside its `host` module. - `a_released_view_heap_drops_its_page_table` runs on Windows only. It reads the host heap and `memory`. - Off Windows, the audio heap logs a host-allocator refusal with `tracing::warn!`, because `xmem` is Windows-only. - `password_scope_masks_the_edit_control` checks the edit-control style on Windows only. The scope-to-password check still runs everywhere. - In the wave64 validator test, `lowered` is mutable on Windows only, so `unused_mut` is allowed off Windows. - **`5333d11`: a Linux CI job**, so `main` stays building off Windows. Since #2334 was opened, `main` broke the Linux build twice more. The job runs on `ubuntu-latest` with the same clippy gates and tests as the Windows job. The job itself is from #2670. No behaviour changes on Windows. ## Proof On CachyOS Linux, Rust 1.98.1: - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. The same command with `--all-features` is also clean. - `cargo test --workspace --locked`: 458 passed, 0 failed. - CI on this PR: the new `linux` job and the Windows `check` job both pass. - `main` at `842b0cb`: `cargo check --workspace --all-targets` fails with 21 errors. - Windows target, cross-checked from Linux (`--target x86_64-pc-windows-msvc`, with `clang-cl` for `blake3`'s C files): both CI clippy gates are clean. CI here runs the Windows tests. - `cargo xtask policy`: 191 files ok.
`main` does not build on non-Windows hosts (CI runs only on
windows-latest): `victory-gpu` calls Windows-only items from portable
code, and Windows-only callers leave portable helpers unused.

- victory-gpu: gate Windows-only items (view_format, samplers, index,
  forget, view, rtv_record, dsv_record, tagged_record, pc_format,
  SRGB, DEPTH_FORMATS, PlacedFootprint::bytes, texture_memory,
  take_indirect, UAV_BARRIER, presented, title_format) with
  #[cfg(windows)], some #[cfg(any(windows, test))]; the per-memory
  texture helpers (family, DEPTH, MemoryKey, memory_key, castable), the
  `switch` module and the loader's `publish` module stay built
  everywhere (their tests run on every host) and are allowed unused off
  Windows. The root-signature shim tests and the ID3D12Fence1 test,
  which drive Windows-only COM objects, are Windows-only.
- victory-gpu: silence unused parameters on the non-Windows paths of
  close/barrier/execute_indirect, matching reset().
- victory-hle: gate `function` (the System32 loader) and the
  Windows-only modules' imports; keep already-absolute and
  Windows-style absolute title paths on non-Windows hosts and resolve
  file names across both separators; gate the drive-over-folder mount
  test to Windows.
- victory-shader: gate the Windows-only imports of the emit tests;
  `Lowered::rovs` is read only by the GPU tests; the mesh test's
  program is built for the validator, which only Windows has.
- victory-loader/victory-pe: gate tests that read current_exe as PE.
- apps/victory: `translate --cache` (the warm-up and pre-build) fills
  the host's shader cache and pipeline library and is Windows-only;
  other hosts get an error saying so. Without the Windows DLLs, the
  validator and host pipelines are skipped with a note.

Linux: cargo build, cargo clippy --workspace --all-targets -D warnings
(default and --all-features) and cargo test --workspace --all-features
(26 suites, 394 passed) pass. Windows target (cargo-xwin): clippy
-D warnings, default and --all-features, passes. cargo xtask policy
passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On Windows the title-path shortcut returned an already-absolute path
unchanged, where `main` passed every path through `std::path::absolute`
(`GetFullPathNameW`: `/` becomes `\`, `..` is resolved), so a title
started as `C:/games/x/../game.exe` would read that raw string back
from `GetModuleFileName`. The shortcut now runs only on other hosts,
where a Windows-style path must not be joined to the host's current
directory; Windows behaves as before.

Tests: on Windows `C:/games/x/../game.exe` becomes `C:\games\game.exe`;
elsewhere drive-rooted, drive-root and UNC title paths are kept as
stored and a relative one is made absolute.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`image_named` took the file name from a split at `\` and `/` on every
host. Windows keeps `Path::file_name` now, so nothing changes there;
the split is for other hosts, whose `Path::file_name` splits only at
`/`. A test checks both on each host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
New code on main reaches items that are Windows-only off Windows:
texture_desc calls texture_memory (now Windows-only too), choose uses
IDLE_MS and IDLE_FRAMES (allowed unused off Windows, as choose and its
test need them), execute leaves `this` unused, and three new shader
tests validate DXIL, which only Windows has. Items only Windows code
uses, the new hold module among them, are allowed unused off Windows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The inner cfg(windows) block of a test that is already Windows-only,
and a cfg(windows) import in a module that already is, go. translate's
host checks (the Checks field and its use) are Windows-only, so the
stand-in Host off Windows keeps only `new`, which fails, and the
unreachable stub shaders are gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The fallback samplers, the view heap page-table test, the audio heap's
host-allocator report and the text-entry style test reach Windows-only
modules; the validator test's lowered DXIL is mutated on Windows only.
After #2670's job, with the same clippy gates as the Windows job.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:16:50 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-26 04:29 UTC · original

Automated triage for the maintainers.

Proposed close. Out of scope. This makes the workspace build and test off Windows, with stubs and cfg gates across victory-gpu, victory-hle, victory-shader and apps/victory, plus a new linux job (with a third-party cache action) in .github/workflows/ci.yml. Other platforms are outside this project's scope, CI changes are the maintainer's call, and by its own description it re-packages #2334, another contributor's open PR. If a Windows-side fix is mixed in, please send it as its own small PR with evidence.

CI: passing.

This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the triage: proposed close label.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-26 04:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/2890#issuecomment-7182641806) <!-- victory-triage v1 head=5333d11c08b0964ec5bcb1365c3829e05d0f96ae verdict=proposed-close at=2026-11-26T04:29:23Z --> Automated triage for the maintainers. **Proposed close.** **Out of scope.** This makes the workspace build and test off Windows, with stubs and `cfg` gates across `victory-gpu`, `victory-hle`, `victory-shader` and `apps/victory`, plus a new `linux` job (with a third-party cache action) in `.github/workflows/ci.yml`. Other platforms are outside this project's scope, CI changes are the maintainer's call, and by its own description it re-packages #2334, another contributor's open PR. If a Windows-side fix is mixed in, please send it as its own small PR with evidence. CI: passing. This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the `triage: proposed close` label. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2890/head:github-bot/gh-2890'
git switch 'github-bot/gh-2890'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2890'
git switch 'github-bot/gh-2890'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2890'
git switch 'github-bot/gh-2890'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2890'
git switch 'main'
git merge --squash 'github-bot/gh-2890'
git switch 'main'
git merge --ff-only 'github-bot/gh-2890'
git switch 'main'
git merge 'github-bot/gh-2890'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/Marvisak--VIctory!2890
No description provided.