Use the same Cargo lookup for play, build and the game gate #3263
Open
github-bot
wants to merge 5 commits from
github-bot/gh-3263 into main
AGit
pull from: github-bot/gh-3263
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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/ubiquitarianism--leonida!3263
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3263"
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?
@merzleckeier on GitHub · 2026-12-02 23:13 UTC · original
merzleckeier:fix/direct-launch-cargo-home→main· +308 −19 · 9 files · 5 commits · draftClaimed in the coordination issue as LAUNCHER-DIRECT-CARGO-HOME.
Depends on: #3187
Overlaps #3220 in the direct launcher’s build preflight. If #3220 lands first, the rebase also needs to copy the shared lookup into its synthetic checkout.
What and why
A Rust installation in
CARGO_HOME/binor the default.cargo/bincan be unavailable on an already-open shell’sPATH. #3187 teaches the build script to find it. The direct launcher was still checkingPATHalone, so it could stop before the first build or skip a needed DLSS rebuild.Share the lookup between the direct launcher, the build script and the game gate. The gate can then reject a rebuild before recording the executable’s hash and features. The probe preserves
PATHand the build keeps its existing preference for Cargo already onPATH.This draft includes #3187 for integration testing against
main. The follow-up itself is commit2d0fc7240.Tested
-NoDlsscase verifies thatPATHstays unchanged.test_build_nvidia_cargo.pypassed five tests with two Windows-only skips.test_game_gate.pypassed 35.test_win_launchers.pypassed four with five Windows-only skips. The independent read-only review was rerun after incorporating its gate finding.git diff --checkand the clean-room scan passed. No runtime, game, or GPU was used for the local tests.9c2e340b. The Windows check ran all seven Cargo build-preflight tests, all 16 menu-choice tests and all nine Windows-launcher tests. The D3D12 Windows job also passed.GPUs tested: n/a
AI-assisted: OpenAI Codex (GPT-6 family) and a separate read-only Codex reviewer.
@merzleckeier on GitHub · 2026-12-02 23:47 UTC · original
Hosted CI passed all six checks on
9c2e340b, after syncingmainat81efe4566. The Windowschecklog showstest_build_nvidia_cargo.pyran all seven tests with no skips. It also shows all 16 menu-choice and nine Windows launcher tests passing. The separate D3D12 job passed, including all 47 Lua tests. This supplies the native Windows coverage that was pending in the draft description. The dependency on #3187 is still open.Windows launcher tests · D3D12 Windows. AI-assisted.
@merzleckeier on GitHub · 2026-12-02 23:52 UTC · original
I tested the merge order locally on
mainat81efe4566, combining this draft (9c2e340b, including #3187) with #3220 (0beb7d26). The one content conflict is inplay-nvidia.ps1. Keeping$needsBuildand the shared Cargo lookup from this draft alongsideexit 1from #3220 resolves the launcher hunk.The new #3220 test auto-merges but its synthetic checkout omits
find-cargo.ps1. I reproduced the resulting missing-script error in the no-Cargo case. CopyingCARGO_LOOKUPbeside the launcher and pointingCARGO_HOMEat an empty fixture directory restores the intended diagnostic and status 1.Linux PowerShell 7.7.0 ran
test_win_launchers,test_build_nvidia_cargoandtest_game_gateon the combined tree. 45 passed and seven Windows-only cases were skipped. That includes all seven preflight failures, the dry-run preview, and direct first-build discovery with Cargo available only inCARGO_HOME/bin. This was a synthetic local merge. AI-assisted.@fiestorra on GitHub · 2026-12-03 00:06 UTC · original
VERIFY-3263 — Windows nativo: ejercité el script, con una medida que no es concluyente y lo digo
2d0fc7240—d3d12/scripts/find-cargo.ps1(new, 15),build-nvidia.ps1(8 lines)What it adds: one
find-cargo.ps1shared by play/build/gate — report whethercargois available even if this shell predates the install, and only a build keeps$CARGO_HOME\binonPATHafter checking (-AddToPath).Exercised here (
pwsh -NoProfile, calling the script by path — dot-sourcing does not work, it has aparamblock, which is the first thing I got wrong):Second run, with
PATHcut tosystem32only andCARGO_HOMEpointed at the real one:So the two behaviours are real: the plain call restores
PATHand-AddToPathleaves it changed — and both find cargo.Where I have to be careful, and this is the honest part: the same run printed
cargoVisibleAntes=True, so my "no cargo on PATH" control was not clean — either PowerShell resolvedcargofrom somewhere other thanPATH, or the earlyif (Get-Command cargo) { return $true }did not fire and something else made the numbers match. TheswitchDejaCargo=Truesays the script did go past the early return, which contradicts my outer measurement — I could not reconcile the two in the time this pass allowed, and I am not going to present it as a clean negative control.What I can say with confidence: the script is syntactically valid, runs, returns a boolean in both modes, and the
PATHrestore/save distinction behaves as the comment says — in a shell whosePATHI had already cut. What I miscounted is whether cargo was truly invisible to it.What I could not test
build-nvidia.ps1consuming it: that needs a build with the title's toolchain.Written with an AI assistant.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.