aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2017-01-04 08:37:35 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-01-04 16:51:45 +0000
commit9949a46570763c933053cc28693c72145d70664a (patch)
tree12e468916f50a5f5404b71b83d6f53123be9ef81
parent53930064c8b68258872af1646c7fe18112ca494a (diff)
downloadtoolchain-utils-9949a46570763c933053cc28693c72145d70664a.tar.gz
Add llvm_next_builder to list of known builders.
This will fix the problem with rotating builders; they were updated to use the llvm_next builder, but this script was not updated to use llvm_next. BUG=chromium:674804 TEST=Tested in role account on chrotomation2, launching rotating builder. Change-Id: Ifd4ba57cf403feae0b0b84c8b21accb34987ecbc Reviewed-on: https://chromium-review.googlesource.com/424893 Reviewed-by: Yunlian Jiang <yunlian@chromium.org> Commit-Queue: Caroline Tice <cmtice@chromium.org> Tested-by: Caroline Tice <cmtice@chromium.org>
-rw-r--r--cros_utils/buildbot_utils.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/cros_utils/buildbot_utils.py b/cros_utils/buildbot_utils.py
index c71cf4a0..d1403557 100644
--- a/cros_utils/buildbot_utils.py
+++ b/cros_utils/buildbot_utils.py
@@ -18,7 +18,7 @@ from cros_utils import command_executer
from cros_utils import logger
from cros_utils import buildbot_json
-INITIAL_SLEEP_TIME = 7200 # 2 hours; wait time before polling buildbot.
+INITIAL_SLEEP_TIME = 7200 # 2 hours; wait time before polling buildbot.
SLEEP_TIME = 600 # 10 minutes; time between polling of buildbot.
TIME_OUT = 28800 # Decide the build is dead or will never finish
# after this time (8 hours).
@@ -106,6 +106,8 @@ def GetBuildInfo(file_dir, waterfall_builder):
builder = 'gcc_toolchain'
elif waterfall_builder.endswith('-llvm-toolchain'):
builder = 'llvm_toolchain'
+ elif waterfall_builder.endswith('-llvm-next-toolchain'):
+ builder = 'llvm_next_toolchain'
sa_file = os.path.expanduser(
os.path.join(file_dir, 'cros_utils',
@@ -244,10 +246,6 @@ def GetTrybotImage(chromeos_root,
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
@@ -297,6 +295,10 @@ def GetTrybotImage(chromeos_root,
pending = False
build_id = data_dict['number']
+ if async:
+ # Do not wait for trybot job to finish; return immediately
+ return build_id, ' '
+
if not long_slept:
# The trybot generally takes more than 2 hours to finish.
# Wait two hours before polling the status.