Add '-tryjob' suffix to build name.
We got some errors like
These configs are not tryjob safe:
lumpy-release
Consider these configs instead:
lumpy-release-tryjob
when lauching tryjobs to get the image.
This CL fixes that.
BUG=none
TEST=the build name is set to lumpy-release-tryjob.
Change-Id: I30086001e3937c956983f7c31b038b4a09b3ecec
Reviewed-on: https://chromium-review.googlesource.com/781441
Commit-Ready: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Reviewed-by: Caroline Tice <cmtice@chromium.org>
diff --git a/buildbot_test_toolchains.py b/buildbot_test_toolchains.py
index 1889aa9..a274cc5 100755
--- a/buildbot_test_toolchains.py
+++ b/buildbot_test_toolchains.py
@@ -71,7 +71,7 @@
self._base_dir = os.getcwd()
self._ce = command_executer.GetCommandExecuter()
self._l = logger.GetLogger()
- self._build = '%s-release' % board
+ self._build = '%s-release-tryjob' % board
self._patches = patches.split(',') if patches else []
self._patches_string = '_'.join(str(p) for p in self._patches)
self._noschedv2 = noschedv2
@@ -92,7 +92,7 @@
Args:
trybot_image: artifact name such as
- 'trybot-daisy-release/R40-6394.0.0-b1389'
+ 'trybot-daisy-release-tryjob/R40-6394.0.0-b1389'
Returns:
Latest official image name, e.g. 'daisy-release/R57-9089.0.0'.
@@ -115,7 +115,7 @@
Args:
trybot_image: artifact name such as
- 'trybot-daisy-release/R40-6394.0.0-b1389'
+ 'trybot-daisy-release-tryjob/R40-6394.0.0-b1389'
Returns:
Corresponding chrome PFQ image name, e.g.
diff --git a/cros_utils/buildbot_utils.py b/cros_utils/buildbot_utils.py
index 5184154..286c3c9 100644
--- a/cros_utils/buildbot_utils.py
+++ b/cros_utils/buildbot_utils.py
@@ -107,7 +107,7 @@
"""Get all the build records for the trybot builds."""
builder = ''
- if waterfall_builder.endswith('-release'):
+ if waterfall_builder.endswith('-release-tryjob'):
builder = 'release'
elif waterfall_builder.endswith('-gcc-toolchain'):
builder = 'gcc_toolchain'