Build: Linux workspace, contributor setup and CI #112
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!112
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-112"
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?
@Quat3rnion on GitHub · 2026-11-24 00:37 UTC · original
Quat3rnion:contribution-setup→main· +333 −63 · 18 files · 3 commits · openWhat
Makes the workspace build and test on Linux and adds a one-command contributor setup. This combines the portable-test approach from #39 with the setup work prepared here, so #39 can be closed.
translateusable on Linux with its DXIL and D3D12 checks disabled.cargo xtask setupand CONTRIBUTING.md; install hooks and write a valid local config on both platforms.Tested
cargo test --workspace --locked: 219 passed, 0 failed, 5 ignored on Linux with the pinned toolchain.cargo xtask policy,cargo build --release --workspace,cargo check --workspace --all-features: pass.ffe310e.Title execution stays Windows-only. No game data used.
github-bot referenced this pull request2026-11-26 04:05:26 +00:00
@DaviTostes on GitHub · 2026-11-24 00:45 UTC · original
Tested
ee63908on Arch Linux x86_64, rustc 1.98.1: pass, and it is the first branch that builds and tests on Linux without stacking #39.cargo test --workspace --locked: 165 passed, 0 failed, 3 ignored (22 test binaries) — matches the PR's claim.cargo fmt --all -- --check: clean (0 output).main7d33c46still fails to build on Linux (E0425: cannot find function 'host_resource'invictory-gpu/src/resource.rs), so this is the branch that fixes it. Since it folds in #39, #39 can be closed with this one.cargo xtask policy:asset policy: 153 files ok.No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
@Sunkiller-qc on GitHub · 2026-11-24 01:05 UTC · original
The Linux gating and
xtask setuplook useful. One practical issue: the "format the workspace once" step puts a lot of pure reformatting (e.g.xma/tables.rs+820/-356) in with the cfg changes across 46 files. That makes the real changes harder to review, and the PR now conflicts with main and with many of the open PRs. Could thecargo fmt --allgo in a separate last commit (or PR) that is redone right before merge, with this PR keeping only the gating, setup and CI? The fmt check in CI could then land together with that commit.Static review, not built or run.
@CesarLopesO on GitHub · 2026-11-24 01:33 UTC · original
I independently validated PR #112 on Debian 13 (Trixie).
Environment:
Results:
cargo fmt --all -- --check— passedcargo test --workspace --locked— 165 passed, 0 failed, 3 ignoredcargo xtask policy— passed (153 files OK)The workspace compiled successfully on Debian 13. Some non-fatal compiler warnings were reported.
Working tree remained clean throughout testing.
Thanks for making Linux development more accessible!
@CesarLopesO on GitHub · 2026-11-24 01:38 UTC · original
Additional independent validation — Debian 13
I performed an independent validation of the Linux contributor setup on Debian GNU/Linux 13.7.
Environment:
Results:
cargo fmt --all -- --check— passed.cargo test --workspace --locked— 165 passed, 0 failed, 3 ignored.cargo xtask policy— passed (153 files OK).cargo xtask setup— successfully installed the Git hooks and generated the local configuration.cargo xtask policy --staged— passed.The Git pre-commit integration works as expected on Debian 13.
@SkippySteve on GitHub · 2026-11-24 01:41 UTC · original
For reference: #235 only adds the cfg gates from #39, rebased onto current main. It's meant to go alongside this PR, not replace it. Once it merges, this PR can rebase onto it and drop the overlapping changes.
@LazyHatGuy on GitHub · 2026-11-24 02:50 UTC · original · edited 2026-11-24 02:55 UTC
I have verified #112 on Garuda Linux, following the example from @CesarLopesO
Environment
ee63908d50295af044b7950ae5693e49fe88e357Results
cargo fmt --all -- --check-> Exit 0cargo-summary test --workspace --locked-> TEST OK total=168 passed=165 failed=0 ignored=3 in 1.3scargo xtask policy-> asset policy: 153 files okcargo xtask policy --staged-> asset policy: 0 files okcargo xtask setup-> Installs hooks sucessfully@catminou4 on GitHub · 2026-11-24 06:54 UTC · original
Heads-up for triage: this overlaps heavily with #235 + #523, which are currently the portability candidates being reviewed (I verified #523's head
0012266compiles and passes the full macOS-buildable suite green). If #235/#523 land first, most of this PR's Linux-workspace changes will be redundant — worth checking the delta against those two before review effort.@sebastianspicker on GitHub · 2026-11-24 10:48 UTC · original
The format pass here moves two
// SAFETY:comments away from theirunsafeblocks. Once this is rebased onto the currentci.yml(Windows clippy with-D warnings, and the workspace setsundocumented_unsafe_blocks = "warn"), clippy fails on both. Atee63908:crates/victory-gpu/src/list.rs:1450: the comment sits aboveassert!(, and theunsafeblock is now on the next line.crates/victory-gpu/src/watch.rs:363: the same, withassert_eq!(.I hit exactly these two after formatting
8e79c80and runningcargo clippy --target x86_64-pc-windows-msvc --workspace --all-targets -- -D warnings(clippy 0.1.98, cross-checked from macOS with cargo-xwin). Moving the block into aletkeeps the comment attached, and rustfmt leaves it alone:With those two changes, both clippy runs from
ci.yml(plain and--all-features) pass for the Windows target, andcargo fmt --all -- --checkpasses with rustfmt 1.98.1.Two smaller things:
crates/victory-formats/src/xma/tables.rsto one entry per line (SCALEalone becomes 121 lines). If the 8-per-row layout is worth keeping,#[rustfmt::skip]on each table does it.cargoignoresrust-toolchain.toml, and clippy 0.1.100 reportsneedless_range_loopinxma.rsandlower.rsthat 0.1.98 does not, so results from a distro toolchain don't quite match CI.AI-assisted.
@Marvisak on GitHub · 2026-11-25 00:17 UTC · original
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:apps/victory/src/translate.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.