[PR #898] OLD-10033: wave32_pixel_scan: use shared same_report_path and catch --out write OSError #937

Open
opened 2026-11-26 20:19:33 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/898
Author: @klikso
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: carry/old-10033-wave32-pixel-scan


📝 Commits (1)

  • 881377b wave32_pixel_scan: use shared same_report_path and catch --out write OSError

📊 Changes

2 files changed (+61 additions, -3 deletions)

View changed files

📝 tests/test_wave32_pixel_scan.py (+53 -0)
📝 tools/wave32_pixel_scan.py (+8 -3)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/898 **Author:** [@klikso](https://github.com/klikso) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry/old-10033-wave32-pixel-scan` --- ### 📝 Commits (1) - [`881377b`](https://github.com/ubiquitarianism/leonida/commit/881377b4923a590623a1e1a16731ca171e6d1986) wave32_pixel_scan: use shared same_report_path and catch --out write OSError ### 📊 Changes **2 files changed** (+61 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_wave32_pixel_scan.py` (+53 -0) 📝 `tools/wave32_pixel_scan.py` (+8 -3) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#937
No description provided.