mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #692] [MERGED] tests: the supplied-runtime build keeps its --jobs 3 on a 2-vCPU machine (OLD-10056) #731
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#731
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/692
Author: @Poussistar
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:tests/make_game-pipelines-host-jobs📝 Commits (1)
ce5d643tests: the supplied-runtime build keeps its --jobs 3 on a 2-vCPU machine📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
tests/test_make_game_pipelines.py(+4 -1)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.