tests: the supplied-runtime build keeps its --jobs 3 on a 2-vCPU machine (OLD-10056) #692
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/692"
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 Poussistar on 2026-11-24T12:16:18Z.
Claimed 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.
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T12:18:09Z.
Review: APPROVED
Technical Review: APPROVE (OLD-10056)
Root Cause & Correctness:
Clean-Room & Verification:
21625bca8(0 conflicts).LGTM!
Imported from ubiquitarianism/leonida. Originally posted by Dezmonius on 2026-11-24T12:44:12Z.
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).