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

Merged
leonida/mandy
delysidemanYT1 merged 1 commit from gpu-runner-probe-json into main 2026-11-28 08:03:13 +00:00

Pull request successfully merged and closed

delysidemanYT1 commented 2026-11-24 21:58:31 +00:00

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

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

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

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.

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 description provided.