diff options
| author | BlackNife <108077267+Poussistar@users.noreply.github.com> | 2026-11-24 13:09:32 +0100 |
|---|---|---|
| committer | BlackNife <108077267+Poussistar@users.noreply.github.com> | 2026-11-24 13:09:32 +0100 |
| commit | ce5d643b243793b6f0ace900764aa7ae88f5884a (patch) | |
| tree | 4f2c3587a0bffa2dddd13095a37b365ea94c05b6 /runtime/src/thread_stacks.cpp | |
| parent | 21625bca8c675c62f9dbffc318ce6a59d57faf31 (diff) | |
tests: the supplied-runtime build keeps its --jobs 3 on a 2-vCPU machine
make_game.main() clamps --jobs to the host CPU count through
leonida_tui.clamp_jobs, so test_windows_reuses_the_checker_from_the_supplied_runtime_build
compared the clamped value: at 2 CPUs it asserts '2' != '3'. #83 pinned the
other two assertions that ask for more jobs than a small runner has and missed
this one.
Reproduced on 21625bca8 with os.cpu_count() patched in-process (python -I
implies -E, so PYTHON_CPU_COUNT never reaches the test): 2 CPUs = 1 failure,
4 and 256 CPUs = pass. With the pin: pass at 2, 4 and 256. Negative control:
removing the pin turns the 2-CPU run red again.
Test-only; clamp_jobs and make_game.py untouched. Carries old PR 10056
(tests/test_make_game_pipelines.py part), which #322 reopened as a draft.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions