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)

This commit is contained in:
Niko1221 committed 2026-11-02 11:07:43 +01:00
1 parent abd9b4581d
commit 33bbd39084
1 file changed
+1
+1
View File
@@ -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