batch_glb: catch colliding output names before conversion #1750

Open
github-bot wants to merge 1 commit from github-bot/gh-1750 into main AGit
Owner

@⁠kirigayakazima on GitHub · 2026-11-25 11:14 UTC · original
kirigayakazima:codex/batch-glb-output-name-collision → main · +65 −1 · 2 files · 1 commits · open

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.obj and car.OBJ, both workers therefore publish car.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.py passed all 18 tests on this branch (Windows, Python 3.14.7).
  • git diff --check and the repository game-data scan of all changed paths passed.
  • The five independent changes were also merged locally. Both affected test files passed together (50 tests) and the three character-model consumer suites passed (28 tests). The shared base at bcaa13da passed 6,287 semantic tests across 488 files.

GPUs tested: N/A (CPU-only asset tooling).
AI-assisted: Yes.

Checklist

  • Based on current upstream main.
  • One topic.
  • Only synthetic test fixtures. No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-25 11:14 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1750) `kirigayakazima:codex/batch-glb-output-name-collision` → `main` · +65 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: [BATCH-GLB-OUTPUT-NAME-COLLISION](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why The converter drops the final OBJ extension when naming the output. On a source that contains both `car.obj` and `car.OBJ`, both workers therefore publish `car.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.py` passed all 18 tests on this branch (Windows, Python 3.14.7). - `git diff --check` and the repository game-data scan of all changed paths passed. - The five independent changes were also merged locally. Both affected test files passed together (50 tests) and the three character-model consumer suites passed (28 tests). The shared base at `bcaa13da` passed 6,287 semantic tests across 488 files. GPUs tested: N/A (CPU-only asset tooling). AI-assisted: Yes. ### Checklist - [x] Based on current upstream main. - [x] One topic. - [x] Only synthetic test fixtures. No game data, keys or decryption. - Translator contract table: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:03:38 +00:00
Author
Owner

@⁠lixonik on GitHub · 2026-11-25 11:19 UTC · original · reviewed

Independent check at "c50c856b". Windows: all 18 batch tests passed. I ran the name check separately on a case-insensitive Windows directory and a case-sensitive local Linux filesystem under WSL. car.obj plus car.OBJ was rejected on both. car.obj plus CAR.OBJ was rejected only on the insensitive directory. Both probes left the original directory entry intact.

AI-assisted review and CPU-only testing with synthetic inputs.

**@⁠lixonik** on GitHub · 2026-11-25 11:19 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1750#pullrequestreview-6056672069) · **reviewed** Independent check at "c50c856b". Windows: all 18 batch tests passed. I ran the name check separately on a case-insensitive Windows directory and a case-sensitive local Linux filesystem under WSL. car.obj plus car.OBJ was rejected on both. car.obj plus CAR.OBJ was rejected only on the insensitive directory. Both probes left the original directory entry intact. AI-assisted review and CPU-only testing with synthetic inputs.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1750/head:github-bot/gh-1750'
git switch 'github-bot/gh-1750'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1750'
git switch 'github-bot/gh-1750'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1750'
git switch 'github-bot/gh-1750'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1750'
git switch 'main'
git merge --squash 'github-bot/gh-1750'
git switch 'main'
git merge --ff-only 'github-bot/gh-1750'
git switch 'main'
git merge 'github-bot/gh-1750'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.