GPU-DISASM-SCRATCH-ERROR: Report GPU disassembly staging failures before translation #1841

Merged
delysidemanYT1 merged 1 commit from upstream-pr/1841 into main 2026-11-28 23:50:08 +00:00
delysidemanYT1 commented 2026-11-25 12:58:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by delysidemanYT1 on 2026-11-25T12:58:35Z.


Claimed in the coordination issue as: GPU-DISASM-SCRATCH-ERROR
Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163027205

Report permission or I/O failures when creating the selected disassembly directory or copying listings into it. Both regressions use synthetic failures, verify the translator is not called, and cover cleanup after a copy fails.

Targeted checks on Windows: python -m unittest discover -s tests -p test_run_gpu_tests_paths.py and git diff --check. No game files. AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5491784460 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1841). Originally posted by [delysidemanYT1](https://github.com/delysidemanYT1) on 2026-11-25T12:58:35Z. --- Claimed in the coordination issue as: GPU-DISASM-SCRATCH-ERROR Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163027205 Report permission or I/O failures when creating the selected disassembly directory or copying listings into it. Both regressions use synthetic failures, verify the translator is not called, and cover cleanup after a copy fails. Targeted checks on Windows: python -m unittest discover -s tests -p test_run_gpu_tests_paths.py and git diff --check. No game files. AI-assisted (Codex).
GeorgiyDemo commented 2026-11-25 14:08:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GeorgiyDemo on 2026-11-25T14:08:51Z.


Tested 4dae81e91 on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against main 71a769d7d (GPU test tooling; no GPU run):

  • python3 -I tests/test_run_gpu_tests_paths.py: 23 tests, OK at this head.
  • The same file on main: 2 errors — test_cannot_create_disassembly_staging_directory and test_cannot_copy_disassembly_into_staging_directory; the translator-is-not-called assertions are part of those tests.
  • Not run: a real permission failure on a GPU run; both regressions use synthetic I/O failures.

AI-assisted; synthetic fixtures only, no game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7164829001 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1841#issuecomment-7164829001). Originally posted by [GeorgiyDemo](https://github.com/GeorgiyDemo) on 2026-11-25T14:08:51Z. --- Tested `4dae81e91` on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against `main` `71a769d7d` (GPU test tooling; no GPU run): - `python3 -I tests/test_run_gpu_tests_paths.py`: **23 tests, OK** at this head. - The same file on `main`: **2 errors** — `test_cannot_create_disassembly_staging_directory` and `test_cannot_copy_disassembly_into_staging_directory`; the translator-is-not-called assertions are part of those tests. - Not run: a real permission failure on a GPU run; both regressions use synthetic I/O failures. AI-assisted; synthetic fixtures only, no game data.
DeadlyChirp commented 2026-11-25 15:37:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-11-25T15:37:45Z.


Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.

python -m pytest -q tests/test_run_gpu_tests_paths.py:

  • PR: 23 passed. main: 21 passed. The new tests pass on Windows.

(AI-assisted test run; output checked by hand.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7167136345 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1841#issuecomment-7167136345). Originally posted by [DeadlyChirp](https://github.com/DeadlyChirp) on 2026-11-25T15:37:45Z. --- Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main. `python -m pytest -q tests/test_run_gpu_tests_paths.py`: - PR: 23 passed. main: 21 passed. The new tests pass on Windows. (AI-assisted test run; output checked by hand.)
MoonEyes commented 2026-11-25 17:12:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-25T17:12:21Z.

Review: COMMENTED


Independent test report (Windows 11, Python 3.14, origin/main + PR head).

Verdict: LGTM (pre-existing Windows failure is unrelated)
tests/test_run_gpu_tests_paths.py: main 21 passed + 2 failed subtests (with PYTHONUTF8=1; 21 passed without); PR head 23 passed + the same 2 failed subtests (23 passed without PYTHONUTF8) (+2 new tests pass). Mutation check (new tests against old script): both new tests fail (test_cannot_create_..., test_cannot_copy_...), plus the same 2 pre-existing subtests.
Pre-existing, not from this PR: with PYTHONUTF8=1 on a non-English Windows, WorkDirectory.test_file_blocking_work_directory_is_a_cli_error[blocked_child='' and 'spirv'] fails. The child runs with -I, which ignores PYTHONUTF8, so it writes the localized OS error in the ANSI code page (cp1252 here: 0xe9 = "é"). The parent's text=True decodes it as UTF-8, the reader thread raises UnicodeDecodeError, and result.stderr is None (TypeError at line 145). Without PYTHONUTF8 the file passes (21 passed on main, 23 on this PR). Worth a separate issue: pass -X utf8 to the child and encoding="utf-8" to subprocess.run, or decode with errors="replace".
The staging TemporaryDirectory and copy errors now return 2 with a clear message, and the test asserts the staging dir is cleaned up.
AI-assisted: yes (Claude Code ran the tests; I read them).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6061839326 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1841#pullrequestreview-6061839326). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-25T17:12:21Z. **Review:** COMMENTED --- Independent test report (Windows 11, Python 3.14, origin/main + PR head). Verdict: LGTM (pre-existing Windows failure is unrelated) tests/test_run_gpu_tests_paths.py: main 21 passed + 2 failed subtests (with PYTHONUTF8=1; 21 passed without); PR head 23 passed + the same 2 failed subtests (23 passed without PYTHONUTF8) (+2 new tests pass). Mutation check (new tests against old script): both new tests fail (test_cannot_create_..., test_cannot_copy_...), plus the same 2 pre-existing subtests. Pre-existing, not from this PR: with PYTHONUTF8=1 on a non-English Windows, WorkDirectory.test_file_blocking_work_directory_is_a_cli_error[blocked_child='' and 'spirv'] fails. The child runs with -I, which ignores PYTHONUTF8, so it writes the localized OS error in the ANSI code page (cp1252 here: 0xe9 = "é"). The parent's text=True decodes it as UTF-8, the reader thread raises UnicodeDecodeError, and result.stderr is None (TypeError at line 145). Without PYTHONUTF8 the file passes (21 passed on main, 23 on this PR). Worth a separate issue: pass -X utf8 to the child and encoding="utf-8" to subprocess.run, or decode with errors="replace". The staging TemporaryDirectory and copy errors now return 2 with a clear message, and the test asserts the staging dir is cleaned up. AI-assisted: yes (Claude Code ran the tests; I read them).
TheGeogeo commented 2026-11-28 23:38:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-28T23:38:21Z.


Tested 4dae81e91 merged (no commit) with main aa918e5d9: Python 3.12.4, Windows 11 10.0.26300, CPU only. check_no_game_data.py is clean.

  • Green: tests/test_run_gpu_tests_paths.py, 23 tests pass.
  • Red: with scripts/run_gpu_tests.py back to main, 2 tests error (PermissionError: access denied).

No blocker from my side.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247564629 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1841#issuecomment-7247564629). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-28T23:38:21Z. --- Tested `4dae81e91` merged (no commit) with `main` `aa918e5d9`: Python 3.12.4, Windows 11 10.0.26300, CPU only. `check_no_game_data.py` is clean. - Green: `tests/test_run_gpu_tests_paths.py`, 23 tests pass. - Red: with `scripts/run_gpu_tests.py` back to `main`, 2 tests error (`PermissionError: access denied`). No blocker from my side. AI-assisted (Claude Code).
MoonEyes commented 2026-11-28 23:50:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T23:50:10Z.


Merged after TheGeogeo's red/green check (check) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto main 79c22b9f0 without conflict, and its test file(s) (tests/test_run_gpu_tests_paths.py) pass there. Earlier today the same tests failed on main without the PR (red/green) and a bundle with other open PRs showed no new failures. check_no_game_data.py is clean. Windows 11, Python 3.14; no GPU needed for these tests.

AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247695033 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1841#issuecomment-7247695033). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T23:50:10Z. --- Merged after **TheGeogeo**'s red/green check ([check](https://github.com/ProjectLeonida/mandy/pull/1841#issuecomment-7247564629)) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto `main` 79c22b9f0 without conflict, and its test file(s) (`tests/test_run_gpu_tests_paths.py`) pass there. Earlier today the same tests failed on `main` without the PR (red/green) and a bundle with other open PRs showed no new failures. `check_no_game_data.py` is clean. Windows 11, Python 3.14; no GPU needed for these tests. _AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes._
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1841
No description provided.