Repository navigation
Docs: Linux tests, cross-build, running under Proton; ignore vkd3d/DXVK caches - #149
SkippySteve wants to merge 7 commits into
Conversation
18dde27 to
47dca21
Compare
LaunchDoesntCode
left a comment
There was a problem hiding this comment.
Thanks for putting this guide together. I found two copy-paste issues in the Proton example:
- The build steps produce
target/x86_64-pc-windows-msvc/{release,diag}/victory.exe, but the run command uses$PWD/victory.exe. From the repository root that file does not exist unless it has been copied there. Could the example point to the selected build output explicitly? - The command redirects
host.out.logandhost.err.loginto$PWD, which is likely the repository root after the build steps. That conflicts with the guide's instruction to keep title-derived logs outside the repository. Could those paths use a dedicated directory outside the checkout?
I could not execute this exact UMU command locally because umu-run is not installed here; these two path issues are visible from the documented commands.
…e repo The Proton example ran $PWD/victory.exe, which only exists if copied there, and wrote host.out.log/host.err.log into the repository root. Point it at target/x86_64-pc-windows-msvc/release/victory.exe and put the logs in a per-run folder under ~/.local/share/victory/logs.
|
@LaunchDoesntCode thanks for the review. You're right on both counts: those were copy-paste mistakes from my own setup. Fixed in 1fdb325. What changed
How the Linux/Proton flow fits together, in case it helps when you try it:
If you get |
|
Added a short section, Tools on Linux vs running the title: the file-only subcommands ( |
|
Docs-only, so nothing to run, but I checked the claims it makes:
No game data used. |
|
Polished in bcf732a after reviewing #195 (docs only, branch is current with
|
…ignore vkd3d/DXVK caches Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
One small PR-description edit would keep the Linux build issue open until the build fix lands. GitHub currently lists #90 in this PR's |
Linux/Proton contributor docs, plus the
.gitignoreentries for the shader caches Proton leaves in a checkout. Absorbs #220.Summary
Adds
docs/linux-proton.mdand one link to it in the README's Getting started. Docs only, no code.load_probeunder Wine), Build: Linux workspace, contributor setup and CI #112, Add a Linux launcher and smoke test for Proton #191 (replaced Build on Linux: cross-compile for MSVC, run under Wine #195), Core host UX: XDG data dir, config-relative paths, and clearer VICTORY_LOG handling #241 (XDG data dir, config-relative paths).victory-shaderlib,cargo testwith the PE self-parse--skips), a note thatTMPDIRmust be outside the checkout,gh pr checkout 235for the full workspace, and how to run the Windows test binaries under Wine. Tests use synthetic data only.main(data under~/.cache) vs with Core host UX: XDG data dir, config-relative paths, and clearer VICTORY_LOG handling #241 (XDG cache/data,~expansion, Windows drive paths refused); none of it changesvictory.exeunder Proton.victory.exe(release anddiag) forx86_64-pc-windows-msvcwith xwin,lld-linkandclang-cl.umu-run,Z:paths for theVICTORY_*variables, andcmd.exe /credirection because Proton drops the console. D3D12 goes through vkd3d-proton.main. xmem: map a run of physical pages over several placeholders #76 is still open and needs a rebase.VICTORY_KEYSandVICTORY_STACKStake effect only in thediagbuild.docs/asset-policy.md.The outcomes in the doc come from one NVIDIA machine. They are listed only as observations.
Test plan
Current
main(d2a4bae) on Arch Linux: Linux/Wine testing: interim Linux CI subset; skip load_probe cargo build under Wine #232's exact CI commands (policy, both clippy steps,cargo testwith the skips) pass; test run gives 96 passed, 0 failed, 3 ignoredWith
TMPDIRinside the checkout,policy::tests::accepts_unrelated_directoriesfails withInsideRepo, as the doc saysmain'sdefault_dirputs the data folder under the cache base whenLOCALAPPDATAis unset, as the doc says; the Core host UX: XDG data dir, config-relative paths, and clearer VICTORY_LOG handling #241 behaviour is taken from its diff and descriptionCurrent
main(d2a4bae) on Arch Linux: the doc's native subset (cargo check --all-targetson 7 crates,cargo teston 5) gives 89 passed, 0 failed, 3 ignored;cargo xtask policy152 files okCurrent
main(9aef3d9) on Arch Linux:cargo check -p victory-gpufails with the E0425 the doc quotesBuild: Linux workspace, contributor setup and CI #112's head:
cargo test --workspace --lockedgives 165 passed, 0 failed, 3 ignoredCurrent
main: the doc's cross-build commands build bothrelease/victory.exeanddiag/victory.exegit merge-treeagainstmain: Build: make workspace tests run on Linux #39, Build: Linux workspace, contributor setup and CI #112 and xmem: map a run of physical pages over several placeholders #76 each conflict, as the doc sayscargo xtask policyreports 152 files okNo game files, paths, hashes or logs in the diff
Also: ignore Wine/Proton shader caches (was #220)
Running VIctory under Wine/Proton from a checkout leaves vkd3d-proton / DXVK shader caches in the working directory. Because
cargo xtask policychecks untracked-but-not-ignored files too (git ls-files --others --exclude-standard), a strayvkd3d-proton.cachemakes the policy check (and the pre-commit hook) fail:Change
.gitignore: ignorevkd3d-proton.cache,vkd3d-proton.cache.write,vkd3d_shader_cache/,*.dxvk-cache, next to the other derived-data entries.docs/asset-policy.md: one paragraph under "Where data lives" noting these are derived data and how to redirect them (VKD3D_SHADER_CACHE_PATH,DXVK_STATE_CACHE_PATH).Testing
vkd3d-proton.cachebefore the change:cargo xtask policyfails as above.vkd3d-proton.cache,vkd3d-proton.cache.write,x.dxvk-cacheandvkd3d_shader_cache/apresent:cargo xtask policy→asset policy: 151 files ok, andgit statusshows none of them.No assets or binaries added.