Reject shader indexes with a non-object root before pipeline checks (PIPELINE-INDEX-TOP-LEVEL-OBJECT) #2042

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

@⁠alexandersato0830 on GitHub · 2026-11-25 18:50 UTC · original
alexandersato0830:codex/pipeline-index-top-level-object → main · +23 −0 · 2 files · 1 commits · open

Claimed in the coordination issue as: PIPELINE-INDEX-TOP-LEVEL-OBJECT

What and why

The native checker expects a top-level JSON object for the translated shader index. The build wrapper currently accepts any nonempty JSON value, then clears previous pipeline crash diagnostics and launches the checker. Reject an array, string, number or other non-object at the shared pipeline prerequisite, before touching those diagnostics.

Tested

  • py -3.14 -I tests/test_make_game_pipelines.py passed all 19 tests. The new synthetic regression failed for all three inputs on 9f9a7c5f3. With the fix, every input is rejected before the checker runs and the previous crash report stays intact.
  • py -3.14 -I tests/test_make_game_preflight.py ran 98 tests with two platform-dependent skips and no failures.
  • git diff --check and the source-only check passed on Windows 11 with Python 3.14.

GPUs tested: n/a (synthetic index, mocked checker)

AI-assisted: yes (Codex)

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys or decryption.
**@⁠alexandersato0830** on GitHub · 2026-11-25 18:50 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2042) `alexandersato0830:codex/pipeline-index-top-level-object` → `main` · +23 −0 · 2 files · 1 commits · open Claimed in the coordination issue as: [PIPELINE-INDEX-TOP-LEVEL-OBJECT](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why The native checker expects a top-level JSON object for the translated shader index. The build wrapper currently accepts any nonempty JSON value, then clears previous pipeline crash diagnostics and launches the checker. Reject an array, string, number or other non-object at the shared pipeline prerequisite, before touching those diagnostics. ### Tested - `py -3.14 -I tests/test_make_game_pipelines.py` passed all 19 tests. The new synthetic regression failed for all three inputs on `9f9a7c5f3`. With the fix, every input is rejected before the checker runs and the previous crash report stays intact. - `py -3.14 -I tests/test_make_game_preflight.py` ran 98 tests with two platform-dependent skips and no failures. - `git diff --check` and the source-only check passed on Windows 11 with Python 3.14. GPUs tested: n/a (synthetic index, mocked checker) AI-assisted: yes (Codex) ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys or decryption.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:15:52 +00:00
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/2042/head:github-bot/gh-2042'
git switch 'github-bot/gh-2042'

Merge

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