Compile and test on Linux, and an Ubuntu CI run #41
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/Belobug--VIctory-Belobug-AMD!41
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-41"
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-25 12:37 UTC · original
LazyHatGuy:linux→main· +4797 −1499 · 85 files · 7 commits · closed without mergingWhat this does
The tree is Windows-first:
victory-gpu,victory-shader,victory-hleandvictory-loaderare written against Win32 and D3D12, and on Linux theworkspace did not compile at all. This branch makes it compile, test and run
its file-side commands natively, without changing what any of it does on
Windows:
cfg(windows)-gated at the module body, so theportable parts (config, logging, formats, the shader front end, the
container and IR layers) still build here.
[target.'cfg(windows)'.dependencies]in eachCargo.toml, so Cargo doesnot try to resolve
windows/windows-syson a Linux host.semantics are
#[cfg(all(test, windows))]; the rest run here.cargo xtaskCI: the test job now runs onubuntu-latestas well aswindows-latest.Format all filesruns the pinned rustfmt (1.98.1, fromrust-toolchain.toml) over the workspace, so the fmt gate in CI ismeaningful from here on: the tree is reproducible with the pinned
toolchain, which it was not before.
Running titles still needs Windows: the
translateandrunsubcommands sayso and stop, as before.
config,inspect,censusandshader-infowork.Two fixes found on the way
queue::presentedwas gated to the diagnostics feature. It is notdiagnostics-only:
host::retireandburyread it in every Windows build.The gate is Windows alone now; cross-checking the Windows tree from Linux
is what caught it.
query-heap types, the timeline's command-list step, the frame wait's
measured length, the pr306 validator helper). Those are gated or given a
no-op twin, so the shader tests still emit their shaders here and only the
DXIL validation is skipped.
Checked on Linux (Arch, toolchain pinned to 1.98.1)
cargo check --workspace --all-targets --locked: no errors, no warnings.Same with
--all-features.cargo clippy --workspace --all-targets --locked: nothing new — the 10victory-shaderlints it reports are onmaintoo, and are what PR #3cleans up.
cargo test --workspace --locked: every test target passes except thepre-existing
xtaskpolicy test (below).cargo run -p victory -- configprints the config and the cache and datadirectories.
CI status
mainalready fails two CI steps, and nothing here adds a failure:-D warnings) fails on thevictory-shaderlints mentionedabove.
crates/victory-shader/src/emit/lower.rs(630 kB) is over the 512 kB asset-size limit — listed under Known
problems in the README. The same check inside
cargo test -p xtaskfailsfor the same reason, so the new Ubuntu test job shows that one failure
too.
This PR was AI assisted.
No checks run on this PR until a maintainer approves the Actions run (the run
sits in
action_required, like the other open PRs), so every number above isfrom running those same commands locally.
@ntgata1-dotcom on GitHub · 2026-11-25 13:39 UTC · original
Linux and the Windows target from Linux: works; the reformat left three
// SAFETY:comments away from their blocksArch Linux, Rust 1.98.1 from
rust-toolchain.toml, atd6a7269, compared withmain71652a2:Linux, as you describe:
cargo fmt --all --checkis clean.cargo check --workspace --all-targets --locked, default and--all-features, gives no warnings.cargo test --workspace --locked --no-fail-fastgives 316 passed, 1 failed (policy::tests::repository_passes_policy, thelower.rssize) and 12 ignored.Windows target from Linux, with cargo-xwin 0.24.1:
cargo xwin check --workspace --all-targets --locked, default and--all-features, passes.The Windows exe still runs the same. That's a diagnostics build under Wine 11.22 on an RX 9070 XT, on the first-boot screens, with
VICTORY_COPY_MEMORY=1(for #19's black frames). The capturedframe-2048.pngis byte-identical tomain's.cargo xwin clippy --workspace --all-targets --locked(Windows target) has one warning fewer thanmain(frame.rs: unusedwait). It also has three new "unsafe block missing a safety comment", all from674a3c7"Format all files". rustfmt broke each expression over several lines, so theunsafeblock is no longer on the line under its// SAFETY:comment:crates/victory-gpu/src/list.rs:1549(blend_factor)crates/victory-gpu/src/list.rs:2215(a test)crates/victory-gpu/src/watch.rs:1127(a test)Moving each comment onto the line above its
unsafeblock clears all three, andcargo fmt --all --checkstays clean (I tried it locally). Windows clippy then has one warning fewer thanmainand none new. For example:Not run: Windows itself.
AI-assisted (Claude Code); numbers from my own runs.
@adrianmjim on GitHub · 2026-11-25 17:23 UTC · original
Read through the diff against
71652a2(not run on Linux here; Windows 11 + RX 7900 XT). Runtime-wise nothing changes on Windows: the dependency moves keep every Windows dependency, and thecfggates only add non-Windows alternatives. Two CI points:The Windows test job will likely go red.
actions-rust-lang/setup-rust-toolchain@a188e68(2.0.1) defaultsbuild-warningstodeny, which exportsCARGO_BUILD_WARNINGS=deny.mainbuilds with one warning (method int_value is never used, victory-shader). Checked locally:Either pass
build-warnings: warn, or land #3 first (it removesint_value).The lint job runs the asset-policy check before clippy, and the policy check already fails on
main(crates/victory-shader/src/emit/lower.rs: 630652 bytes exceeds the 524288-byte limit), so clippy never runs there; the format commit makeslower.rsslightly larger (636,368 bytes). The job's timeout also drops from 60 to 15 minutes for two cold clippy runs on Windows.The format-all commit (67 files) will conflict with most open PRs; landing it on its own, timed against them, may be easier.
Pull request closed