[PR #1310] GPU-RUNNER-OUTPUT-DECODE: keep diagnostics with undecodable bytes #1340

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

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

  • aaf5926 GPU-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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1310 **Author:** [@delysidemanYT1](https://github.com/delysidemanYT1) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `gpu-runner-output-decode` --- ### 📝 Commits (1) - [`aaf5926`](https://github.com/ubiquitarianism/leonida/commit/aaf5926724de88f2e8555cfe6dec8fd658a9a117) GPU-RUNNER-OUTPUT-DECODE: keep diagnostics with undecodable bytes ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_gpu_tests.py` (+3 -1) </details> ### 📄 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). --- <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#1340
No description provided.