batch_glb: bound queued model conversions #2253

Merged
leonida/mandy
kirigayakazima merged 1 commit from codex/batch-glb-bounded-model-queue into main 2026-11-28 23:48:16 +00:00

Pull request successfully merged and closed

kirigayakazima commented 2026-11-26 10:24:28 +00:00

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.
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 reviewed 2026-11-26 10:37:16 +00:00
lixonik left a comment
No description provided.
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

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

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

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)

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 approved these changes 2026-11-27 04:35:22 +00:00
tiguan26 left a comment

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

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

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

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

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.

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 description provided.