bug 1423286 - allow for comma-delimited previous_graph_ids. r=rail
authorAki Sasaki <asasaki@mozilla.com>
Wed, 06 Dec 2017 22:08:11 -0800
changeset 8114 982503692600
parent 8113 482b82c788c1
child 8115 5ddd9b11bcc9
push id5961
push userasasaki@mozilla.com
push dateThu, 07 Dec 2017 06:08:16 +0000
reviewersrail
bugs1423286
bug 1423286 - allow for comma-delimited previous_graph_ids. r=rail
buildfarm/release/trigger_action.py
--- a/buildfarm/release/trigger_action.py
+++ b/buildfarm/release/trigger_action.py
@@ -57,19 +57,20 @@ def main():
     task = get_task(args.action_task_id)
     action_task_input = copy.deepcopy(task["extra"]["action"]["context"]["input"])
     parameters = task["extra"]["action"]["context"]["parameters"]
     project = parameters["project"]
     revision = parameters["head_rev"]
     previous_graph_ids = args.previous_graph_ids
     if not previous_graph_ids:
         previous_graph_ids = [find_decision_task_id(project, revision)]
+    else:
+        previous_graph_ids = previous_graph_ids.split(',')
     action_task_input.update({
         "release_promotion_flavor": args.action_flavor,
-        # TODO: previous_graph_ids for Firefox may contain more then 2 items.
         "previous_graph_ids": previous_graph_ids + [args.action_task_id],
     })
     action_task_id, action_task = generate_action_task(
             project=parameters["project"],
             revision=parameters["head_rev"],
             action_task_input=action_task_input,
     )