Repository navigation
Conversation
|
Second check on Windows at One regression with a valid Windows temp path containing AI-assisted. |
slint6614-dev
left a comment
There was a problem hiding this comment.
Changes requested: both tests now pass the absolute temporary path through cmd.exe /c. With a valid temp root containing &, cmd.exe parses the ampersand as a command separator and both tests fail. Since each call already sets cwd to the batch directory, please pass r'.\_build.cmd' (or otherwise avoid cmd.exe parsing the path) in both tests, while keeping NoDefaultCurrentDirectoryInExePath=1 so the original case remains covered. This was reproduced on 51f9fabe; the independent check reports that the relative argument passes all six test cases with the ampersand path.
Review on ItsNotRexed#3380: `cmd.exe /c <full path>` splits a temp path that holds ` & `, which the bare name never did. An explicit `.\` relative name is still found with NoDefaultCurrentDirectoryInExePath set (that only blocks bare names), and both calls already run with the batch's folder as cwd. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@Vonsek thanks, reproduced: at |
|
@slint6614-dev thanks, that's the same case @Vonsek found. It's fixed in |
|
Tested
AI-assisted (Claude Code). No game files. |
|
TEST-852 overlaps this fix, so I?m holding the local patch and sharing the current-main regression here. Since #2515, On native Windows with uv CPython 3.12.13, both qualifications passed alongside the runtime batch test, preserving exit 0, exit 17 and restoration to code page 437. This was checked on |
Rebased on main (aa2988c). Since ItsNotRexed#2515 the llvm-mc test starts a check-console.cmd wrapper that calls _build.cmd, and the runtime half moved to tests/test_build_runtime_batch.py, which passes the full path. - test_build_llvm_mc_batch.py: r".\check-console.cmd" in Python and `call .\_build.cmd` in the wrapper, run with NoDefaultCurrentDirectoryInExePath=1. With that set, cmd.exe skips the current folder for a bare name; qualifying only the outer name still fails both exit-status subtests. - test_build_runtime_batch.py: r".\_build.cmd" instead of the full path, which cmd.exe /c splits when the temp folder holds ` & `. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
719dd1d to
cd6fc07
Compare
|
Rebased on Thanks @whattheflop: you were right that both names need qualifying. Both tests pass in all 16 temp-folder × variable combinations (default / @slint6614-dev, could you take another look when you have a moment? |
|
Tested 719dd1d on Windows 11 (CPU-only, tests only): the fix works, but the PR conflicts with current main.
AI-assisted: this test run was done with Claude Code; the numbers above are its unedited output. |
|
Thanks @oVolkra. The rebase landed just before your run: |
|
Verified head cd6fc07 (Windows 11, Python 3.13, no GPU needed). Test-only change; it merges cleanly on
No game data. AI-assisted (Claude Code). |
|
Tested cd6fc07 on Windows 11 Home 10.0.26200 (Python 3.13.14; CPU only, no GPU involved): pass.
#4218 changes the same lines of No game files. AI-assisted (Claude Code). |
|
Verified on Linux — this is already on main, implemented slightly more robustly: 9f5dfec (2026-11-22) runs the runtime batch regression via ._build.cmd under NoDefaultCurrentDirectoryInExePath=1 (test_build_runtime_batch.py:42), and 02de16b does the LLVM side via .\check-console.cmd plus call %~dp0_build.cmd, which additionally survives temp paths containing ampersands. The branch now conflicts with those files (re-confirmed) and adds nothing that is missing. Recommend closing. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
slint6614-dev
left a comment
There was a problem hiding this comment.
Re-checked at cd6fc073 on Windows 11 (build 26300), Python 3.12: both tests/test_build_runtime_batch.py and tests/test_build_llvm_mc_batch.py pass with TEMP at the default and at C:\Users\<me>\tmp a & b, each with NoDefaultCurrentDirectoryInExePath unset and set to 1 (8/8 OK). My earlier request is addressed, thanks @ezbyDev.
One heads-up: main has since received the same fix through #2497/#2515 (both tests already call .\\... with NoDefaultCurrentDirectoryInExePath=1, and the llvm-mc wrapper calls "%~dp0_build.cmd"). The same 8 runs pass on main 3faac557, and this branch now conflicts in tests/test_build_llvm_mc_batch.py. So this PR may only need a rebase that drops what main already has, or closing if nothing is left.
|
Closing as superseded: #367 landed the same fix on AI-assisted (Claude Code). |
Claim: #3232 (comment) (TEST-668)
What changed and why
The tests that run a generated
_build.cmdstarted it by a bare name (or, on currentmain, by its full path). Both forms break:NoDefaultCurrentDirectoryInExePathset,cmd.exedoes not search the current folder for a bare command name, so the tests fail with"_build.cmd" is not recognizedeven though the batch writer under test is fine. Claude Code sets this variable, so agent-driven runs on Windows hit it.cmd.exe /csplits a full path that holds&(found by @Vonsek and @slint6614-dev in review).Rebased on
mainaa2988cc. Since #2515,tests/test_build_llvm_mc_batch.pystarts acheck-console.cmdwrapper that calls_build.cmd, and the runtime half moved fromtest_build_runtime_fallback.pytotests/test_build_runtime_batch.py, which passes the full path. As @whattheflop found (TEST-852, released in favour of this PR), both names need qualifying:tests/test_build_llvm_mc_batch.py:r".\check-console.cmd"in the Python call andcall .\_build.cmdinside the wrapper, withNoDefaultCurrentDirectoryInExePath=1set for thatcmd.execall so CI covers the case whatever the runner's environment.tests/test_build_runtime_batch.py:r".\_build.cmd"instead ofstr(batch_path)(it already set the variable).An explicit relative name is found with the variable set (it only blocks bare names), and both calls already run with the batch's folder as
cwd. Tests only; no script, tool or game-data change.Tests (Windows 11, Python 3.12.10, CPU only, no GPU used)
16 runs per side:
TEMPas the default, a folder holding&, one holding(x)and one holding東京; the variable set or unset in the outer environment.mainaa2988cc:test_build_llvm_mc_batch.pyfails in all 8 runs with the variable set (failures=2, both exit-status subtests) and passes with it unset;test_build_runtime_batch.pyfails in the 2&runs (errors=1) and passes in the other 14.call _build.cmdin the wrapper) fails both subtests with"_build.cmd" is not recognized, so both qualifications are needed.python -m compileall -qon both files: OK.AI-assisted (Claude Code).