[PR #1750] batch_glb: catch colliding output names before conversion #1765

Open
opened 2026-11-26 21:18:52 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • c50c856 batch_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.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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1750 **Author:** [@kirigayakazima](https://github.com/kirigayakazima) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/batch-glb-output-name-collision` --- ### 📝 Commits (1) - [`c50c856`](https://github.com/ubiquitarianism/leonida/commit/c50c856bba75d33c0d88ecc7c7c17b0195235f73) batch_glb: catch colliding output names before conversion ### 📊 Changes **2 files changed** (+65 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_batch_glb.py` (+36 -0) 📝 `tools/batch_glb.py` (+29 -1) </details> ### 📄 Description Claimed in the coordination issue as: [BATCH-GLB-OUTPUT-NAME-COLLISION](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7160621714) ### 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1765
No description provided.