batch_glb: bound queued model conversions #2253
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2253"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.pygit diff --checkand the changed-path no-game-data scan passed.GPUs tested: N/A (synthetic CPU tests).
AI-assisted: Yes.
Checklist
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.pytests passed. With a realThreadPoolExecutorand 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.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.)
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)
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
succeededistotal - failureswithtotalfrom the file list, the same totals as before.Merged onto
maind1dff7949in 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).Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-28T23:38:10Z.
Tested
4b03f5962merged (no commit) withmainaa918e5d9: Python 3.12.4, Windows 11 10.0.26300, CPU only.check_no_game_data.pyis clean.tests/test_batch_glb.py, 18 tests pass.tools/batch_glb.pyback tomain, the bound check fails (25 not less than or equal to 4).git merge-tree). I did not run the two together.No blocker from my side.
AI-assisted (Claude Code).
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
main046a3f334without conflict, and its test file(s) (tests/test_batch_glb.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.