Linux: main does not build (E0425 in victory-gpu); with #39 the workspace builds and 156 tests pass #90

Open
opened 2026-11-26 03:49:54 +00:00 by github-bot · 10 comments
Owner

@⁠DaviTostes on GitHub · 2026-11-24 00:22 UTC · original

Linux build/test state (tracking, not a support request)

Measured on Arch Linux x86_64 with the pinned toolchain (rust-toolchain.toml, rustc 1.98.1), no game data and no victory.toml:

  • main 97c78d1 does not build on Linux. cargo build -p victory-gpu stops at
    error[E0425]: cannot find function 'host_resource' in this scope
    (crates/victory-gpu/src/resource.rs:284), so cargo test --workspace cannot start.
  • With #39 merged on top (clean), the workspace builds and the tests pass: cargo test --workspace → 156 passed, 0 failed, 3 ignored (all test binaries).
  • So for anyone working from Linux today, #39 is the prerequisite for any test run. If #39 lands, this issue can close with a one-line note.

Running the title on Linux

The runtime is D3D12, so a Linux run would go through Wine/Proton + vkd3d-proton. Open work that touches that path already tracks itself in #41 (WARP adapter rejection under Proton), #53 (xmem commit under Wine), #76 (physical-page runs over placeholders); there is no official Linux support claimed. This issue is only about the build and test state above so contributors do not rediscover the E0425.

No game data, no keys, no executable content. AI-assisted (DeepSeek V4.1 Flash coding agent).

**@⁠DaviTostes** on GitHub · 2026-11-24 00:22 UTC · [original](https://github.com/Marvisak/VIctory/issues/90) ### Linux build/test state (tracking, not a support request) Measured on Arch Linux x86_64 with the pinned toolchain (`rust-toolchain.toml`, rustc 1.98.1), no game data and no `victory.toml`: - **`main` `97c78d1` does not build on Linux.** `cargo build -p victory-gpu` stops at `error[E0425]: cannot find function 'host_resource' in this scope` (`crates/victory-gpu/src/resource.rs:284`), so `cargo test --workspace` cannot start. - **With #39 merged on top (clean), the workspace builds and the tests pass:** `cargo test --workspace` → **156 passed, 0 failed, 3 ignored** (all test binaries). - So for anyone working from Linux today, #39 is the prerequisite for any test run. If #39 lands, this issue can close with a one-line note. ### Running the title on Linux The runtime is D3D12, so a Linux run would go through Wine/Proton + vkd3d-proton. Open work that touches that path already tracks itself in #41 (WARP adapter rejection under Proton), #53 (xmem commit under Wine), #76 (physical-page runs over placeholders); there is no official Linux support claimed. This issue is only about the **build and test** state above so contributors do not rediscover the E0425. No game data, no keys, no executable content. AI-assisted (DeepSeek V4.1 Flash coding agent).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:49:54 +00:00
Author
Owner

@⁠Quat3rnion on GitHub · 2026-11-24 00:37 UTC · original

The Linux build failure is fixed in #112. Verified on Linux with the pinned toolchain: cargo test --workspace --locked reports 156 passed, 0 failed, 3 ignored. This tracking issue can close once #112 lands.

**@⁠Quat3rnion** on GitHub · 2026-11-24 00:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/90#issuecomment-7118270228) The Linux build failure is fixed in #112. Verified on Linux with the pinned toolchain: `cargo test --workspace --locked` reports 156 passed, 0 failed, 3 ignored. This tracking issue can close once #112 lands.
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 00:45 UTC · original

Ran the Windows build under Wine as the only way to execute the host-GPU tests on Linux. Environment: Arch Linux x86_64, Wine 11.22, vkd3d-proton 3.1, AMD RX 9060 XT (RADV 26.3.1); build of main 7d33c46 with cargo xwin ... --target x86_64-pc-windows-msvc (cargo-xwin 0.24.1). No game data, no victory.toml.

  • victory_gpu: 36 passed, 3 failed.
  • Whole workspace (Windows test executables under Wine): 258 passed, 10 failed, 3 ignored. Most of the extra failures are Wine gaps, not project ones: load_probe spawns cargo from inside Wine (Invalid handle), xtask policy spawns git (program not found), victory-hle only_loopback_is_reachable needs WSAConnectByList (same class as #118), victory-shader stub_pipeline_is_created runs without dxil.dll.

GPU failures:

  1. resource::tests::buffer_data_reaches_the_host_texture — a real portability bug, filed as #128: copy_mapped's VirtualQuery guard sees vkd3d-mapped memory as MEM_FREE, so the deferred upload copy is skipped and the texture stays zero. Passing title_dst=false locally makes the test pass.
  2. indirect::tests::argument_clamp_builds — Wine's builtin d3dcompiler_47 cannot compile the clamp (E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'), so clamp() is None and indirect execution is dropped at runtime. A native Microsoft d3dcompiler_47.dll in the prefix is the likely workaround.
  3. pipeline::library::tests::a_rejected_blob_gives_an_empty_library — vkd3d-proton returns E_INVALIDARG when creating the empty pipeline library, so open() returns None; production handles that (no cache), only the test's expectation differs.

With #112 tested here at 165 passed / 0 failed / 3 ignored and cargo fmt --check clean, #39 and this issue should both be closable once #112 lands.

No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).

**@⁠DaviTostes** on GitHub · 2026-11-24 00:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/90#issuecomment-7118404004) Ran the Windows build under Wine as the only way to execute the host-GPU tests on Linux. Environment: Arch Linux x86_64, Wine 11.22, **vkd3d-proton 3.1**, AMD RX 9060 XT (RADV 26.3.1); build of `main` `7d33c46` with `cargo xwin ... --target x86_64-pc-windows-msvc` (cargo-xwin 0.24.1). No game data, no `victory.toml`. - **`victory_gpu`: 36 passed, 3 failed.** - Whole workspace (Windows test executables under Wine): **258 passed, 10 failed, 3 ignored**. Most of the extra failures are Wine gaps, not project ones: `load_probe` spawns `cargo` from inside Wine (`Invalid handle`), `xtask policy` spawns `git` (`program not found`), `victory-hle` `only_loopback_is_reachable` needs `WSAConnectByList` (same class as #118), `victory-shader` `stub_pipeline_is_created` runs without `dxil.dll`. GPU failures: 1. **`resource::tests::buffer_data_reaches_the_host_texture`** — a real portability bug, filed as **#128**: `copy_mapped`'s `VirtualQuery` guard sees vkd3d-mapped memory as `MEM_FREE`, so the deferred upload copy is skipped and the texture stays zero. Passing `title_dst=false` locally makes the test pass. 2. `indirect::tests::argument_clamp_builds` — Wine's builtin `d3dcompiler_47` cannot compile the clamp (`E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'`), so `clamp()` is `None` and indirect execution is dropped at runtime. A native Microsoft `d3dcompiler_47.dll` in the prefix is the likely workaround. 3. `pipeline::library::tests::a_rejected_blob_gives_an_empty_library` — vkd3d-proton returns `E_INVALIDARG` when creating the empty pipeline library, so `open()` returns `None`; production handles that (no cache), only the test's expectation differs. With #112 tested here at 165 passed / 0 failed / 3 ignored and `cargo fmt --check` clean, #39 and this issue should both be closable once #112 lands. No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
Author
Owner

@⁠SkippySteve on GitHub · 2026-11-24 00:58 UTC · original

#149 documents this for contributors: running the tests on Linux (until #39/#112 land), cross-building victory.exe, and running it under Proton. Docs only.

**@⁠SkippySteve** on GitHub · 2026-11-24 00:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/90#issuecomment-7118620878) #149 documents this for contributors: running the tests on Linux (until #39/#112 land), cross-building `victory.exe`, and running it under Proton. Docs only.
Author
Owner

@⁠SkippySteve on GitHub · 2026-11-24 01:41 UTC · original

#235 is a minimal rebase of the #39 gates onto current main (d2a4bae). On Arch, cargo test --workspace gives 162 passed, 0 failed, 3 ignored.

**@⁠SkippySteve** on GitHub · 2026-11-24 01:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/90#issuecomment-7119345608) #235 is a minimal rebase of the #39 gates onto current main (d2a4bae). On Arch, `cargo test --workspace` gives 162 passed, 0 failed, 3 ignored.
Author
Owner

@⁠yeifer125 on GitHub · 2026-11-24 08:35 UTC · original

Independent confirmation from a fresh Linux build attempt (2026-11-25)

Built main today on Kali (rustc 1.97.1, distro) and hit the same E0425 (host_resource, resource.rs:284).

Where the cascade ends

After locally stubbing that (and gating super::xmem in victory-hle), the build moves into windows-future and dies with 12-16 errors:

error[E0425]: cannot find type `IMarshal` in module `windows_core::imp`
error[E0425]: cannot find function `marshaler` in module `windows_core::imp`

Root cause (verified in crate source, not the lockfile)

windows-core 0.61.2 and 0.62.2 only compile their COM plumbing on Windows:

// $CARGO/registry/.../windows-core-0.62.2/src/imp/mod.rs (line 1-2)
#[cfg(windows)]
include!("windows.rs");

...and windows.rs (line 10-11) is where marshaler lives:

mod marshaler;
pub use marshaler::*;

So on Linux imp::IMarshal / imp::marshaler simply do not exist, and windows-future (0.2.1 with core 0.61, 0.3.2 with core 0.62) cannot compile. Tested 0.61.3 and 0.62.2 + fresh Cargo.lock: identical.

Impact for the "native runtime, no Wine" goal (#526)

Any native-Linux victory needs either:

  1. a patched/vendored windows-core that exposes marshaler off-cfg(windows) (with a std-only implementation), or
  2. dropping windows-future from the native path.

Happy to push the 3 local gates we already wrote (host_resource stub, view_format split, xmem ungate) as a PR if useful - they track what #39 did, so no duplication intended, just confirmation the failures reproduce on 1.97.1.


Tested: Kali rolling, rustc 1.97.1 (distro tarball), no game data, workspace @ 551cbeb-equivalent main.

**@⁠yeifer125** on GitHub · 2026-11-24 08:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/90#issuecomment-7126322905) ## Independent confirmation from a fresh Linux build attempt (2026-11-25) Built `main` today on Kali (rustc 1.97.1, distro) and hit the **same E0425** (`host_resource`, `resource.rs:284`). ### Where the cascade ends After locally stubbing that (and gating `super::xmem` in `victory-hle`), the build moves into `windows-future` and dies with 12-16 errors: ``` error[E0425]: cannot find type `IMarshal` in module `windows_core::imp` error[E0425]: cannot find function `marshaler` in module `windows_core::imp` ``` ### Root cause (verified in crate source, not the lockfile) `windows-core` 0.61.2 **and** 0.62.2 only compile their COM plumbing on Windows: ``` // $CARGO/registry/.../windows-core-0.62.2/src/imp/mod.rs (line 1-2) #[cfg(windows)] include!("windows.rs"); ``` ...and `windows.rs` (line 10-11) is where `marshaler` lives: ```rust mod marshaler; pub use marshaler::*; ``` So on Linux `imp::IMarshal` / `imp::marshaler` simply do not exist, and `windows-future` (0.2.1 with core 0.61, 0.3.2 with core 0.62) cannot compile. Tested 0.61.3 and 0.62.2 + fresh `Cargo.lock`: identical. ### Impact for the "native runtime, no Wine" goal (#526) Any native-Linux victory needs either: 1. a patched/vendored `windows-core` that exposes `marshaler` off-`cfg(windows)` (with a std-only implementation), or 2. dropping `windows-future` from the native path. Happy to push the 3 local gates we already wrote (`host_resource` stub, `view_format` split, `xmem` ungate) as a PR if useful - they track what #39 did, so no duplication intended, just confirmation the failures reproduce on 1.97.1. --- Tested: Kali rolling, rustc 1.97.1 (distro tarball), no game data, workspace @ 551cbeb-equivalent `main`.
Author
Owner

@⁠DaniiL35 on GitHub · 2026-11-24 14:05 UTC · original

For anyone tracking the E0425 host_resource error in crates/victory-gpu/src/resource.rs:284 on current main:

Issue #892 (JulianChavezdev:linux-ci-and-pe-tests, commit f8c107f5) has rebased and cleaned up this exact gating on top of current main.

It gates view_format in victory-gpu (whose only caller is RtvRecord::host_desc, already #[cfg(windows)]), replaces the Windows own_image() test runner assumptions in victory-pe with procedural synthetic PE DLL fixtures (import_image()), gates host-only routines in victory-hle, and sets up a dedicated linux CI job testing:

cargo test -p victory-core -p victory-pe -p victory-formats -p victory-shader \
  -p victory-pipeline -p victory-game -p xtask -p victory-gpu -p victory-hle --locked

Verified on non-Windows (Darwin / POSIX) that this cleanly resolves the E0425 and allows all host-independent crates to compile and pass tests out of the box.

**@⁠DaniiL35** on GitHub · 2026-11-24 14:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/90#issuecomment-7133832969) For anyone tracking the E0425 `host_resource` error in `crates/victory-gpu/src/resource.rs:284` on current `main`: Issue #892 (`JulianChavezdev:linux-ci-and-pe-tests`, commit `f8c107f5`) has rebased and cleaned up this exact gating on top of current `main`. It gates `view_format` in `victory-gpu` (whose only caller is `RtvRecord::host_desc`, already `#[cfg(windows)]`), replaces the Windows `own_image()` test runner assumptions in `victory-pe` with procedural synthetic PE DLL fixtures (`import_image()`), gates host-only routines in `victory-hle`, and sets up a dedicated `linux` CI job testing: ```sh cargo test -p victory-core -p victory-pe -p victory-formats -p victory-shader \ -p victory-pipeline -p victory-game -p xtask -p victory-gpu -p victory-hle --locked ``` Verified on non-Windows (Darwin / POSIX) that this cleanly resolves the E0425 and allows all host-independent crates to compile and pass tests out of the box.
Author
Owner

@⁠Headache3318 on GitHub · 2026-11-24 14:23 UTC · original

Merged-with-main Linux verdict matrix for the four #90-fix PRs — squashed onto main ffe310eb in fresh worktrees, committed locally (unpushed), then cargo check --workspace --all-targets, cargo test --workspace --locked, cargo clippy --workspace --all-targets -- -D warnings on x86_64-unknown-linux-gnu with the pinned 1.98.1, all commands un-piped with exit codes captured. main alone reproduces the baseline exactly: E0425 host_resource at crates/victory-gpu/src/resource.rs:284.

PR head tested local merge SHA check test pass/fail/ignored clippy -D warnings clears #90 on Linux
#235 5843a58e (has since moved again to 5d40ad81; re-verification running) 7bc73dac 0 240/0/5 0 YES
#523 00122661 437e27db 0 162/0/13 101 — 32 unused-import errors, first unused import: OnceLock at victory-gpu/src/pipeline.rs:21 compiles yes, clippy gate no
#112 ee63908d db310d35 0 165/0/3 101 — 33 unused-import errors, first-error line identical to #523's compiles yes, clippy gate no
#232 ab9dec3a (has since moved to 2c83383a; re-verification running) 6e962fdf 101 — E0425 at resource.rs:284, byte-identical to the baseline not run not run NO

Two things no earlier post on this lane names: #523 and #112 clear the #90 compile gate but leave Windows-only-used imports dangling on Linux — 32 and 33 -D unused-imports errors (OnceLock etc., used only inside #[cfg(windows)] members) that a Linux CI lane would catch, and nothing in docs/ or ci.yml says clippy --all-targets -D warnings must pass on Linux; and stacking all four onto ffe310e conflicts — #523 fails git apply --3way at ci.yml, apps/victory/src/translate.rs and resource.rs:279, exactly the regions #235 already rewrote — with #523 and #112 showing identical clippy signatures, so "merge all four" is likely the wrong frame and one of #112/#523 on top of #235's gating is the real question. #232's own patch comments concede its --skip flags are no-ops, so as CI scaffolding alone it leaves the workspace still uncompilable on Linux. Not tested here: Windows behavior (CI already covers that), native execution, or the current heads after the two force-pushes. AI-assisted; Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04; all merge commits local and unpushed. Commands: git fetch --depth=1 upstream refs/pull/<N>/head; git diff upstream/main FETCH_HEAD > p.patch; git apply; cargo check/test/clippy as listed, exit codes captured un-piped.

**@⁠Headache3318** on GitHub · 2026-11-24 14:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/90#issuecomment-7134288452) **Merged-with-main Linux verdict matrix for the four #90-fix PRs** — squashed onto `main` `ffe310eb` in fresh worktrees, committed locally (unpushed), then `cargo check --workspace --all-targets`, `cargo test --workspace --locked`, `cargo clippy --workspace --all-targets -- -D warnings` on `x86_64-unknown-linux-gnu` with the pinned 1.98.1, all commands un-piped with exit codes captured. `main` alone reproduces the baseline exactly: E0425 `host_resource` at `crates/victory-gpu/src/resource.rs:284`. | PR | head tested | local merge SHA | check | test pass/fail/ignored | clippy -D warnings | clears #90 on Linux | |---|---|---|---|---|---|---| | #235 | `5843a58e` (has since moved again to `5d40ad81`; re-verification running) | `7bc73dac` | 0 | 240/0/5 | 0 | YES | | #523 | `00122661` | `437e27db` | 0 | 162/0/13 | 101 — 32 unused-import errors, first `unused import: OnceLock` at `victory-gpu/src/pipeline.rs:21` | compiles yes, clippy gate no | | #112 | `ee63908d` | `db310d35` | 0 | 165/0/3 | 101 — 33 unused-import errors, first-error line identical to #523's | compiles yes, clippy gate no | | #232 | `ab9dec3a` (has since moved to `2c83383a`; re-verification running) | `6e962fdf` | 101 — E0425 at `resource.rs:284`, byte-identical to the baseline | not run | not run | NO | Two things no earlier post on this lane names: **#523 and #112 clear the #90 compile gate but leave Windows-only-used imports dangling on Linux** — 32 and 33 `-D unused-imports` errors (`OnceLock` etc., used only inside `#[cfg(windows)]` members) that a Linux CI lane would catch, and nothing in `docs/` or `ci.yml` says `clippy --all-targets -D warnings` must pass on Linux; and **stacking all four onto `ffe310e` conflicts** — #523 fails `git apply --3way` at `ci.yml`, `apps/victory/src/translate.rs` and `resource.rs:279`, exactly the regions #235 already rewrote — with #523 and #112 showing identical clippy signatures, so "merge all four" is likely the wrong frame and one of #112/#523 on top of #235's gating is the real question. #232's own patch comments concede its `--skip` flags are no-ops, so as CI scaffolding alone it leaves the workspace still uncompilable on Linux. Not tested here: Windows behavior (CI already covers that), native execution, or the current heads after the two force-pushes. AI-assisted; Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04; all merge commits local and unpushed. Commands: `git fetch --depth=1 upstream refs/pull/<N>/head; git diff upstream/main FETCH_HEAD > p.patch; git apply; cargo check/test/clippy as listed, exit codes captured un-piped.`
Author
Owner

@⁠elgreams on GitHub · 2026-11-24 15:07 UTC · original

Linux test report: main and the five Linux-build PRs

Setup: Linux Mint 22.1 (kernel 6.8), rustc 1.98.1 (the pinned toolchain), x86_64, no game files, no victory.toml.
Method: cargo check --workspace --tests --locked, then cargo test -p <crate> --locked --no-fail-fast for each crate separately with a 300 s timeout, so one hanging test can't hide the other crates.

Ref Builds Tests Notes
main ffe310eb2 ❌ — E0425 host_resource in victory-gpu. victory-hle and victory don't build. victory-loader (3) and victory-pe (4) fail by parsing the ELF test binary as a PE
#232 2c83383a4 ❌ — Same as main. Expected, since it's a CI subset and doesn't fix the build
#235 5d40ad817 ✅ ⚠️ Every crate passes except victory-gpu: 3 tests fail and 1 hangs (details below)
#523 001226617 ✅ ✅ Also merged onto current main (ffe310eb2): clean auto-merge, builds, all crates pass. gpu 24, hle 48 (3 ignored), shader 96 (1 ignored), formats 23 (4 ignored), core 11, pipeline 4, game 2, xtask 4. loader (3) and pe (4) are ignored off Windows
#112 ee63908d5 ✅ ✅ Passes on its own base, which is 160 commits behind main. Conflicts with main, so not tested merged
#526 d46727fe7 ✅ ✅ Passes on its own base, 131 behind main (hle 226, loader 35). Conflicts with main, so not tested merged

#235: victory-gpu tests depend on test order

These four tests fail or hang under a normal cargo test run, and each one passes when run alone:

  • queue::host_free_tests::fence_waits_complete_without_blocking_the_queue: fails at queue.rs:594, left: -2147467263 (E_NOTIMPL), right: -2147024809 (E_INVALIDARG)
  • queue::host_free_tests::page_mapping_batches_run_through_the_runtime_mapper: fails
  • queue::host_free_tests::present_succeeds_without_copying_to_a_window: fails
  • queue::host_free_tests::timestamp_frequency_refuses_null_and_reports_the_rate: hangs, which would stall a CI job

Running each test alone after every other test in the crate, I found the one that causes it: device::tests::newer_device_levels_are_the_same_device. Any of the four fails or hangs when it runs after that test:

victory_gpu-<hash> --test-threads=1 --exact \
  device::tests::newer_device_levels_are_the_same_device \
  queue::host_free_tests::fence_waits_complete_without_blocking_the_queue

Likely cause, from reading the code: that test creates the device as ID3D12Device11, which sets the process-wide NEWER flag (device.rs:154). Every queue created after that gets the newer layout (newer_slot, slots from 0x70 moved by two). The new host_free_tests call fixed offsets such as 0x78, 0x80 and 0x100, so after the flag is set they hit different methods. Using newer_slot and crate::device::newer() in those tests, or not letting tests share the flag, should fix it. I haven't tried a fix, and I haven't checked whether the same order dependence affects the Windows-only tests.

Summary

On Linux, #523 is the only one I could confirm builds and passes all tests merged onto current main. #235 builds but needs the test-order fix above. #112 and #526 pass on their own bases but need a rebase first.

**@⁠elgreams** on GitHub · 2026-11-24 15:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/90#issuecomment-7135504524) ## Linux test report: `main` and the five Linux-build PRs **Setup:** Linux Mint 22.1 (kernel 6.8), rustc 1.98.1 (the pinned toolchain), x86_64, no game files, no `victory.toml`. **Method:** `cargo check --workspace --tests --locked`, then `cargo test -p <crate> --locked --no-fail-fast` for each crate separately with a 300 s timeout, so one hanging test can't hide the other crates. | Ref | Builds | Tests | Notes | |---|---|---|---| | `main` `ffe310eb2` | ❌ | — | E0425 `host_resource` in `victory-gpu`. `victory-hle` and `victory` don't build. `victory-loader` (3) and `victory-pe` (4) fail by parsing the ELF test binary as a PE | | #232 `2c83383a4` | ❌ | — | Same as `main`. Expected, since it's a CI subset and doesn't fix the build | | **#235** `5d40ad817` | ✅ | ⚠️ | Every crate passes except `victory-gpu`: **3 tests fail and 1 hangs** (details below) | | **#523** `001226617` | ✅ | ✅ | Also **merged onto current `main` (`ffe310eb2`)**: clean auto-merge, builds, **all crates pass**. gpu 24, hle 48 (3 ignored), shader 96 (1 ignored), formats 23 (4 ignored), core 11, pipeline 4, game 2, xtask 4. `loader` (3) and `pe` (4) are ignored off Windows | | #112 `ee63908d5` | ✅ | ✅ | Passes on its own base, which is 160 commits behind `main`. Conflicts with `main`, so not tested merged | | #526 `d46727fe7` | ✅ | ✅ | Passes on its own base, 131 behind `main` (hle 226, loader 35). Conflicts with `main`, so not tested merged | ### #235: `victory-gpu` tests depend on test order These four tests fail or hang under a normal `cargo test` run, and **each one passes when run alone**: - `queue::host_free_tests::fence_waits_complete_without_blocking_the_queue`: fails at `queue.rs:594`, `left: -2147467263` (E_NOTIMPL), `right: -2147024809` (E_INVALIDARG) - `queue::host_free_tests::page_mapping_batches_run_through_the_runtime_mapper`: fails - `queue::host_free_tests::present_succeeds_without_copying_to_a_window`: fails - `queue::host_free_tests::timestamp_frequency_refuses_null_and_reports_the_rate`: **hangs**, which would stall a CI job Running each test alone after every other test in the crate, I found the one that causes it: `device::tests::newer_device_levels_are_the_same_device`. Any of the four fails or hangs when it runs after that test: ``` victory_gpu-<hash> --test-threads=1 --exact \ device::tests::newer_device_levels_are_the_same_device \ queue::host_free_tests::fence_waits_complete_without_blocking_the_queue ``` Likely cause, from reading the code: that test creates the device as `ID3D12Device11`, which sets the process-wide `NEWER` flag (`device.rs:154`). Every queue created after that gets the newer layout (`newer_slot`, slots from 0x70 moved by two). The new `host_free_tests` call fixed offsets such as 0x78, 0x80 and 0x100, so after the flag is set they hit different methods. Using `newer_slot` and `crate::device::newer()` in those tests, or not letting tests share the flag, should fix it. I haven't tried a fix, and I haven't checked whether the same order dependence affects the Windows-only tests. ### Summary On Linux, **#523 is the only one I could confirm builds and passes all tests merged onto current `main`.** #235 builds but needs the test-order fix above. #112 and #526 pass on their own bases but need a rebase first.
Author
Owner

@⁠elgreams on GitHub · 2026-11-24 15:45 UTC · original

Correction to my report above: I ran check and test but not clippy. With cargo clippy --workspace --all-targets --locked -- -D warnings on #523 merged onto main ffe310eb2, Linux fails with about 28 errors: 9 functions never used, 7 unused variables, 8 unused imports, 3 constants never used and 1 unneeded mut. Most of them are only used in #[cfg(windows)] code. That confirms @⁠Headache3318's finding. So #523 builds and its tests pass, but it would fail a Linux CI clippy gate until those are gated too.

**@⁠elgreams** on GitHub · 2026-11-24 15:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/90#issuecomment-7136571417) Correction to my report above: I ran `check` and `test` but not clippy. With `cargo clippy --workspace --all-targets --locked -- -D warnings` on #523 merged onto `main` `ffe310eb2`, Linux fails with about 28 errors: 9 functions never used, 7 unused variables, 8 unused imports, 3 constants never used and 1 unneeded `mut`. Most of them are only used in `#[cfg(windows)]` code. That confirms @⁠Headache3318's finding. So #523 builds and its tests pass, but it would fail a Linux CI clippy gate until those are gated too.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:47 UTC · original

Automated triage for the maintainers.

Still true on current main: in crates/victory-gpu/src/resource.rs, view_format is compiled on every target but calls host_resource, which is #[cfg(windows)], so victory-gpu (and the workspace) does not build off Windows. The project targets Windows hosts only, so building and testing on Linux is a contributor convenience; whether to support it is the maintainers' call. Open PR #523 (needs a rebase) gates these uses; #235 was closed. The comments above also note that a Linux clippy run with -D warnings would need more gating.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/90#issuecomment-7149952590) <!-- victory-issue-triage v1 verdict=confirmed seen=2026-11-24T15:45:50Z at=2026-11-25T01:48:50Z --> Automated triage for the maintainers. Still true on current `main`: in `crates/victory-gpu/src/resource.rs`, `view_format` is compiled on every target but calls `host_resource`, which is `#[cfg(windows)]`, so `victory-gpu` (and the workspace) does not build off Windows. The project targets Windows hosts only, so building and testing on Linux is a contributor convenience; whether to support it is the maintainers' call. Open PR #523 (needs a rebase) gates these uses; #235 was closed. The comments above also note that a Linux clippy run with `-D warnings` would need more gating. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
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#90
No description provided.