[PR #1302] GPU-RUNNER-TEMP-ERROR: report temporary directory creation failures #1332

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

📋 Pull Request Information

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

Base: main ← Head: gpu-runner-temp-error


📝 Commits (1)

  • e8960d3 GPU-RUNNER-TEMP-ERROR: report temporary directory creation failures

📊 Changes

1 file changed (+12 additions, -4 deletions)

View changed files

📝 scripts/run_gpu_tests.py (+12 -4)

📄 Description

Claimed in the coordination issue as: GPU-RUNNER-TEMP-ERROR
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145037818

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


🔄 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/1302 **Author:** [@delysidemanYT1](https://github.com/delysidemanYT1) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `gpu-runner-temp-error` --- ### 📝 Commits (1) - [`e8960d3`](https://github.com/ubiquitarianism/leonida/commit/e8960d3c58f0f998a19b0c9983110750ce5bebc6) GPU-RUNNER-TEMP-ERROR: report temporary directory creation failures ### 📊 Changes **1 file changed** (+12 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_gpu_tests.py` (+12 -4) </details> ### 📄 Description Claimed in the coordination issue as: GPU-RUNNER-TEMP-ERROR Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145037818 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). --- <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#1332
No description provided.