mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 07:48:45 +00:00
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:
1 parent
abd9b4581d
commit
33bbd39084
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user