Fix branch name draft
authorJohan Lorenzo <jlorenzo@mozilla.com>
Thu, 01 Sep 2016 19:09:33 +0200
changeset 7136 2c3d7aaef19c
parent 7135 668d72a787d4
child 7137 a32a72e38ac1
push id120
push userjlorenzo@mozilla.com
push dateThu, 01 Sep 2016 17:09:45 +0000
Fix branch name MozReview-Commit-ID: LXN6xSZNmr9
buildfarm/release/build_status.py
--- a/buildfarm/release/build_status.py
+++ b/buildfarm/release/build_status.py
@@ -10,27 +10,29 @@ PLATFORMS_TO_WAIT_ON = {
     'mobile': ['android-x86', 'android-api-9'],
     # XXX: Thunderbird is not supported in ReleaseRunner
 }
 
 
 def are_en_us_builds_completed(index, queue, release):
     product = release['product']
     platforms = PLATFORMS_TO_WAIT_ON[product]
+    # XXX Doesn't work with Thunderbird
+    branch = release['branch'].split('/')[-1]
     log.debug('Product "%s" detected. Looking up platforms %s', product, platforms)
 
     try:
         tasks_to_watch = [
             task_for_revision(
-                index, branch=release['branch'], revision=release['mozillaRevision'], product=product, platform=platform
+                index, branch=branch, revision=release['mozillaRevision'], product=product, platform=platform
             )['taskId']
             for platform in platforms
         ]
     except taskcluster.exceptions.TaskclusterRestFailure:
-        # At least one tasks not created yet
+        # At least one task is not created yet
         return False
 
     log.debug('All tasks have been found: %s', tasks_to_watch)
     return _are_all_tasks_completed(queue, tasks_to_watch)
 
 
 def _are_all_tasks_completed(queue, taskIds):
     tasks_not_done_yet = [taskId for taskId in taskIds if queue.status(taskId)['state'] != 'completed']