wave64_graphics_scan: harden --out guards, OSError privacy, atomic JSON, and tie-breaking (WAVE64-GRAPHICS-SCAN-CLI-AND-IO) #1582
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1582
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/wave64-graphics-scan-cli-and-io"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Item:
WAVE64-GRAPHICS-SCAN-CLI-AND-IO(unclaimed — coordination issue #14 is at GitHub's 2,500-comment cap with no successor open issue yet, and 0 open PRs touchtools/wave64_graphics_scan.py).Summary
--outvalues instead of silently skipping--out ""or creating a whitespace-named file for--out " ", and validate the resolved symlink target's parent directory before scanning.OSErrorwhen enumerating/reading shader listings or writing--outand exit cleanly with code 2, stripping scanned shader filenames from error details so names stay inside the work folder.--outJSON atomically viafile_mode.published_mode+replace_retry.replacewithallow_nan=Falseand a trailing\nbefore printing stdout, preserving any existing report on write failure and leaving non-regular targets (e.g./dev/null) intact.(-count, op)) inoccurrencesandmask_word_sourcefor deterministic JSON and console output.Verification
python3 -W error -I tests/test_wave64_graphics_scan.py -v: 24/24 passed.python3 -I tests/test_text_write_line_endings.py: 3/3 passed.python3 -I scripts/check_no_game_data.py tools/wave64_graphics_scan.py tests/test_wave64_graphics_scan.py: passed.python3 -m compileall -q tools/wave64_graphics_scan.py tests/test_wave64_graphics_scan.py: passed.main:tools/wave64_graphics_scan.py):failures=5, errors=3across all new assertions.AI-assisted: yes
GPUs tested: none (CPU-only Python tool; synthetic fixtures only, no game data)
Tested
7817a454aon Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), againstmainc7e82e26e(Python tool; no GPU):tests/test_wave64_graphics_scan.py: 24 passed, 2 subtests passed at this head.main: 8 failed, 18 passed — the--outguards, atomic write and the unreadable-listing/name-leak handling are not there.AI-assisted; synthetic fixtures only, no game data.
#1582 | head
7817a454aec547f40d3bbb9723b20c0766cf9db8|python3 -I tests/test_wave64_graphics_scan.py -v| red: 24 run, 5 failures, 3 errors | green: 24 passed | Red → greenThe CLI tests exercised output-path validation, failed writes and atomic publication of the scan report.
Base
3bd936ecd98995bca3e1da83d5e28d2343001aefwas merged into the recorded PR head for the second run. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Counts include unittest subtest events where applicable. AI-assisted with OpenAI Codex. Batch claim.Red/green: the PR's tests fail on main and pass with this PR (Linux, Python 3.13.18).
Targeted batch of 19 PRs (their tests, the tests importing the changed modules, the docs tests) on main 3ca0707: no new failure, Linux / Python 3.13.
AI-assisted (Claude Code, Claude Opus 5.5)