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

Merged
leonida/mandy
delysidemanYT1 merged 1 commit from gpu-disasm-scratch-error into main 2026-11-28 23:50:08 +00:00

Pull request successfully merged and closed

delysidemanYT1 commented 2026-11-25 12:58:35 +00:00

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).

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

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.

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

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.)

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 reviewed 2026-11-25 17:12:21 +00:00
MoonEyes left a comment
No description provided.
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

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).

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

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.

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 description provided.