windows-boot: keep driver artifacts outside the checkout (RT-WINDOWS-BOOT-SCRATCH-CWD) #1609

Open
github-bot wants to merge 1 commit from github-bot/gh-1609 into main AGit
Owner

@⁠lixonik on GitHub · 2026-11-25 05:50 UTC · original
lixonik:windows-boot-scratch-cwd → main · +30 −9 · 3 files · 1 commits · open

Claimed in the coordination issue as: RT-WINDOWS-BOOT-SCRATCH-CWD

What and why

Refs #1552 for the driver artifact report. boot.ps1 starts the runtime from the checkout, so a driver artifact with a relative filename, such as the reported ucode.elf, can be created at its root and staged by accident.

Start the runtime from a per-run directory under -OutDir. Resolve the launcher's path inputs before spawning the child and keep the base for the existing runtime path overrides that were relative to the checkout. Ignore only a root-level ucode.elf to cover direct launches from the checkout.

Tested

  • Launched a synthetic child executable with the original and patched launchers on Windows PowerShell 5.1 and PowerShell 7. Its marker landed at the checkout root before the patch and under work_<name> afterwards. Verified paths with spaces, relative launcher inputs from outside the checkout, and -DryRun leaving the output directory absent.
  • Ran the full semantic suite (6,252 tests) and the docs link tests (16 tests). Verified the scoped Git ignore rule and ran check_no_game_data.py on all three changed files.

GPUs tested: n/a (synthetic child process)

AI-assisted.

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
**@⁠lixonik** on GitHub · 2026-11-25 05:50 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1609) `lixonik:windows-boot-scratch-cwd` → `main` · +30 −9 · 3 files · 1 commits · open Claimed in the coordination issue as: [RT-WINDOWS-BOOT-SCRATCH-CWD](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why Refs #1552 for the driver artifact report. `boot.ps1` starts the runtime from the checkout, so a driver artifact with a relative filename, such as the reported `ucode.elf`, can be created at its root and staged by accident. Start the runtime from a per-run directory under `-OutDir`. Resolve the launcher's path inputs before spawning the child and keep the base for the existing runtime path overrides that were relative to the checkout. Ignore only a root-level `ucode.elf` to cover direct launches from the checkout. ### Tested - Launched a synthetic child executable with the original and patched launchers on Windows PowerShell 5.1 and PowerShell 7. Its marker landed at the checkout root before the patch and under `work_<name>` afterwards. Verified paths with spaces, relative launcher inputs from outside the checkout, and `-DryRun` leaving the output directory absent. - Ran the full semantic suite (6,252 tests) and the docs link tests (16 tests). Verified the scoped Git ignore rule and ran `check_no_game_data.py` on all three changed files. GPUs tested: n/a (synthetic child process) AI-assisted. ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:57:55 +00:00
Author
Owner

@⁠JoeY54 on GitHub · 2026-11-25 06:28 UTC · original

Independent Windows launcher validation at 0236b63f4e18996a8210c841bea54e64af3f3ba7, compared with parent 42537e7b6f84c233ac009b924d3a25d2a1178197.

12/12 passed on Windows 11 Pro 26H2 (26300.9974). I ran the old and new launcher with a synthetic marker child in Windows PowerShell 5.1.26100.9818 and PowerShell 7.6.9, using absolute paths, relative paths from outside the checkout, and -DryRun. The paths contained spaces.

  • The parent wrote the marker at the checkout root. The PR head wrote it under <OutDir>/work_<Name>.
  • The PR resolved the relative launch input before starting the child and preserved the checkout-relative meaning of LEONIDA_SAVE_DIR.
  • All four -DryRun cases exited 0 and left the output directory absent. git check-ignore matched root ucode.elf and left the nested example visible.

Windows PowerShell 5.1 initially refused to load the script under the default execution policy in the test environment. The successful 5.1 runs used RemoteSigned at process scope. The child recorded its working directory, arguments and selected environment variables using synthetic placeholders. AI-assisted with Codex. Test coordination.

**@⁠JoeY54** on GitHub · 2026-11-25 06:28 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1609#issuecomment-7154821211) **Independent Windows launcher validation** at `0236b63f4e18996a8210c841bea54e64af3f3ba7`, compared with parent `42537e7b6f84c233ac009b924d3a25d2a1178197`. **12/12 passed** on Windows 11 Pro 26H2 (26300.9974). I ran the old and new launcher with a synthetic marker child in Windows PowerShell 5.1.26100.9818 and PowerShell 7.6.9, using absolute paths, relative paths from outside the checkout, and `-DryRun`. The paths contained spaces. - The parent wrote the marker at the checkout root. The PR head wrote it under `<OutDir>/work_<Name>`. - The PR resolved the relative launch input before starting the child and preserved the checkout-relative meaning of `LEONIDA_SAVE_DIR`. - All four `-DryRun` cases exited 0 and left the output directory absent. `git check-ignore` matched root `ucode.elf` and left the nested example visible. Windows PowerShell 5.1 initially refused to load the script under the default execution policy in the test environment. The successful 5.1 runs used `RemoteSigned` at process scope. The child recorded its working directory, arguments and selected environment variables using synthetic placeholders. AI-assisted with Codex. [Test coordination](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1609/head:github-bot/gh-1609'
git switch 'github-bot/gh-1609'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1609'
git switch 'github-bot/gh-1609'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1609'
git switch 'github-bot/gh-1609'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1609'
git switch 'main'
git merge --squash 'github-bot/gh-1609'
git switch 'main'
git merge --ff-only 'github-bot/gh-1609'
git switch 'main'
git merge 'github-bot/gh-1609'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.