tests: the supplied-runtime build keeps its --jobs 3 on a 2-vCPU machine (OLD-10056) #692
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!692
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/692/head"
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?
@Poussistar on GitHub · 2026-11-24 12:16 UTC · original
Poussistar:tests/make_game-pipelines-host-jobs→main· +4 −1 · 1 files · 1 commits · merged 2026-11-24 13:09 UTCClaimed in the coordination issue as:
OLD-10056What
tests/test_make_game_pipelines.py::test_windows_reuses_the_checker_from_the_supplied_runtime_buildasks for--jobs 3and then compares the value that reached the checker.make_game.main()clamps--jobsto the host CPU count first (leonida_tui.clamp_jobs,make_game.py:2989), so on a machine with fewer than three logical CPUs the assertion compares the clamped value and fails with2 != 3.#83 pinned the two other assertions of this class and missed this one.
Change
Pin
make_game.leonida_tui.os.cpu_countto 16 around thatmain()call, with the same wording as the two pins #83 added in this file. Test-only:clamp_jobsandmake_game.pyare untouched, andtest_jobs_default_calculation_scenarioskeeps the clamp covered.This carries the
tests/test_make_game_pipelines.pypart of my old pull request 10056, which draft #322 reopened verbatim fromold-pr/10056and which conflicts withmainsince #83 merged.Tested
Base
21625bca8(currentmain), Linux x86-64, Python 3.14.7, no game files, no GPU.python -Iimplies-E, soPYTHON_CPU_COUNTnever reaches the test: the core count is patched in-process instead.tests/test_make_game_pipelines.pybeforeAssertionError: 2 != 3Ran 18 tests ... OKOKOKOKOKtests/test_make_game_argparse.pyalso passes at 2, 4 and 256 cores before and after (untouched).Negative control: with the pin removed, the 2-core run is red again (
FAILED (failures=1)), so the pin is what makes it host-independent.AI-assisted. No game files.
@abnalstlll-byte on GitHub · 2026-11-24 12:18 UTC · original · approved these changes
Technical Review: APPROVE (OLD-10056)
Root Cause & Correctness:
Clean-Room & Verification:
21625bca8(0 conflicts).LGTM!
@Dezmonius on GitHub · 2026-11-24 12:44 UTC · original
Independent Windows 10 22H2 check of
ce5d643against21625bc, CPython 3.14.7. I used the interpreter flagpython -I -X cpu_count=Nand confirmed thatos.cpu_count()in each process reported the selected value.JobsHandlingTest'2' != '3'This confirms the failure from the #322 review is fixed in the narrowed follow-up. The full pipeline test file and the four job-handling tests used synthetic fixtures.
AI-assisted (Codex).