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. |
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 the second commit,
e034f95: 10 test files, +52/−14.What and why
Ten Windows-only test files start a bare
"powershell.exe", 14 launches in all.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:
tests/test_build_llvm_mc_batch.py,test_build_runtime_batch.py,test_carve_all_brackets.py,test_carve_all_paths.py(4 launches),test_first_look_exit.py,test_first_look_shim_report.py,test_llvm_install_destination.py,test_llvm_install_path.py(2),test_llvm_source_version.py,test_meta_to_xml_paths.py.Overlap: #3380, #3344, #3333, #3515, #2515 and #2497 edit some of these files. Where one of them lands first I'll rebase; the change here is one token per launch.
Tested
Windows 11 26200, Python 3.12.6. No game files; no GPU is involved.
System32\WindowsPowerShell\v1.0main(aa2988c)FileNotFoundErrortest_build_llvm_mc_batch.pyfailstest_build_llvm_mc_batch.pyfailstest_build_llvm_mc_batch.pyfailstest_build_llvm_mc_batch.pygets past the launch now and fails onmainand here for another reason,"check-console.cmd"not being recognised as a command. That is TEST-668, which #3380 fixes; I left it alone.OK (skipped=N)for each), so the new import works where the tests don't run.python -I tests/test_ci_registration.py(8),tests/test_text_write_line_endings.py(3): OK.python -m compileall -q make_game.py tools tests: OK.git diff --check: clean.Checklist
docs/design.md, with how it was confirmed. (Not applicable.)AI-assisted (Claude Code).
🤖 Generated with Claude Code