Keep the launcher script path intact on F1 restart #3303
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
3 participants
Due date
No due date set.
Reference
leonida/mandy!3303
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/3303"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as D3D12-F1-RESTART-SCRIPT-PATH.
What and why
F1 Save and Restart embeds the launcher script path in PowerShell source, where a typographic apostrophe in the checkout path can end the string early. Pass the original path in the child process's environment and let PowerShell's call operator read it as one value. The restart delay, options, console behavior and replayed argument text stay as before. #3253 covers quoting values in that replayed argument text.
Tested
d9b618f1, using the actual command builders and synthetic scripts under PowerShell 7.7.0 on Linux. Previously all four typographic cases (U+2018 through U+201B) failed to parse. Now all four and the ASCII apostrophe case execute the exact script and bind both test switches.host::menu::tests::tests passed, including the new test for the child environment and command.git diff --checkpassed. Native Windows PowerShell 5.1 execution remains unverified.GPUs tested: n/a. All tests used synthetic launcher inputs.
AI-assisted: OpenAI Codex (GPT-6) for implementation and a separate read-only GPT-6.2 Sol review.
Checklist
mainand merges cleanly.VERIFY-3303 — 6 tests de
menuen verde, y es la confirmación de que la prueba de este menú está donde debeEl cambio: mantener intacta la ruta del script del launcher en el reinicio de F1 — o sea, el mismo flujo que
#3233/#3247/#3269por el otro lado: ellos lo tocan enplay-nvidia.ps1y en los tests de PowerShell; este lo toca en el menú del runtime.Y eso es lo que quiero señalar: el mismo botón (F1 SAVE AND RESTART) tiene lógica en tres sitios — el menú del runtime, el script de
play, y los tests de los dos, y cada PR toca uno. Si entran tres arreglos parciales sin un test que ate los tres, la próxima vez que alguien cambie F1 va a romper uno de los lados sin saberlo.Lo que verifiqué: los 6 tests de
menucon el cambio.Lo que no: el reinicio de verdad con F1, que necesita el juego.
Y la pregunta que le haría: ¿el test comprueba la ruta que se pasa al script o sólo que la cadena se conserva? La primera es la que importa; la segunda puede pasar con una ruta que ya no existe.
Windows native verification -- PASS on head
2872ebbfb(merged cleanly viagit merge --no-ffontomaind9b618f10).Checks (Windows 10 x64)
python -I scripts/check_no_game_data.py-> PASScargo test -p leonida-gpu --lib --locked menu::-> 3 passed, 0 failed (coversd3d12/crates/leonida-gpu/src/host/menu.rs)AI-assisted: yes (Antigravity -- Gemini 4 Neon).
The original Rust test checks command construction. In
5942d059I added an execution regression using the productionrestart_processcommand. It launches a real synthetic PowerShell script from a directory namedMandy’s checkout. The script requires both switches and writes its own$PSCommandPath, which the test checks against the intended script. The old inline path makes this test fail, and the fix passes with PowerShell 7.7.0.The full Windows MSVC build passed under Wine; the test requiring
powershell.exeskipped there because the executable was unavailable. The native D3D12 CI job is running for this head. A separate GPT-6.2 Sol reviewer checked the update. AI-assisted with OpenAI Codex.All CI jobs are now green on
5942d059. The native D3D12 Windows job reportsokforrestart_runs_the_launcher_script_from_a_quoted_directoryas well as the command-construction test. The execution test uses a synthetic launcher script. AI-assisted with OpenAI Codex.RUN (in game, batch of two pull requests), each head merged with
git merge --no-ffonto maind9b618f10, in one build: #32916b0ee46be, #33032872ebbfb. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x,-PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it. #3303 moved during the run to
5942d0596, which only adds a#[test]insidemod testsofhost/menu.rs(git diff 2872ebbfb 5942d0596outside*.mdis that test alone), so this run also stands for that head.Limits: one run; arrival in the world was driven by keys and not checked on pictures;
-PrecompileUsedwas used, so the default start (every known pipeline precompiled) was not exercised. #3291's ceiling is opt-in and was left off. #3303 changes the F1 SAVE AND RESTART path, which was not exercised in game here.AI-assisted (Claude Code).
Bundle gate run on an RTX 3090 (NVIDIA 621.40, Windows 11 Pro build 26300): #3303
2892951f4, #3136fd16493ac, #30103ca5765acand #3005b3a1a8f57(the current heads) merged together intomain04a838fc4without conflict, diag profile withdiagnostics,dlss,mimalloc, msvc target. These four were judged to have no effect on the picture, so they share one run. Reference:main04a838fc4built the same way, run the same day with the same frame-timing capture on. Series X output 2560x1440, DLSS quality, no frame generation, 300 s standing at the save, fresh data.main(-0.6, inside the run-to-run spread of this recipe); median frame 29.27 ms, p99 48.8 against 48.9 ms. From 210 to 300 s the 30 s slices are the same as the reference (34.4-35.0 against 34.5-34.7). The 150-210 s slices are lower: a slower climb, plus a short CPU burst from a monitoring query on this PC at 173 s.mainrun; none after 150 s.Verdict: PASS, no cost, for the four PRs together.
GPUs tested: NVIDIA GeForce RTX 3090, driver 621.40.
AI-assisted: run and report by Claude Code (Claude Opus 5.5).
b52e2c900into #3303 (tree tested by local CI) 19b601cc5cMerged by OreoFR (agent) at MoonEyes' request. His judge accepted it, and enlighted's G1 pack, which includes this PR, passed a 300 s run on an RTX 3090: no cost, 0 lost, 0 crash, 0 ERROR.
Local CI (normal mode) on head
2892951f4merged into mainb52e2c900: PASS.make_game.py --help.leonida,leonida-gpu,leonida-hle), 118 s.-D warnings, 41 s.The forge refused the merge while the head was behind main. So
main(b52e2c900) was merged into the head as19b601cc5, with the same tree the CI tested. Merged asa55837545.