You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--
4eb3f49 by Jonathan Wright <jonathan@almalinux.org>:
Build test_suites concurrently in local_build.sh with a capped pool
Default cap is (nproc-1)/3 (floor 1), matching the ~3 hot worker
processes each `go test -c` spawns (compile, vet, link). Pass -j N to
override; -j 0 restores the auto formula.
A FIFO semaphore throttles to $jobs concurrent suites; each suite still
builds its 4 GOOS/GOARCH variants serially inside the slot. On a
32-core host this cuts a cold all-suites build from ~5m29s to ~2m30s
(-54%) and self-throttles cleanly on smaller hardware (4 cores → K=1,
effectively serial).
FUTURE_COPYBARA_INTEGRATE_REVIEW=#510 from jonathanspw:local_build_parallel 4eb3f49
PiperOrigin-RevId: 926948257
# the suites to build, space separated. all suites are built by default
20
20
suites=*
21
21
# the path to the imagetest folder, default value assumes this script is run from the imagetest folder. If set, the commands cd $imagetestroot/cmd and cd $imagetestroot/test_suites should succeed.
22
22
imagetestroot=.
23
+
# max suites to build concurrently. 0 means auto: max(1, (nproc-1)/3),
24
+
# on the theory that each `go test -c` invocation spawns ~3 hot worker
25
+
# processes (compile, vet, link), so K*3 <= cores-1. Pass -j N to override.
0 commit comments