OLD-10033: wave32_pixel_scan: use shared same_report_path and catch --out write OSError #898

Open
github-bot wants to merge 1 commit from github-bot/gh-898 into main AGit
Owner

@⁠klikso on GitHub · 2026-11-24 15:02 UTC · original
klikso:carry/old-10033-wave32-pixel-scan → main · +61 −3 · 2 files · 1 commits · open

Claimed in the coordination issue as: OLD-10033

What and why

Carries forward old-pr/10033 (draft #301) rebased onto current main:

  • Replaces os.path.samefile with shared report_paths.same_report_path in tools/wave32_pixel_scan.py to prevent output from colliding with or overwriting scanned listings, honoring volume case rules and canonicalization.
  • Catches OSError during output JSON writing and exits with code 2 and a clean error message rather than an unhandled traceback.
  • Adds regression unit tests in tests/test_wave32_pixel_scan.py covering 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 passed
  • python -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: passed
  • python -I tests/test_report_paths.py: 22/22 passed
  • python -m compileall -q make_game.py tools tests: clean

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.
**@⁠klikso** on GitHub · 2026-11-24 15:02 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/898) `klikso:carry/old-10033-wave32-pixel-scan` → `main` · +61 −3 · 2 files · 1 commits · open Claimed in the coordination issue as: OLD-10033 ### What and why Carries forward `old-pr/10033` (draft #301) rebased onto current `main`: - Replaces `os.path.samefile` with shared `report_paths.same_report_path` in `tools/wave32_pixel_scan.py` to prevent output from colliding with or overwriting scanned listings, honoring volume case rules and canonicalization. - Catches `OSError` during output JSON writing and exits with code 2 and a clean error message rather than an unhandled traceback. - Adds regression unit tests in `tests/test_wave32_pixel_scan.py` covering 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 passed - `python -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`: passed - `python -I tests/test_report_paths.py`: 22/22 passed - `python -m compileall -q make_game.py tools tests`: clean GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:27:05 +00:00
Author
Owner

@⁠LewisStephens99 on GitHub · 2026-11-24 15:09 UTC · original

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.

**@⁠LewisStephens99** on GitHub · 2026-11-24 15:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/898#issuecomment-7135556269) 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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/898/head:github-bot/gh-898'
git switch 'github-bot/gh-898'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-898'
git switch 'github-bot/gh-898'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-898'
git switch 'github-bot/gh-898'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-898'
git switch 'main'
git merge --squash 'github-bot/gh-898'
git switch 'main'
git merge --ff-only 'github-bot/gh-898'
git switch 'main'
git merge 'github-bot/gh-898'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.