OLD-10033: wave32_pixel_scan: use shared same_report_path and catch --out write OSError #898
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/898"
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 klikso on 2026-11-24T15:02:56Z.
Claimed in the coordination issue as: OLD-10033
What and why
Carries forward
old-pr/10033(draft #301) rebased onto currentmain:os.path.samefilewith sharedreport_paths.same_report_pathintools/wave32_pixel_scan.pyto prevent output from colliding with or overwriting scanned listings, honoring volume case rules and canonicalization.OSErrorduring output JSON writing and exits with code 2 and a clean error message rather than an unhandled traceback.tests/test_wave32_pixel_scan.pycovering path aliasing, folded names, and output write failures.Original commit preserved:
EspadaHD <[email protected]>.Tested
python -I tests/test_wave32_pixel_scan.py: 15/15 passedpython -I scripts/check_no_game_data.py tools/wave32_pixel_scan.py tests/test_wave32_pixel_scan.py: passed (no game data)python -I tests/test_text_write_line_endings.py: passedpython -I tests/test_report_paths.py: 22/22 passedpython -m compileall -q make_game.py tools tests: cleanGPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.Imported from ubiquitarianism/leonida. Originally posted by LewisStephens99 on 2026-11-24T15:09:37Z.
Independent verification on Windows 11, Python 3.14:
n-python -I tests/test_wave32_pixel_scan.py: 15/15 passed.n- No game data or GPU used. AI-assisted.Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-28T10:45:59Z.
#898 | head
881377b4923a590623a1e1a16731ca171e6d1986|python3 -I tests/test_wave32_pixel_scan.py -v| red: 15 run, 2 errors | green: 15 passed | Red → greenThe baseline errored on output-path alias checking and the simulated output-write failure. The merged CLI handled both.
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 DadaCap on 2026-11-28T11:51:57Z.
Merged, thank you @klikso! This translator PR (OLD-10033: wave32_pixel_scan: use shared same_report_path and catch --out write OSError) passed its own tests with main merged in during sodove's verification of this batch, so it went in with the batch.
AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.