aboutsummaryrefslogtreecommitdiff
path: root/cros_utils
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2016-11-02 15:22:28 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-11-07 16:15:21 -0800
commit097419758febae084477a01fd92d678218b578e5 (patch)
treef6af94328d86c123cd53ef3c974411b0f4bead06 /cros_utils
parent4b133961b76c2cb8bc58f0ea2cded9e3438ffb6f (diff)
downloadtoolchain-utils-097419758febae084477a01fd92d678218b578e5.tar.gz
[toolchain-utils] Update rotating testers to launch asynchronously.
Currently the rotating testers launch one trybot job, then wait for it to finish (to get the trybot image name) before launching the second job. Now that all the testing happens directly in the buildbot HWTest stages, this waiting in not needed. This CL removes the synchronous waiting from the rotating testers. (Allows the two jobs to run in parallel). BUG=None TEST=None Change-Id: I6c96c684dc69b205b847b584b4bbc9e10cf5313f Reviewed-on: https://chrome-internal-review.googlesource.com/302137 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'cros_utils')
-rw-r--r--cros_utils/buildbot_utils.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/cros_utils/buildbot_utils.py b/cros_utils/buildbot_utils.py
index a0caeefc..3b0b916b 100644
--- a/cros_utils/buildbot_utils.py
+++ b/cros_utils/buildbot_utils.py
@@ -183,7 +183,8 @@ def GetTrybotImage(chromeos_root,
patch_list,
build_tag,
other_flags=[],
- build_toolchain=False):
+ build_toolchain=False,
+ async=False):
"""Launch buildbot and get resulting trybot artifact name.
This function launches a buildbot with the appropriate flags to
@@ -234,6 +235,11 @@ def GetTrybotImage(chromeos_root,
if 'Tryjob submitted!' not in out:
logger.GetLogger().LogFatal('Error occurred while launching trybot job: '
'%s' % command)
+
+ if async:
+ # Do not wait for trybot job to finish; return immediately
+ return 0
+
os.chdir(base_dir)
build_id = 0