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

Open
arogan178 wants to merge 8 commits from upstream-pr/2890 into main
arogan178 commented 2026-11-25 23:09:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by arogan178 on 2026-11-25T23:09:05Z.


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.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6615622185 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2890). Originally posted by [arogan178](https://github.com/arogan178) on 2026-11-25T23:09:05Z. --- `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.
kotekompotek commented 2026-11-26 00:03:03 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T23:37:10Z.

Review: COMMENTED


Scoped review: the Linux job mirrors the Windows one (clippy + all-features + tests), and the cfg-gating is mechanical — windows-only modules/import paths behind cfg(windows) with anyhow::Context split where needed. Catching non-Windows breakage in CI is worth the maintenance surface. LGTM.

<!-- greyfinch-sync:Marvisak/VIctory:review:6066498425 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2890#pullrequestreview-6066498425). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T23:37:10Z. **Review:** COMMENTED --- Scoped review: the Linux job mirrors the Windows one (clippy + all-features + tests), and the cfg-gating is mechanical — windows-only modules/import paths behind cfg(windows) with anyhow::Context split where needed. Catching non-Windows breakage in CI is worth the maintenance surface. LGTM.
fuzeofficlal commented 2026-11-26 00:03:03 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T23:52:59Z.

Review: COMMENTED


Verified head 5333d11c cleanly merged onto origin/main (63bcca43) on Windows 11 x64 (NVIDIA GeForce RTX 5090 + D3D12 WARP + VICTORY_D3D12_DEBUG=1).

Code & Windows Regression Review

  • All #[cfg(windows)] / #[cfg(not(windows))] gates preserve Windows behavior cleanly (victory-hle/src/runtime.rs keeps std::path::absolute on Windows; PE current_exe() self-parse tests and Windows-only API/UI tests are gated appropriately; non-Windows Validator/Host stubs return clear errors).
  • crates/victory-shader/src/emit/lower.rs is 520,798 B (+235 B vs 63bcca43), safely under the 512 KiB limit.
  • Cross-PR note (#2907): #2907 calls victory_gpu::adapter_identity(), victory_gpu::set_caption_status(...), and crate::prebuild::run(...) unconditionally from apps/victory/src/startup.rs, so whichever PR lands second will need non-Windows #[cfg] gates/stubs there.

Local Verification (Windows 11 x64)

  • cargo clippy --locked --workspace --all-targets -- -D warnings (default and --features victory-gpu/diagnostics): clean.
  • cargo xtask policy: 191 files ok.
  • Passed full unit + integration test suites for victory (14+4), victory-core (13), victory-formats (46), victory-game (15), victory-hle (154+2), victory-loader (35+4), victory-pe (36), victory-pipeline (8), xtask (6).
  • victory-gpu (VICTORY_D3D12_DEBUG=1, --features diagnostics): RTX 5090 root::tests 11/11; WARP host::tests + descriptor::host::tests 31/31, root/list/queue/fence/resource/descriptor 47/47, frame::tests 2/2, placed_uav_tests 1/1.
  • victory-shader: emit::lower::tests + emit::tests 50/50 passed.

Looks clean on the Windows side and ready to merge.

<!-- greyfinch-sync:Marvisak/VIctory:review:6066645293 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2890#pullrequestreview-6066645293). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-25T23:52:59Z. **Review:** COMMENTED --- Verified head `5333d11c` cleanly merged onto `origin/main` (`63bcca43`) on Windows 11 x64 (NVIDIA GeForce RTX 5090 + D3D12 WARP + `VICTORY_D3D12_DEBUG=1`). ### Code & Windows Regression Review - All `#[cfg(windows)]` / `#[cfg(not(windows))]` gates preserve Windows behavior cleanly (`victory-hle/src/runtime.rs` keeps `std::path::absolute` on Windows; PE `current_exe()` self-parse tests and Windows-only API/UI tests are gated appropriately; non-Windows `Validator`/`Host` stubs return clear errors). - `crates/victory-shader/src/emit/lower.rs` is `520,798` B (+235 B vs `63bcca43`), safely under the 512 KiB limit. - **Cross-PR note (`#2907`)**: `#2907` calls `victory_gpu::adapter_identity()`, `victory_gpu::set_caption_status(...)`, and `crate::prebuild::run(...)` unconditionally from `apps/victory/src/startup.rs`, so whichever PR lands second will need non-Windows `#[cfg]` gates/stubs there. ### Local Verification (Windows 11 x64) - `cargo clippy --locked --workspace --all-targets -- -D warnings` (default and `--features victory-gpu/diagnostics`): clean. - `cargo xtask policy`: `191 files ok`. - Passed full unit + integration test suites for `victory` (14+4), `victory-core` (13), `victory-formats` (46), `victory-game` (15), `victory-hle` (154+2), `victory-loader` (35+4), `victory-pe` (36), `victory-pipeline` (8), `xtask` (6). - `victory-gpu` (`VICTORY_D3D12_DEBUG=1`, `--features diagnostics`): RTX 5090 `root::tests` **11/11**; WARP `host::tests` + `descriptor::host::tests` **31/31**, `root/list/queue/fence/resource/descriptor` **47/47**, `frame::tests` **2/2**, `placed_uav_tests` **1/1**. - `victory-shader`: `emit::lower::tests` + `emit::tests` **50/50** passed. Looks clean on the Windows side and ready to merge.
Marvisak commented 2026-11-26 05:04:12 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T04:29:33Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7182641806 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2890#issuecomment-7182641806). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-26T04:29:33Z. --- <!-- 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2890:upstream-pr/2890'
git switch 'upstream-pr/2890'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2890'
git switch 'upstream-pr/2890'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2890'
git switch 'upstream-pr/2890'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2890'
git switch 'main'
git merge --squash 'upstream-pr/2890'
git switch 'main'
git merge --ff-only 'upstream-pr/2890'
git switch 'main'
git merge 'upstream-pr/2890'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!2888
No description provided.