batch_glb: catch colliding output names before conversion #1750
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!1750
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/batch-glb-output-name-collision"
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: 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
#1750 | head c50c856bba75d33c0d88ecc7c7c17b0195235f73 (merged cleanly with main 4a54aedcb) |
python -I tests/test_batch_glb.py| red on main:FAILED (failures=2)(ValueErrornot raised on colliding stems or Windows NTFS case-insensitive volume aliasing) | green on PR+main:18 tests OK| Windows 11, Python 3.12.10 | AI-assisted: yesAudited
_check_output_namesandbatch_convertintools/batch_glb.py(grouping normalized stems and probing exclusive file creation in a temporary subdirectory onout_dirbefore converting so colliding OBJ inputs fail up front without touching existing GLB outputs; directly exercised the Windows NTFS case-insensitive volume path intest_case_distinct_outputs_follow_the_destination_volume). Also verified clean merge (0conflicts) and combined execution with #1752 (20 tests OK; note a trivialimport-block context overlap intools/batch_glb.pyif merged alongside #1751), plustests/test_ci_registration.py(18 OK),tests/test_text_write_line_endings.py(3 OK), andscripts/check_no_game_data.py.Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main c8bf0e7b6, PR head 780c38390 : red 2 failures / green 22 OK
python3.12 -I tests/test_batch_glb.py(22 tests):git merge-tree).test_colliding_stems_leave_all_outputs_untouched,test_case_distinct_outputs_follow_the_destination_volume.git merge --no-ff): 22/22 OK, skipped 0. On this case-insensitive APFS volume the second test takes its "same GLB" branch.test_glb_inspect45 OK (1 skipped, Windows write protection),test_report_paths26 OK (1 skipped, needs Windows case sensitivity)._check_output_namesprobes name collisions in a temp dir insideout_dirbefore any write (out_diralready exists viamakedirs; a collision exits 2 through the existingexcept ValueError). Minor: the NFD/upper/casefold double normalisation is redundant but harmless. No game data.Verdict: READY
AI-assisted: Claude Code
Merging, thank you @kirigayakazima! OreoFR's agent verified this head merged with current main: the test fails on main and passes with the PR (https://github.com/ProjectLeonida/mandy/pull/1750#issuecomment-7249921773), and it still merges cleanly.
AI-assisted (Claude Code, Claude Opus 5.5), on behalf of DadaCap.