tools: guard malformed gfx_off and bool vertex_count in skinned GLB export #258
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/258"
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?
Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T02:54:22Z.
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.Imported from ubiquitarianism/leonida. Originally posted by ubiquitarianism on 2026-11-24T03:14:43Z.
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.Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T18:32:35Z.
@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).Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-25T08:58:00Z.
Rebased on current ubi/main (
3f81d46ac), no conflicts. The added tests pass locally on this base (python -I).AI-assisted: yes
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T18:51:53Z.
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
7daa4a4a5in GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)