Repository navigation
Conversation
…stage The runtime stage ran scripts/build_runtime.ps1 through the bare name "powershell". CreateProcess searches System32 but not System32\WindowsPowerShell\v1.0, so on a PC whose PATH no longer lists that folder the stage ended in a FileNotFoundError traceback, after the shader and asset stages had already run. windows_powershell() returns the file under %SystemRoot%, and the bare name where the file is not at its usual place. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Ten Windows-only test files started a bare "powershell.exe", 14 launches in all. CreateProcess does not search System32\WindowsPowerShell\v1.0, so on a PC whose PATH no longer lists that folder every one of them ended in a FileNotFoundError at subprocess.run and tested nothing. They now start the file make_game.windows_powershell() returns, the one the runtime stage starts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Independent Windows Python check of e034f95. With PATH empty, launching the old bare powershell command raised FileNotFoundError, while the new helper's full path launched Windows PowerShell and printed the expected marker. With its usual directory on PATH, both commands printed the same marker. The two focused tests passed, covering the runtime arguments via a mocked runner and the bare-name fallback when the standard executable is absent. No build script ran. AI-assisted. |
|
PASS as a test-only follow-up (the author's comment does not change the result). 20/20 across the 10 changed test files, Minor: Approve. AI-assisted review, no game files, no GPU. |
tests/test_meta_to_xml_paths.py: main's copy is kept. It already starts Windows PowerShell by its full path (b2d00d2), so this branch no longer changes that file. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
main gained four launches by the bare name after this branch was opened: two in tests/test_carve_all_paths.py and one each in the new tests/test_build_batch_launch.py and tests/test_first_look_rebuild.py. They start windows_powershell() like the others. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Updated to
Tested on Windows 11 26200, Python 3.12.6, with The description is updated to match. AI-assisted (Claude Code); no game files, no GPU. |
|
Re-review of Delta since
Ran
Note (outside this PR's scope, not blocking): AI-assisted. |
Claimed in the coordination issue as: TEST-869 (claim in #3918).
Depends on: #3930 (BUILD-1118). This branch is stacked on it, so until that merges the diff here shows its commit too. The change of this PR is 11 test files, +55/−17 against
main(3faac557).Updated 2026-11-23:
mainwas merged in atffaa9721to resolve a conflict intests/test_meta_to_xml_paths.py, andac48ad75covers the four launchesmaingained in the meantime. The earlier reviews were ofe034f95d.What and why
Windows-only test files start a bare
"powershell.exe".CreateProcesssearchesSystem32but notSystem32\WindowsPowerShell\v1.0, so on a PC whose PATH no longer lists that folder every one of them ends inFileNotFoundErroratsubprocess.runand tests nothing.Each launch now starts the file
make_game.windows_powershell()returns (added by #3930), the same one the runtime stage starts. Per file that issys.path.insert(0, <repository root>),from make_game import windows_powershell, and the one token;import syswhere the file didn't have it. Nothing else in the tests changes.Files, 17 launches in all:
tests/test_build_batch_launch.py,test_build_llvm_mc_batch.py,test_build_runtime_batch.py,test_carve_all_brackets.py,test_carve_all_paths.py(6 launches),test_first_look_exit.py,test_first_look_rebuild.py,test_first_look_shim_report.py,test_llvm_install_destination.py,test_llvm_install_path.py(2),test_llvm_source_version.py.tests/test_meta_to_xml_paths.pyis no longer changed here:maingave it its own full path inb2d00d240, and the merge keepsmain's copy. After this PR no test undertests/starts PowerShell by the bare name.Tested
Windows 11 26200, Python 3.12.6, at
ac48ad75. No game files; no GPU is involved.With
System32\WindowsPowerShell\v1.0removed from PATH:test_meta_to_xml_paths.pyandtest_make_game_platform.pyac48ad75taken frommain(test_carve_all_paths.py,test_build_batch_launch.py,test_first_look_rebuild.py)FileNotFoundError(7, 3 and 2 errors)test_build_llvm_mc_batch.pyfailed for another reason (TEST-668) when this PR was opened; on currentmainit passes here.python -m compileall -q make_game.py tools tests: OK.git diff --checkagainstmain: clean.ac48ad75: the 11 files andtest_meta_to_xml_paths.pyimport and skip as before (OK (skipped=N)for each), so the new import works where the tests don't run.Checklist
docs/design.md, with how it was confirmed. (Not applicable.)AI-assisted (Claude Code).
🤖 Generated with Claude Code