batch_glb: bound queued model conversions #2253

Merged
kirigayakazima merged 1 commit from upstream-pr/2253 into main 2026-11-28 23:48:16 +00:00
kirigayakazima commented 2026-11-26 10:24:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kirigayakazima on 2026-11-26T10:24:28Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5508241281 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2253). Originally posted by [kirigayakazima](https://github.com/kirigayakazima) on 2026-11-26T10:24:28Z. --- Claimed in the coordination issue as: [BATCH-GLB-BOUNDED-MODEL-QUEUE](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7189018014) ### 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.
lixonik commented 2026-11-26 10:37:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-26T10:37:16Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6072570981 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2253#pullrequestreview-6072570981). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-26T10:37:16Z. **Review:** COMMENTED --- 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.
DeadlyChirp commented 2026-11-26 10:42:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-11-26T10:42:21Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7189722895 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2253#issuecomment-7189722895). Originally posted by [DeadlyChirp](https://github.com/DeadlyChirp) on 2026-11-26T10:42:21Z. --- 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.)
real-rusher commented 2026-11-26 12:23:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by real-rusher on 2026-11-26T12:23:41Z.


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)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7191944791 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2253#issuecomment-7191944791). Originally posted by [real-rusher](https://github.com/real-rusher) on 2026-11-26T12:23:41Z. --- 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)
tiguan26 commented 2026-11-27 04:35:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by tiguan26 on 2026-11-27T04:35:22Z.

Review: APPROVED


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

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6083532817 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2253#pullrequestreview-6083532817). Originally posted by [tiguan26](https://github.com/tiguan26) on 2026-11-27T04:35:22Z. **Review:** APPROVED --- 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).
TheGeogeo commented 2026-11-28 23:38:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-28T23:38:10Z.


Tested 4b03f5962 merged (no commit) with main aa918e5d9: Python 3.12.4, Windows 11 10.0.26300, CPU only. check_no_game_data.py is clean.

  • Green: tests/test_batch_glb.py, 18 tests pass.
  • Red: with tools/batch_glb.py back to main, the bound check fails (25 not less than or equal to 4).
  • Merges cleanly with #1752, which changes the same tool (git merge-tree). I did not run the two together.

No blocker from my side.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247562537 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2253#issuecomment-7247562537). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-28T23:38:10Z. --- Tested `4b03f5962` merged (no commit) with `main` `aa918e5d9`: Python 3.12.4, Windows 11 10.0.26300, CPU only. `check_no_game_data.py` is clean. - Green: `tests/test_batch_glb.py`, 18 tests pass. - Red: with `tools/batch_glb.py` back to `main`, the bound check fails (`25 not less than or equal to 4`). - Merges cleanly with #1752, which changes the same tool (`git merge-tree`). I did not run the two together. No blocker from my side. AI-assisted (Claude Code).
MoonEyes commented 2026-11-28 23:48:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T23:48:19Z.


Merged after TheGeogeo's red/green check (check) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto main 046a3f334 without conflict, and its test file(s) (tests/test_batch_glb.py) pass there. Earlier today the same tests failed on main without the PR (red/green) and a bundle with other open PRs showed no new failures. check_no_game_data.py is clean. Windows 11, Python 3.14; no GPU needed for these tests.

AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247674937 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2253#issuecomment-7247674937). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T23:48:19Z. --- Merged after **TheGeogeo**'s red/green check ([check](https://github.com/ProjectLeonida/mandy/pull/2253#issuecomment-7247562537)) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto `main` 046a3f334 without conflict, and its test file(s) (`tests/test_batch_glb.py`) pass there. Earlier today the same tests failed on `main` without the PR (red/green) and a bundle with other open PRs showed no new failures. `check_no_game_data.py` is clean. Windows 11, Python 3.14; no GPU needed for these tests. _AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes._
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!2253
No description provided.