Sysroot Binhosts: Use the parallel postsubmit binhost only in API.
The parallel postsubmit binhost problems have not been fully resolved,
until they are, make sure to only use them in the API so the legacy
builders are not affected.
BUG=chromium:964242
TEST=run_tests, manual
Change-Id: I7daa74c1214904dc4f136b101227cc0a3e204d9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/1660728
Tested-by: Alex Klein <saklein@chromium.org>
Reviewed-by: David Burger <dburger@chromium.org>
diff --git a/api/controller/sysroot.py b/api/controller/sysroot.py
index 2560610..2a43183 100644
--- a/api/controller/sysroot.py
+++ b/api/controller/sysroot.py
@@ -58,7 +58,8 @@
build_target = build_target_util.BuildTarget(name=build_target_name)
target_sysroot = sysroot_lib.Sysroot(sysroot_path)
- run_configs = sysroot.SetupBoardRunConfig(usepkg=not compile_source)
+ run_configs = sysroot.SetupBoardRunConfig(usepkg=not compile_source,
+ use_parallel_binhost=True)
if not target_sysroot.Exists():
cros_build_lib.Die('Sysroot has not been created. Run Create first.')