Repository navigation
tests: update test_build_batch_launch for build_runtime.ps1 hidden launch - #7120
limpan1212 wants to merge 1 commit into
Conversation
|
No blocking findings. This is a sound, scoped update to restore the batch-launch regression tests after The updated The The execution checks remain meaningful: each script’s extracted arguments must run a synthetic batch file in all six folder variants and propagate both exit codes, One non-blocking coverage limitation: the hidden-launch options are reconstructed in the test and selected by script filename; only the argument expression is extracted from the production script. Consequently, this tests batch execution under the current hidden/redirection configuration, but does not verify the production continuation lines, redirected log contents, log forwarding, or actual window visibility. Extending the synthetic batch to emit distinct stdout/stderr markers and asserting their log contents would strengthen redirection coverage. Verification completed without game files on Windows 11 Pro, CPython 3.13.14, Windows PowerShell 5.1.26100.10068:
The supplied The diff introduces no game data, keys, encryption bypass, or online-service access. It follows the fix-don’t-disable contract by adapting the tests to the current launch behavior while retaining execution assertions and the negative control. No translator rule or runtime-contract change requires a AI-assisted. |
|
Tested 9c66342 merged with main 8575d36 on Windows/Python 3.13.1: pass The PR changes only tests/test_build_batch_launch.py, and the real launch test is skipped off Windows, so I ran it on native Windows (PowerShell 5.1, Python 3.13.1) in a scratch worktree with the merged test file and main's scripts/build_runtime.ps1 and scripts/build_llvm_mc.ps1:
Diff read: the LAUNCH regex now accepts an optional |
devnull34
left a comment
There was a problem hiding this comment.
Verified on Windows 11:
python -m unittest tests/test_build_batch_launch.pypassed all 3 tests (5.372s).- Validated
LaunchLineParseTestandBatchLaunchTestmatchingbuild_runtime.ps1's-WindowStyle Hiddenand redirected output launch line while preserving unquoted failure detection. - Whitespace clean (
git diff HEAD~1..HEAD --check).
|
Independent native Windows/PowerShell/Python 3.15 verification at 9c66342: python -I tests/test_build_batch_launch.py passes 3/3 in an isolated worktree. Native launch cases ran, including the quote-dropping negative control. The current-main audit at 8575d36 reproduces the old parser failure (build_runtime.ps1 launch found 0), while this head passes. Synthetic batch files only, no GPU/game files. AI-assisted (Codex). |
|
Tested 9c66342 merged onto main
It merges cleanly together with #7092 #6049 #6513 #7242 #7209 #6254 #7214 #6957 #7309 #4771 #7029 #7094 #7129 #6508 #7152 #7174 #7032 onto main; with all of them applied, the only standalone test still red on Windows is No GPU or game files needed. AI-assisted (Claude Code); I read the diff before running it. |
|
Tested 9c66342 on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass. Ran the test files this PR adds or changes, from a clean checkout of the PR head: AI-assisted (Claude Code). |
|
Windows check: with this PR (head 9c66342) merged onto So |
Claim: #7049 (comment)
What changed and why
#1797changedscripts/build_runtime.ps1(lines 118-121) fromStart-Process cmd.exe -ArgumentList ... -NoNewWindow -PassThrutoStart-Process -FilePath cmd.exe -ArgumentList ... -PassThru -WindowStyle Hidden -RedirectStandardOutput ... -RedirectStandardError ...so the TUI board can capture output cleanly.tests/test_build_batch_launch.pystill required-NoNewWindow -PassThruwithout-FilePath, causinglaunch_arguments(build_runtime.ps1)to fail on Windows CI (found 0).LAUNCHintests/test_build_batch_launch.pyto match bothbuild_runtime.ps1andbuild_llvm_mc.ps1, exercised the-WindowStyle Hidden+ redirected-log form forbuild_runtime.ps1instart()/BatchLaunchTest, and addedLaunchLineParseTestso launch-line drift is caught on non-Windows platforms too.Tests run (Windows 11, Python 3.12.10, CPU-only, no GPU used, no game files)
python -I tests/test_build_batch_launch.py -v— failed before (found 0forbuild_runtime.ps1), pass after (3/3 OK, all 6 special-character folders and exit codes 0 and 7 for both scripts)python -I -m compileall -q tests/test_build_batch_launch.py— pass (exit 0)python -I scripts/check_no_game_data.py— pass (exit 0)AI-assisted.