Repository navigation
Conversation
…rk dir is created, not a traceback Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Grimkeh
left a comment
There was a problem hiding this comment.
Independent Linux CPU review
What changed: check_argv_modes records a hung child (TimeoutExpired) as a failure, creates a missing work dir, and turns missing loader/fixtures into a usage error.
Checked: tests/test_check_argv_modes.py — 2 passed, 2 skipped (Windows-only main).
Looks correct; no game files.
|
Tested on Apple M1 Max, macOS 27.2.1 arm64, Python 3.12.16: |
|
Verified head
AI-assisted. |
|
Live child-process check of f20c19bf on native Windows x64, CPython 3.12.8, and MSVC 19.44.35230. The unchanged In a separate run, a temporary test wrapper substituted one sleeping Python process for the first mapped child. The PR code recorded the real 15-second timeout and exited 1 after writing all 26 report rows. Only that pair failed. The other 25 completed successfully using the real loader and fixtures. The four stock unit tests also passed. Synthetic inputs only. AI-assisted. |
|
AI-assisted independent verification of f20c19b. Both portable run() tests passed on Linux, including the hung-child result. The two main() integration cases require native Windows and were skipped. |
New BUILD item, claimed in #8868 (comment).
run()calledsubprocess.run(..., timeout=15)without handlingTimeoutExpired, so one hung child abortedmain()with a traceback and lost the remaining native/mapped pairs and the--reportJSON; and--work-dirwas resolved withresolve(strict=True), so a work folder that did not exist yet was aFileNotFoundErrortraceback.check_module_names.pyalready handles both. Nowrun()returns a recorded failure (exit_code: None,error: "child exceeded 15 seconds") that the comparison loop adds to that case's problems, so the other cases still run and the report is still written;main()creates the work folder (mkdir(parents=True, exist_ok=True)); a missing loader or fixtures folder is oneparser.error("not found: ...")line instead of a traceback (strict=Trueis kept on both).Depends on: none. #8626 edits this file for another topic (slot 25 fixtures); the diff here is small, so the rebase should be easy.
AI-assisted. Tested on Windows 11, Python 3.14.3, CPU only, no GPU, no game files (the script itself needs the native MSVC fixtures; the tests drive it with dummy loader/fixture files and a patched
subprocess.run):tests/test_check_argv_modes.py4 OK (new file; the twomain()tests skip off Windows). On the unfixed code 3 of the 4 fail; the fourth is the control for a normal child.py_compile,scripts/check_no_game_data.pyon the changed files andgit diff --checkare clean.🤖 Generated with Claude Code