Repository navigation
Conversation
Grimkeh
left a comment
There was a problem hiding this comment.
Independent Linux CPU review (2ff72b9e)
What changed: semantic_mutants docstring example fix + reject non-positive --timeout.
Checked: test_semantic_mutants 10 OK.
Looks correct; no game files.
|
AI-assisted QA (Codex via T3) at |
|
Tested
Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting. |
Claim: #8504 (comment)
What changed and why
tools/semantic_mutants.py:4): the second usage example passed both--op ds_swizzle_b32and--function swizzle, even though--op,--function, and--linesare in a mutually exclusive group (add_mutually_exclusive_group(required=True)), so running the documented example failed with exit 2 (error: argument --function: not allowed with argument --op). Updated the example to--function swizzle.--timeout(tools/semantic_mutants.py:205-209):--timeout 0or--timeout -1was accepted byargparseand either passed a negative timeout tosubprocess.run(causing an immediate baseline timeout after copyingtools/) or ran with a 0s deadline. Now rejected up front withap.error("--timeout must be at least 1")(exit 2).Tests
Run on Windows 11, CPython 3.12.10, CPU-only (no GPU used, no game files):
python -I tests/test_semantic_mutants.py CliValidation -v— 2/2 OK (test_timeout_below_one_is_usage_error,test_docstring_examples_parse_with_list; both fail onmain)python -I scripts/check_no_game_data.py tools/semantic_mutants.py tests/test_semantic_mutants.py— exit 0python -m compileall -q tools/semantic_mutants.py tests/test_semantic_mutants.py— exit 0python -I tools/semantic_mutants.py --help— exit 0git diff --check upstream/main— cleanNotes