mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1310] GPU-RUNNER-OUTPUT-DECODE: keep diagnostics with undecodable bytes #1340
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1340
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1310
Author: @delysidemanYT1
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:gpu-runner-output-decode📝 Commits (1)
aaf5926GPU-RUNNER-OUTPUT-DECODE: keep diagnostics with undecodable bytes📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
scripts/run_gpu_tests.py(+3 -1)📄 Description
Claimed in the coordination issue as: GPU-RUNNER-OUTPUT-DECODE
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145221122
Use backslashreplace with the existing host encoding for captured GPU runner subprocess output. Undecodable bytes are shown as escapes, and the process exit code and surrounding stdout/stderr stay available for the result and diagnostic.
Verified on Windows with a synthetic child that emits invalid UTF-8 bytes to both streams and exits 7. Before the fix, the pipe readers failed and the runner raised TypeError. After the fix, it retains code 7 and both messages. Normal ASCII dump parsing also passed, along with all 95 GPU runner unit tests and git diff --check. No GPU execution or game files. AI-assisted (Codex).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.