wave64_graphics_scan: harden --out guards, OSError privacy, atomic JSON, and tie-breaking (WAVE64-GRAPHICS-SCAN-CLI-AND-IO) #1582
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1582"
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?
Imported from ubiquitarianism/leonida. Originally posted by IlyassRS3 on 2026-11-25T05:05:35Z.
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)
Imported from ubiquitarianism/leonida. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-25T05:05:43Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from ubiquitarianism/leonida. Originally posted by GeorgiyDemo on 2026-11-25T05:20:07Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-28T10:44:35Z.
#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.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T10:54:57Z.
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)