Linux: finish the non-Windows build and tests #449

Open
iloveslopware wants to merge 2 commits from upstream-pr/449 into main
iloveslopware commented 2026-11-25 00:59:16 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by iloveslopware on 2026-11-25T00:59:16Z.


What this does

Completes the Windows gating the tree already started at module level, so the whole workspace builds, lints and tests on a Linux host with zero warnings — while staying identical on Windows: every edit adds cfg or moves code verbatim under one.

  • Items only the Windows host asks for are gated — hard where nothing else uses them, allow(dead_code) where the unit tests still do.
  • Test modules that need a Windows host are gated as a whole (root-signature blobs, PE round-trips of the test binary itself — an ELF off Windows — and Windows path semantics); their #[test] attributes stay for the Windows run.
  • victory translate refuses --validate and --pipelines off Windows with a message naming what each needs (dxil.dll; a D3D12 host), instead of not building there. A memory-value wait counts as met off Windows, as an unmapped one already does.

Verification

  • Linux: cargo clippy --workspace --all-targets --locked -- -D warnings passes on default features and on --all-features; cargo test --workspace --locked runs 294 tests, 0 failures (rebased on current main, a803c87).
  • Windows: cargo check --target x86_64-pc-windows-msvc --workspace --all-targets (clang-cl 23.1.5) is warning-free, so the CI gates' axis is unchanged.

No formatting changes: the tree is not rustfmt-clean, so the diff stays reviewable (21 files, +168/−63).

Related: #128 (same goal — this is the minimal, no-churn variant), #192 (test-warning subset), #37.

This PR was AI assisted (GLM via OpenCode), directed and verified by the account owner.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6594662816 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/449). Originally posted by [iloveslopware](https://github.com/iloveslopware) on 2026-11-25T00:59:16Z. --- ## What this does Completes the Windows gating the tree already started at module level, so the whole workspace builds, lints and tests on a Linux host with zero warnings — while staying identical on Windows: every edit adds cfg or moves code verbatim under one. - Items only the Windows host asks for are gated — hard where nothing else uses them, `allow(dead_code)` where the unit tests still do. - Test modules that need a Windows host are gated as a whole (root-signature blobs, PE round-trips of the test binary itself — an ELF off Windows — and Windows path semantics); their `#[test]` attributes stay for the Windows run. - `victory translate` refuses `--validate` and `--pipelines` off Windows with a message naming what each needs (dxil.dll; a D3D12 host), instead of not building there. A memory-value wait counts as met off Windows, as an unmapped one already does. ## Verification - Linux: `cargo clippy --workspace --all-targets --locked -- -D warnings` passes on default features and on `--all-features`; `cargo test --workspace --locked` runs 294 tests, 0 failures (rebased on current `main`, `a803c87`). - Windows: `cargo check --target x86_64-pc-windows-msvc --workspace --all-targets` (clang-cl 23.1.5) is warning-free, so the CI gates' axis is unchanged. No formatting changes: the tree is not rustfmt-clean, so the diff stays reviewable (21 files, +168/−63). Related: #128 (same goal — this is the minimal, no-churn variant), #192 (test-warning subset), #37. This PR was AI assisted (GLM via OpenCode), directed and verified by the account owner.
iloveslopware commented 2026-11-25 04:11:20 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by iloveslopware on 2026-11-25T03:10:43Z.


Rebased onto current main (c96b4f2), carrying #491's one-commit clippy fix (d28e0dd) underneath so the branch is clippy-clean on the default feature set for x86_64-pc-windows-msvc as well — that dead-code red is main's, not this change's (see #491). Verified on the restack: Linux workspace clippy and tests, and cross-target Windows clippy with default features and --all-features, all green. The commit itself is unchanged. AI-assisted (GLM via OpenCode).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7151666062 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/449#issuecomment-7151666062). Originally posted by [iloveslopware](https://github.com/iloveslopware) on 2026-11-25T03:10:43Z. --- Rebased onto current `main` (`c96b4f2`), carrying #491's one-commit clippy fix (`d28e0dd`) underneath so the branch is clippy-clean on the default feature set for `x86_64-pc-windows-msvc` as well — that dead-code red is `main`'s, not this change's (see #491). Verified on the restack: Linux workspace clippy and tests, and cross-target Windows clippy with default features and `--all-features`, all green. The commit itself is unchanged. AI-assisted (GLM via OpenCode).
iloveslopware commented 2026-11-25 20:09:25 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by iloveslopware on 2026-11-25T19:22:15Z.


Rebased onto current main (d510ee4) as 01ce676, still carrying #491's one-commit clippy fix underneath so the default-features lane stays consistent.

Verified on the restack (Linux host, cross-target for the Windows lanes):

  • cargo build --release -p victory — PASS
  • cargo clippy --workspace --all-targets --locked -- -D warnings — PASS (Linux host)
  • cargo test --workspace --locked — PASS (295 passed, 0 failed, 6 ignored)
  • cross-win clippy, default and --all-features — fails only on lints that already fail at the merge base: the inventory is identical on plain d510ee4 (is_multiple_of, contains_key+insert, depth_written, sort_unstable_by_key), so this diff adds zero new ones; those are tracked in #642/#755/#841.

With this branch the workspace builds, lints, and tests clean off Windows on current main; the remaining win-side clippy reds at this commit belong to main itself.

AI-assisted: the rebase and verification runs were machine-assisted; the diff and its rationale are as described.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7172200465 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/449#issuecomment-7172200465). Originally posted by [iloveslopware](https://github.com/iloveslopware) on 2026-11-25T19:22:15Z. --- Rebased onto current `main` (`d510ee4`) as `01ce676`, still carrying #491's one-commit clippy fix underneath so the default-features lane stays consistent. Verified on the restack (Linux host, cross-target for the Windows lanes): - `cargo build --release -p victory` — PASS - `cargo clippy --workspace --all-targets --locked -- -D warnings` — PASS (Linux host) - `cargo test --workspace --locked` — PASS (295 passed, 0 failed, 6 ignored) - cross-win clippy, default and `--all-features` — fails only on lints that already fail at the merge base: the inventory is identical on plain `d510ee4` (`is_multiple_of`, `contains_key`+`insert`, `depth_written`, `sort_unstable_by_key`), so this diff adds zero new ones; those are tracked in #642/#755/#841. With this branch the workspace builds, lints, and tests clean off Windows on current `main`; the remaining win-side clippy reds at this commit belong to `main` itself. AI-assisted: the rebase and verification runs were machine-assisted; the diff and its rationale are as described.
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/449:upstream-pr/449'
git switch 'upstream-pr/449'

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/449'
git switch 'upstream-pr/449'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/449'
git switch 'upstream-pr/449'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/449'
git switch 'main'
git merge --squash 'upstream-pr/449'
git switch 'main'
git merge --ff-only 'upstream-pr/449'
git switch 'main'
git merge 'upstream-pr/449'
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
fxceless/victory-fork!449
No description provided.