From 33bbd390841daed2b2fec936b4403b78058c19bf Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 2 Nov 2026 11:07:43 +0100 Subject: [PATCH] Golden setup test: the vision reader's thread count is mocked (6, the 12-thread baseline PC), so the baseline no longer depends on the runner's CPU count (it failed 10 cases x2 on any Linux runner with more than 12 threads, v0.2.9 included) --- tools/test_setup_golden.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test_setup_golden.py b/tools/test_setup_golden.py index 2ac754e39b..15e33ff7ca 100644 --- a/tools/test_setup_golden.py +++ b/tools/test_setup_golden.py @@ -107,6 +107,7 @@ def install(ram, found, argv, answers=None, extra=(), avx512=False, configs=()): mock.patch.object(setup, "ram_gb", lambda: ram), mock.patch.object(setup, "cpu_info", lambda: ("Test CPU", True, avx512)), mock.patch.object(setup, "cpu_cores", lambda: None), # #642: not a hybrid CPU + mock.patch.object(setup, "vision_threads", lambda logical=None: 6), # the baseline PC has 12 logical CPUs; the runner's own count must not change the golden config mock.patch.object(setup, "page_file_gb", lambda: 16.0), mock.patch.object(setup, "is_wsl", lambda: False), mock.patch.object(setup, "rotational_disk", lambda p: None), # #605: the test PC's own disk