windows-boot: keep driver artifacts outside the checkout (RT-WINDOWS-BOOT-SCRATCH-CWD) #1609
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1609"
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?
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-25T05:50:50Z.
Claimed in the coordination issue as: RT-WINDOWS-BOOT-SCRATCH-CWD
What and why
Refs #1552 for the driver artifact report.
boot.ps1starts the runtime from the checkout, so a driver artifact with a relative filename, such as the reporteducode.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-levelucode.elfto cover direct launches from the checkout.Tested
work_<name>afterwards. Verified paths with spaces, relative launcher inputs from outside the checkout, and-DryRunleaving the output directory absent.check_no_game_data.pyon all three changed files.GPUs tested: n/a (synthetic child process)
AI-assisted.
Checklist
mainand merges cleanly.Imported from ubiquitarianism/leonida. Originally posted by JoeY54 on 2026-11-25T06:28:09Z.
Independent Windows launcher validation at
0236b63f4e18996a8210c841bea54e64af3f3ba7, compared with parent42537e7b6f84c233ac009b924d3a25d2a1178197.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.<OutDir>/work_<Name>.LEONIDA_SAVE_DIR.-DryRuncases exited 0 and left the output directory absent.git check-ignorematched rootucode.elfand 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
RemoteSignedat process scope. The child recorded its working directory, arguments and selected environment variables using synthetic placeholders. AI-assisted with Codex. Test coordination.Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T01:12:39Z.
Checked
0236b63f4merged (no commit) withmain87a39df94: Python 3.12.4, Windows 11 10.0.26300, CPU only.check_no_game_data.pyis clean.mainand on the merge (test_boot_matrix.py36 OK,test_boot_trace.py39 OK,test_dev_boot_trace.py5 OK and 4 more).scripts/windows-boot/boot.ps1itself: it starts the title, so this is diff reading only.No blocker from my side.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-29T02:36:36Z.
When I merged public head
0236b63f4e18996a8210c841bea54e64af3f3ba7intomainc8bf0e7b65, the synthetic journal-seed suite had one failure. The launcher made a relative writable-cache path absolute before seed selection, causing it to add a seed in a case that previously suppressed automatic seeding.A local follow-up chooses the seed before resolving the writable-cache path. The child still gets the absolute path, and an explicit seed can still override the default. The updated test checks both the absolute path handed to the child and the absence of an automatic seed. The 17-test suite passes. This also removes the
boot.ps1text conflict with #2599 at202ad50e5b686a885f7e6e72d55608a5bb0162fd, and all 26 tests pass with both changes applied. Windows 10, Windows PowerShell 5.1, CPython 3.12.1, dry-run only.The follow-up is still local because of GitHub commit-email protection on the fork.
AI-assisted. Codex (GPT-6).
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-29T05:44:35Z.
Merged
main(ef32995848) and pushed the seed-ordering fix as9cb0c02784(using my GitHub noreply commit email).What changed:
scripts/windows-boot/boot.ps1merge conflict with-CrashDumpby keeping$RepoRootas the crash monitor's repo check argument while launching the process in-WorkingDirectory $RunDirectory.LEONIDA_PIPELINE_CACHE_DIRand the other relative env paths until afterLEONIDA_PIPELINE_JOURNAL_SEED_DIRselection, and updatedtest_no_seed_for_a_relative_cache_folderintests/test_windows_boot_journal_seed.pyto verify both no automatic seed and the resolved child cache path.Local verification (Windows 11, PowerShell 5.1, Python 3):
scripts/windows-boot/boot.ps1: 0 syntax errors.python -I tests/test_windows_boot_journal_seed.py -v: 17/17 passed.python -I tests/test_windows_boot_fault_digest.py -v: 5/5 passed.python -I tests/test_boot_matrix.py -v: 36/36 passed.python -I scripts/check_no_game_data.py: passed.AI-assisted (Antigravity, Gemini).
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T18:49:53Z.
Tested
9cb0c0278merged (no commit) withmainc22a0a732: Python 3.12.4, Windows 11 10.0.26300, CPU only.tests/test_windows_boot_journal_seed.pygives 26 tests OK. It runsscripts/windows-boot/boot.ps1 -DryRunagainst a temporary runtime folder, so nothing is launched.scripts/windows-boot/boot.ps1and.gitignoreback tomain,test_no_seed_for_a_relative_cache_folderfails ('relative\\cache'against the absolute path).main's own version of that test gives 26 tests OK.check_no_game_data.pyis clean.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T19:01:18Z.
Merging. Head
9cb0c0278has red/green verdicts from reviewers other than the author (above), merges cleanly withmaincf0557ffc, does not force a rebase of #2566, and carries a claim ID. Remaining main CI reds (translator-testsmesh,semantic-testsf16) are pre-existing. Merged by MoonEyes.AI-assisted (Claude Code).