Bug 1259627 - Keep printing out the task group ID r=mtabara
authorJohan Lorenzo <jlorenzo@mozilla.com>
Mon, 28 Aug 2017 17:58:16 +0200
changeset 7810 813629fc9d561badf37ac19e6399f1a1fbac7932
parent 7809 e0dbfd8daeed68a233340478837cb6a55c82cca5
child 7811 698e275fa5dd1019ffd84870ef6cd69ff7365e84
push id5779
push userjlorenzo@mozilla.com
push dateMon, 28 Aug 2017 16:08:51 +0000
reviewersmtabara
bugs1259627
Bug 1259627 - Keep printing out the task group ID r=mtabara MozReview-Commit-ID: 3OtxYfSj9yq
buildfarm/release/releasetasks_graph_gen.py
--- a/buildfarm/release/releasetasks_graph_gen.py
+++ b/buildfarm/release/releasetasks_graph_gen.py
@@ -118,25 +118,30 @@ def main(release_runner_config, release_
         # TODO: use [] when snaps_enabled is landed
         "snap_enabled": release_config.get("snap_enabled", False),
         "update_verify_channel": release_config["update_verify_channel"],
         "update_verify_requires_cdn_push": release_config["update_verify_requires_cdn_push"],
         "release_eta": release_config.get("release_eta"),
     }
 
     task_group_id, toplevel_task_id, tasks = make_task_graph_strict_kwargs(**kwargs)
-    log.info("Tasks generated!")
+    log.info('Tasks generated, but not yet submitted to Taskcluster.')
     import pprint
     for task_id, task_def in tasks.items():
         log.debug("%s ->\n%s", task_id,
                   pprint.pformat(task_def, indent=4, width=160))
 
     if not options.dry_run:
         submit_parallelized(queue, tasks)
         resolve_task(queue, toplevel_task_id)
+        log_line = 'Task graph submitted: https://tools.taskcluster.net/groups/{}'.format(task_group_id)
+        log.info(log_line)
+        # TODO: We shouldn't need this extra print, but at the moment, calling the script in verbose
+        # mode doesn't output anything.
+        print log_line
 
 
 def get_items_from_common_tc_task(common_task_id, tc_config):
     tc_task_items = {}
     queue = Queue(tc_config)
     task = queue.task(common_task_id)
     tc_task_items["version"] = task["extra"]["build_props"]["version"]
     tc_task_items["build_number"] = task["extra"]["build_props"]["build_number"]