[PR #433] [MERGED] make_game: honor --jobs during full package verification (VERIFY-FULL-CHECK-JOBS) #483

Closed
opened 2026-11-26 20:18:02 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/433
Author: @Rain156
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: fix/full-check-jobs


📝 Commits (1)

  • cb09db3 make_game: honor --jobs when verifying package hashes

📊 Changes

3 files changed (+30 additions, -27 deletions)

View changed files

📝 make_game.py (+8 -5)
📝 tests/test_make_game_argparse.py (+2 -2)
📝 tests/test_make_game_dry_run.py (+20 -20)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/433 **Author:** [@Rain156](https://github.com/Rain156) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `fix/full-check-jobs` --- ### 📝 Commits (1) - [`cb09db3`](https://github.com/ubiquitarianism/leonida/commit/cb09db363a6f778a27c9f932c6ac6c3e87d076e1) make_game: honor --jobs when verifying package hashes ### 📊 Changes **3 files changed** (+30 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `make_game.py` (+8 -5) 📝 `tests/test_make_game_argparse.py` (+2 -2) 📝 `tests/test_make_game_dry_run.py` (+20 -20) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:02 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#483
No description provided.