summaryrefslogtreecommitdiff
path: root/cbuildbot/stages/report_stages.py
diff options
context:
space:
mode:
authorAviv Keshet <akeshet@chromium.org>2015-06-04 10:39:07 -0700
committerAviv Keshet <akeshet@chromium.org>2015-06-04 20:29:51 +0000
commit6f3ccd986224ef9533c4e74cd322bf28d2abedfa (patch)
tree75f9d01f7ecb2e38bf50413b9690c68871231f22 /cbuildbot/stages/report_stages.py
parentb17d753bfbbfe4e82e6cf44af26d6bd8ed206757 (diff)
downloadchromite-6f3ccd986224ef9533c4e74cd322bf28d2abedfa.tar.gz
report_stages: surface a link from slave build to its master
BUG=chromium:496752 TEST=Unit tests enhanced to use fake_cidb, and use a master_build_id. Verified that unit tests are exercising new code path. Change-Id: I89497e449e29cc2c52474e37688891a086e29c48 Reviewed-on: https://chromium-review.googlesource.com/275314 Trybot-Ready: Aviv Keshet <akeshet@chromium.org> Tested-by: Aviv Keshet <akeshet@chromium.org> Reviewed-by: David James <davidjames@chromium.org> Commit-Queue: Aviv Keshet <akeshet@chromium.org>
Diffstat (limited to 'cbuildbot/stages/report_stages.py')
-rw-r--r--cbuildbot/stages/report_stages.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cbuildbot/stages/report_stages.py b/cbuildbot/stages/report_stages.py
index ecd96d7c7..1d57d3ac6 100644
--- a/cbuildbot/stages/report_stages.py
+++ b/cbuildbot/stages/report_stages.py
@@ -163,6 +163,15 @@ class BuildStartStage(generic_stages.BuilderStage):
logging.info('Inserted build_id %s into cidb database type %s.',
build_id, db_type)
+ master_build_id = d['master_build_id']
+ if master_build_id is not None:
+ master_build_status = db.GetBuildStatus(master_build_id)
+ master_url = tree_status.ConstructDashboardURL(
+ master_build_status['waterfall'],
+ master_build_status['builder_name'],
+ master_build_status['build_number'])
+ cros_build_lib.PrintBuildbotLink('Link to master build',
+ master_url)
def HandleSkip(self):
"""Ensure that re-executions use the same db instance as initial db."""