Run the trail workers in a process pool so a worker that raises or dies fails the build, count the cores the process may use, and test both

This commit is contained in:
swaits committed 2026-11-20 16:35:19 -07:00
1 parent 5d86a42ad1
commit 3193a674d2
4 files changed
+73 -17

No files matched your search

+4 -1
View File
@@ -31,7 +31,10 @@ SLOW_FIRST = ("test_thumbs", "test_google_tag", "test_pages", "test_saved", "tes
def cores():
return getattr(os, "process_cpu_count", os.cpu_count)() or 1
try:
return len(os.sched_getaffinity(0)) or 1 # the cores this process may use
except AttributeError:
return os.cpu_count() or 1
def modules_under(only):