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

Open
opened 2026-11-26 21:19:51 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2042
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: codex/pipeline-index-top-level-object


📝 Commits (1)

  • 9200934 Reject translated shader indexes with a non-object root

📊 Changes

2 files changed (+23 additions, -0 deletions)

View changed files

📝 make_game.py (+2 -0)
📝 tests/test_make_game_pipelines.py (+21 -0)

📄 Description

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.

🔄 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/2042 **Author:** [@alexandersato0830](https://github.com/alexandersato0830) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/pipeline-index-top-level-object` --- ### 📝 Commits (1) - [`9200934`](https://github.com/ubiquitarianism/leonida/commit/9200934dd0a2856f5552f75978313ed78395ee0e) Reject translated shader indexes with a non-object root ### 📊 Changes **2 files changed** (+23 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `make_game.py` (+2 -0) 📝 `tests/test_make_game_pipelines.py` (+21 -0) </details> ### 📄 Description Claimed in the coordination issue as: [PIPELINE-INDEX-TOP-LEVEL-OBJECT](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7171444495) ### 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. --- <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#2047
No description provided.