GPU-DISASM-SCRATCH-ERROR: Report GPU disassembly staging failures before translation #1841
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1841"
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 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).
Imported from ubiquitarianism/leonida. Originally posted by GeorgiyDemo on 2026-11-25T14:08:51Z.
Tested
4dae81e91on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), againstmain71a769d7d(GPU test tooling; no GPU run):python3 -I tests/test_run_gpu_tests_paths.py: 23 tests, OK at this head.main: 2 errors —test_cannot_create_disassembly_staging_directoryandtest_cannot_copy_disassembly_into_staging_directory; the translator-is-not-called assertions are part of those tests.AI-assisted; synthetic fixtures only, no game data.
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:(AI-assisted test run; output checked by hand.)
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).
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-28T23:38:21Z.
Tested
4dae81e91merged (no commit) withmainaa918e5d9: Python 3.12.4, Windows 11 10.0.26300, CPU only.check_no_game_data.pyis clean.tests/test_run_gpu_tests_paths.py, 23 tests pass.scripts/run_gpu_tests.pyback tomain, 2 tests error (PermissionError: access denied).No blocker from my side.
AI-assisted (Claude Code).
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
main79c22b9f0without conflict, and its test file(s) (tests/test_run_gpu_tests_paths.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.