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

Merged
delysidemanYT1 merged 1 commit from upstream-pr/1333 into main 2026-11-28 08:03:13 +00:00
delysidemanYT1 commented 2026-11-24 21:58:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by delysidemanYT1 on 2026-11-24T21:58:31Z.


Claimed in the coordination issue as: GPU-RUNNER-PROBE-JSON
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145593530

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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5481023785 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1333). Originally posted by [delysidemanYT1](https://github.com/delysidemanYT1) on 2026-11-24T21:58:31Z. --- Claimed in the coordination issue as: GPU-RUNNER-PROBE-JSON Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145593530 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).
whoalin1 commented 2026-11-24 23:25:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-24T23:25:16Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7147379367 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1333#issuecomment-7147379367). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-24T23:25:16Z. --- 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.
DadaCap commented 2026-11-28 08:03:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T08:03:16Z.


Merged into main (merge commit 8509d368b), approved by DadaCap (maintainer). Thanks!

Checked before merging: Tested in our local release candidate (main + 41 PRs): translator suite 512 files / 6,442 tests clean, Python suite with no new failure versus main, and 360 s game runs on an RTX 5080 with no regression. The merge was pinned to the head commit that was tested (75a5d6e96).

AI-assisted (Claude Code), posted for DadaCap.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7236331513 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1333#issuecomment-7236331513). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-28T08:03:16Z. --- Merged into `main` (merge commit 8509d368b), approved by DadaCap (maintainer). Thanks! Checked before merging: Tested in our local release candidate (main + 41 PRs): translator suite 512 files / 6,442 tests clean, Python suite with no new failure versus main, and 360 s game runs on an RTX 5080 with no regression. The merge was pinned to the head commit that was tested (75a5d6e96). _AI-assisted (Claude Code), posted for DadaCap._
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1333
No description provided.