mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #2042] Reject shader indexes with a non-object root before pipeline checks (PIPELINE-INDEX-TOP-LEVEL-OBJECT) #2047
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2047
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
9200934Reject 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.pypassed all 19 tests. The new synthetic regression failed for all three inputs on9f9a7c5f3. 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.pyran 98 tests with two platform-dependent skips and no failures.git diff --checkand 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
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.