mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #1750] batch_glb: catch colliding output names before conversion #1765
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#1765
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/1750
Author: @kirigayakazima
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/batch-glb-output-name-collision📝 Commits (1)
c50c856batch_glb: catch colliding output names before conversion📊 Changes
2 files changed (+65 additions, -1 deletions)
View changed files
📝
tests/test_batch_glb.py(+36 -0)📝
tools/batch_glb.py(+29 -1)📄 Description
Claimed in the coordination issue as: BATCH-GLB-OUTPUT-NAME-COLLISION
What and why
The converter drops the final OBJ extension when naming the output. On a source that contains both
car.objandcar.OBJ, both workers therefore publishcar.glb. The old summary counted two successful exports. The batch now checks potentially colliding stems before starting any workers. It tests similar names in a temporary directory on the output volume, so distinct output spellings remain available where the filesystem supports them.Tested
On the baseline the duplicate-stem regression completed conversion instead of raising. On the branch it identifies both inputs, preserves an existing GLB, and leaves an unrelated output untouched. A second test checks case-distinct stems against the local volume. On Windows the test simulates the case-sensitive source directory listing.
python -I tests/test_batch_glb.pypassed all 18 tests on this branch (Windows, Python 3.14.7).git diff --checkand the repository game-data scan of all changed paths passed.bcaa13dapassed 6,287 semantic tests across 488 files.GPUs tested: N/A (CPU-only asset tooling).
AI-assisted: Yes.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.