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

Manually merged
github merged 1 commit from gh-pr/433/head into gh-pr/433/base 2026-11-26 08:59:51 +00:00
Owner

@⁠Rain156 on GitHub · 2026-11-24 05:10 UTC · original
Rain156:fix/full-check-jobs → main · +30 −27 · 3 files · 1 commits · merged 2026-11-25 21:23 UTC

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.
**@⁠Rain156** on GitHub · 2026-11-24 05:10 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/433) `Rain156:fix/full-check-jobs` → `main` · +30 −27 · 3 files · 1 commits · merged 2026-11-25 21:23 UTC Claimed in the coordination issue as: VERIFY-FULL-CHECK-JOBS ([claim](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14)) ### 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:59:49 +00:00
github manually merged commit cb09db363a into gh-pr/433/base 2026-11-26 08:59:51 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-24 21:00 UTC · original

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.

**@⁠PierreEbele** on GitHub · 2026-11-24 21:00 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/433#issuecomment-7144356232) 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.
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-25 21:23 UTC · original

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

**@⁠aslan2142** on GitHub · 2026-11-25 21:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/433#issuecomment-7175005437) 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).
This discussion has been locked. Commenting is limited to contributors.
No description provided.