batch_glb: bound queued model conversions #2253

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

@⁠kirigayakazima on GitHub · 2026-11-26 10:24 UTC · original
kirigayakazima:codex/batch-glb-bounded-model-queue → main · +64 −18 · 2 files · 1 commits · open

Claimed in the coordination issue as: BATCH-GLB-BOUNDED-MODEL-QUEUE

What and why

Limit submitted model conversions to twice the worker count, refill when any model finishes and emit failure and skipped-texture reports in the original discovery order. With 25 synthetic jobs and two workers, the previous executor submitted all 25 before the first result was read. The regression checks the new four-job ceiling and both report orders.

Tested

Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change.

  • python -I tests/test_batch_glb.py
  • git diff --check and the changed-path no-game-data scan passed.
  • Shared main baseline: 498 semantic test files, 6,351 tests passed.

GPUs tested: N/A (synthetic CPU tests).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-26 10:24 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2253) `kirigayakazima:codex/batch-glb-bounded-model-queue` → `main` · +64 −18 · 2 files · 1 commits · open Claimed in the coordination issue as: [BATCH-GLB-BOUNDED-MODEL-QUEUE](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why Limit submitted model conversions to twice the worker count, refill when any model finishes and emit failure and skipped-texture reports in the original discovery order. With 25 synthetic jobs and two workers, the previous executor submitted all 25 before the first result was read. The regression checks the new four-job ceiling and both report orders. ### Tested Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change. - `python -I tests/test_batch_glb.py` - `git diff --check` and the changed-path no-game-data scan passed. - Shared main baseline: 498 semantic test files, 6,351 tests passed. GPUs tested: N/A (synthetic CPU tests). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] 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 11:24:33 +00:00
Author
Owner

@⁠lixonik on GitHub · 2026-11-26 10:37 UTC · original · reviewed

Independent native Windows / Python 3.12 check: all 17 test_batch_glb.py tests passed. With a real ThreadPoolExecutor and two workers, I used gates to hold the first two synthetic conversions. The queue peaked at four futures. After releasing the second worker, the fifth model started while the first was still held. The failure and dropped-texture lists both retained discovery order. AI-assisted.

**@⁠lixonik** on GitHub · 2026-11-26 10:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2253#pullrequestreview-6072570981) · **reviewed** Independent native Windows / Python 3.12 check: all 17 `test_batch_glb.py` tests passed. With a real `ThreadPoolExecutor` and two workers, I used gates to hold the first two synthetic conversions. The queue peaked at four futures. After releasing the second worker, the fifth model started while the first was still held. The failure and dropped-texture lists both retained discovery order. AI-assisted.
Author
Owner

@⁠DeadlyChirp on GitHub · 2026-11-26 10:42 UTC · original

Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.

  • tests/test_batch_glb.py: 17 passed, 11 subtests passed (main: 16 passed).

(AI-assisted test run; output checked by hand.)

**@⁠DeadlyChirp** on GitHub · 2026-11-26 10:42 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2253#issuecomment-7189722895) Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main. - `tests/test_batch_glb.py`: 17 passed, 11 subtests passed (main: 16 passed). (AI-assisted test run; output checked by hand.)
Author
Owner

@⁠real-rusher on GitHub · 2026-11-26 12:23 UTC · original

Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly. With this PR, python -I tests/test_batch_glb.py: 17 tests OK. The PR's test file against main's tool: 1 failure, so the new test fails on main and passes with the change. compileall clean.

AI-assisted: yes (Claude Code)

**@⁠real-rusher** on GitHub · 2026-11-26 12:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2253#issuecomment-7191944791) Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly. With this PR, python -I tests/test_batch_glb.py: 17 tests OK. The PR's test file against main's tool: 1 failure, so the new test fails on main and passes with the change. compileall clean. AI-assisted: yes (Claude Code)
Author
Owner

@⁠tiguan26 on GitHub · 2026-11-27 04:35 UTC · original · approved these changes

Approving 4b03f5962.

At most twice the worker count of conversions are queued at once instead of all of them, results are reported in input order, and succeeded is total - failures with total from the file list, the same totals as before.

Merged onto main d1dff7949 in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13. tests/test_batch_glb.py: 17 passed (main: 16). AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠tiguan26** on GitHub · 2026-11-27 04:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2253#pullrequestreview-6083532817) · **approved these changes** Approving 4b03f5962. At most twice the worker count of conversions are queued at once instead of all of them, results are reported in input order, and `succeeded` is `total - failures` with `total` from the file list, the same totals as before. Merged onto `main` `d1dff7949` in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13. `tests/test_batch_glb.py`: 17 passed (main: 16). AI-assisted (Claude Code, Claude Opus 5.5).
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/2253/head:github-bot/gh-2253'
git switch 'github-bot/gh-2253'

Merge

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