make_game: honor --jobs during full package verification (VERIFY-FULL-CHECK-JOBS) #433

Merged
Rain156 merged 1 commit from upstream-pr/433 into main 2026-11-25 21:23:06 +00:00
Rain156 commented 2026-11-24 05:10:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Rain156 on 2026-11-24T05:10:33Z.


Claimed in the coordination issue as: VERIFY-FULL-CHECK-JOBS (claim)

What and why

On a 16-thread host, make_game.py --check --full-check --jobs 1 used eight hash workers because the build CLI invoked manifest.py verify without its worker argument. This matters when checking a large package on one physical drive.

Clamp the CLI worker count before the package check and pass it to the verifier. The regression goes through the build CLI and inspects the child invocation. It covers an explicit single worker, the half-CPU default, and a value above the available CPU count. The size-only check is also exercised.

Tested

  • Windows 11 x64 (build 26200), CPython 3.13.13. On the original code all three worker-argument assertions failed. The patched CLI passed 1, 4 and 8 workers respectively on a simulated eight-thread host.
  • The real verifier accepted a synthetic package, then returned exit 1 after a same-size content change. The size-only check skipped hashing. A local Xbox 1.0.2.1 package also passed the full check with one worker (108 manifest entries, exit 0).
  • All 434 test_make_game*.py tests completed with 4 skips. The 39 manifest tests completed with 1 skip. The full translator suite ran 6,103 tests in 465 files with no failing files. The 57 viewer tests, Python compile check, CLI help, no-game-data guard and git diff --check passed. Subsequent upstream changes during the rebase touched runtime C++ and its docs/tests. The affected CLI tests passed again after rebasing.

GPUs tested: n/a (CPU and disk I/O).

AI-assisted: yes (OpenAI Codex).

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption, including in quoted output.
  • Translator contract item is not applicable to this build CLI change.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5466501206 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/433). Originally posted by [Rain156](https://github.com/Rain156) on 2026-11-24T05:10:33Z. --- Claimed in the coordination issue as: VERIFY-FULL-CHECK-JOBS ([claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7122353393)) ### What and why On a 16-thread host, `make_game.py --check --full-check --jobs 1` used eight hash workers because the build CLI invoked `manifest.py verify` without its worker argument. This matters when checking a large package on one physical drive. Clamp the CLI worker count before the package check and pass it to the verifier. The regression goes through the build CLI and inspects the child invocation. It covers an explicit single worker, the half-CPU default, and a value above the available CPU count. The size-only check is also exercised. ### Tested - Windows 11 x64 (build 26200), CPython 3.13.13. On the original code all three worker-argument assertions failed. The patched CLI passed 1, 4 and 8 workers respectively on a simulated eight-thread host. - The real verifier accepted a synthetic package, then returned exit 1 after a same-size content change. The size-only check skipped hashing. A local Xbox 1.0.2.1 package also passed the full check with one worker (108 manifest entries, exit 0). - All 434 `test_make_game*.py` tests completed with 4 skips. The 39 manifest tests completed with 1 skip. The full translator suite ran 6,103 tests in 465 files with no failing files. The 57 viewer tests, Python compile check, CLI help, no-game-data guard and `git diff --check` passed. Subsequent upstream changes during the rebase touched runtime C++ and its docs/tests. The affected CLI tests passed again after rebasing. GPUs tested: n/a (CPU and disk I/O). AI-assisted: yes (OpenAI Codex). ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption, including in quoted output. - [x] Translator contract item is not applicable to this build CLI change.
PierreEbele commented 2026-11-24 21:00:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-24T21:00:43Z.


Reviewed cb09db36: ran the touched tests (argparse 38 OK with 1 skip, dry_run 24 OK on the branch; both fail as designed when copied onto main) plus a no-mock end-to-end probe with a synthetic manifest: verify now receives --jobs (clamped like the rest of make_game, per a sandbox A/B against main), and a hash mismatch still aborts with exit 1. Merge with current main is clean and the merged result passes the tests. Advisory: the un-rebased branch fails test_windows_reuses_the_checker_from_the_supplied_runtime_build on 2-vCPU machines — it predates main's cpu_count pin (ce5d643b2); a rebase fixes it. AI-assisted review.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7144356232 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/433#issuecomment-7144356232). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-24T21:00:43Z. --- Reviewed cb09db36: ran the touched tests (argparse 38 OK with 1 skip, dry_run 24 OK on the branch; both fail as designed when copied onto main) plus a no-mock end-to-end probe with a synthetic manifest: verify now receives --jobs (clamped like the rest of make_game, per a sandbox A/B against main), and a hash mismatch still aborts with exit 1. Merge with current main is clean and the merged result passes the tests. Advisory: the un-rebased branch fails test_windows_reuses_the_checker_from_the_supplied_runtime_build on 2-vCPU machines — it predates main's cpu_count pin (ce5d643b2); a rebase fixes it. AI-assisted review.
aslan2142 commented 2026-11-25 21:23:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T21:23:08Z.


Merged, thanks! The new test fails on main and passes with this. #433, #482 and #639 share make_game.py: they merge cleanly together, and every test_make_game_* passes on the combined tree.

  • Checked on main 0079b5ddf + cb09db363: the semantic suite passes (491 files, 6,312 tests, 0 files failed); test_make_game_argparse, test_make_game_dry_run pass; the 15 docs and writer tests pass; check_no_game_data.py is clean on the 3 changed files.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7175005437 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/433#issuecomment-7175005437). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-25T21:23:08Z. --- Merged, thanks! The new test fails on `main` and passes with this. #433, #482 and #639 share `make_game.py`: they merge cleanly together, and every `test_make_game_*` passes on the combined tree. - **Checked on `main` `0079b5ddf` + `cb09db363`:** the semantic suite passes (491 files, 6,312 tests, 0 files failed); `test_make_game_argparse`, `test_make_game_dry_run` pass; the 15 docs and writer tests pass; `check_no_game_data.py` is clean on the 3 changed files. AI-assisted (Claude Code, Claude Opus 5.5).
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!433
No description provided.