tools: guard malformed gfx_off and bool vertex_count in skinned GLB export #258
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!258
Loading…
Reference in a new issue
No description provided.
Delete branch "work/build-1532-skinned-glb"
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 successfully merged and closed
Claimed in the coordination issue as: BUILD-1532 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140050149)
What and why
mainand squashed into one clean commit (691c178e2).boolvertex_countand malformed ("",bool,float,inf)gfx_offcleanly withSkinErrorintools/skinned_glb.py, while preservinggfx_off=None/ absent defaulting to0.test_malformed_gfx_off_and_none_default,test_bool_vertex_count_is_rejected) intests/test_skinned_glb.py.Tested
python -I tests/test_skinned_glb.py(32 tests OK) on commit691c178e2.tests/test_docs_*.py(OK) on commit691c178e2.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.Not merging yet. The malformed-
gfx_offcrash does reproduce (gfx_off: "abc"gives a ValueError traceback). Please:tests/test_skinned_glb.pyfor a badgfx_offand a boolvertex_count; the description mentions regression coverage, but the diff has none;""andFalseforgfx_offis intended. Main accepted both as 0.@ubiquitarianism Updated in commit
691c178e2:test_malformed_gfx_off_and_none_default,test_bool_vertex_count_is_rejected) intests/test_skinned_glb.py.gfx_off=None/absent still defaults to0, while malformed values ("",bool,float) forgfx_offandboolforvertex_countare rejected intentionally.Verified:
python -I tests/test_skinned_glb.py(32 tests OK) and all 12tests/test_docs_*.py(OK).Rebased on current ubi/main (3f81d46ac), no conflicts. The added tests pass locally on this base (python -I).
AI-assisted: yes
Red/green: tests/test_skinned_glb.py fails on main (7 failures and 2 errors: ValueError on gfx_off='abc', OverflowError on inf, bool vertex_count accepted) and passes with the PR merged, on GitHub Actions Linux and natively on Windows.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)