GPU-RUNNER-TEMP-ERROR: report temporary directory creation failures #1302

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

@⁠delysidemanYT1 on GitHub · 2026-11-24 21:33 UTC · original
delysidemanYT1:gpu-runner-temp-error → main · +12 −4 · 1 files · 1 commits · open

Claimed in the coordination issue as: GPU-RUNNER-TEMP-ERROR
Claim: #14

When creating the default scratch directory fails, report the OS error, suggest a writable --work directory and exit with status 2 instead of a traceback. Explicit work directories still use the existing diagnostic. Temporary directories are still cleaned after the suite runs.

Verified on Windows: reproduced the uncaught PermissionError beforehand. After the fix, a mocked PermissionError returns 2, includes the OS error and --work hint, and does not start the suite. Also checked scratch cleanup for successful and failed suite returns. All 95 GPU runner unit tests and git diff --check passed. No GPU execution or game files required. AI-assisted (Codex).

**@⁠delysidemanYT1** on GitHub · 2026-11-24 21:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1302) `delysidemanYT1:gpu-runner-temp-error` → `main` · +12 −4 · 1 files · 1 commits · open Claimed in the coordination issue as: GPU-RUNNER-TEMP-ERROR Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 When creating the default scratch directory fails, report the OS error, suggest a writable --work directory and exit with status 2 instead of a traceback. Explicit work directories still use the existing diagnostic. Temporary directories are still cleaned after the suite runs. Verified on Windows: reproduced the uncaught PermissionError beforehand. After the fix, a mocked PermissionError returns 2, includes the OS error and --work hint, and does not start the suite. Also checked scratch cleanup for successful and failed suite returns. All 95 GPU runner unit tests and git diff --check passed. No GPU execution or game files required. AI-assisted (Codex).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:46:39 +00:00
Author
Owner

@⁠fin-github on GitHub · 2026-11-24 21:41 UTC · original · reviewed

  • scripts/run_gpu_tests.py compiles. tests/test_run_gpu_tests.py (64) and tests/test_run_gpu_tests_paths.py (21)
    pass on the PR.

The change reads right: a failing mkdtemp() now gives an error and exit 2 instead of a traceback, and --work
keeps its old message. Nothing tests the new branch, though. A small case in tests/test_run_gpu_tests_paths.py
that patches tempfile.mkdtemp to raise OSError and expects exit 2 plus the "Pass --work" hint would keep it from
quietly regressing.

Tested on Windows 11 Pro 26200, CPython 3.14.4, applied on main 4a50cafc7. No GPU or game files used. AI-assisted (Claude Code).

**@⁠fin-github** on GitHub · 2026-11-24 21:41 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1302#pullrequestreview-6047868266) · **reviewed** - `scripts/run_gpu_tests.py` compiles. `tests/test_run_gpu_tests.py` (64) and `tests/test_run_gpu_tests_paths.py` (21) pass on the PR. The change reads right: a failing `mkdtemp()` now gives an error and exit 2 instead of a traceback, and `--work` keeps its old message. Nothing tests the new branch, though. A small case in `tests/test_run_gpu_tests_paths.py` that patches `tempfile.mkdtemp` to raise `OSError` and expects exit 2 plus the "Pass --work" hint would keep it from quietly regressing. Tested on Windows 11 Pro 26200, CPython 3.14.4, applied on main 4a50cafc7. No GPU or game files used. AI-assisted (Claude Code).
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/1302/head:github-bot/gh-1302'
git switch 'github-bot/gh-1302'

Merge

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