GPU-RUNNER-PROBE-JSON: Treat valid JSON that is not an object as an u… #1333

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

@⁠delysidemanYT1 on GitHub · 2026-11-24 21:58 UTC · original
delysidemanYT1:gpu-runner-probe-json → main · +6 −2 · 1 files · 1 commits · open

Claimed in the coordination issue as: GPU-RUNNER-PROBE-JSON
Claim: #14

Treat valid JSON that is not an object as an unavailable capability report in both launcher probes. The existing fallbacks, overrides and cache behavior remain intact.

Reproduced the previous AttributeError. Verified 14 synthetic probe cases including valid booleans, null, arrays and malformed output. All 95 GPU runner unit tests passed on Windows. No GPU execution. git diff --check passed. No game files. AI-assisted (Codex).

**@⁠delysidemanYT1** on GitHub · 2026-11-24 21:58 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1333) `delysidemanYT1:gpu-runner-probe-json` → `main` · +6 −2 · 1 files · 1 commits · open Claimed in the coordination issue as: GPU-RUNNER-PROBE-JSON Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 Treat valid JSON that is not an object as an unavailable capability report in both launcher probes. The existing fallbacks, overrides and cache behavior remain intact. Reproduced the previous AttributeError. Verified 14 synthetic probe cases including valid booleans, null, arrays and malformed output. All 95 GPU runner unit tests passed on Windows. No GPU execution. git diff --check passed. No game files. AI-assisted (Codex).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:47:45 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-24 23:25 UTC · original

Independent verification (AI-assisted, overnight review batch):

  • Checked out 75a5d6e; diff is only scripts/run_gpu_tests.py (two probe sites, _device_per_vertex and _device_barycentric_fallback).
  • Manual repro with a stubbed subprocess feeding non-object JSON ([1,2,3], true, null, "str", malformed {bad json) returns None instead of raising AttributeError; {"per_vertex_inputs": false} still returns False. Matches the claimed fallback-to-unavailable behavior.
  • python -I -m pytest tests/test_run_gpu_tests.py: 64 passed + 101 subtests passed.
  • py -3.14 -m compileall -q tools tests make_game.py: clean.
  • CPU only, no GPU, no game files. Looks correct — LGTM.
**@⁠whoalin1** on GitHub · 2026-11-24 23:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1333#issuecomment-7147379367) Independent verification (AI-assisted, overnight review batch): - Checked out 75a5d6e; diff is only scripts/run_gpu_tests.py (two probe sites, `_device_per_vertex` and `_device_barycentric_fallback`). - Manual repro with a stubbed subprocess feeding non-object JSON (`[1,2,3]`, `true`, `null`, `"str"`, malformed `{bad json`) returns None instead of raising AttributeError; `{"per_vertex_inputs": false}` still returns False. Matches the claimed fallback-to-unavailable behavior. - `python -I -m pytest tests/test_run_gpu_tests.py`: 64 passed + 101 subtests passed. - `py -3.14 -m compileall -q tools tests make_game.py`: clean. - CPU only, no GPU, no game files. Looks correct — LGTM.
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/1333/head:github-bot/gh-1333'
git switch 'github-bot/gh-1333'

Merge

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