Bug 1381577 - Part AL; Filter tasks based on run-on-projects for windows nightlies too. r=kmoir draft
authorJustin Wood <Callek@gmail.com>
Thu, 20 Jul 2017 10:47:02 -0400
changeset 613380 19d23e52545f6002ce7da1b19dde151bd799d12b
parent 613379 83322778c37c9b228ad835d97a2068532a3f878c
child 613381 cf91a7ef950d706daaf4ccc8d5631cc24156c7ff
push id69770
push userCallek@gmail.com
push dateFri, 21 Jul 2017 20:09:14 +0000
reviewerskmoir
bugs1381577
milestone56.0a1
Bug 1381577 - Part AL; Filter tasks based on run-on-projects for windows nightlies too. r=kmoir Land date changes to support windows nightlies onto central MozReview-Commit-ID: B9S2WXHESjG
taskcluster/taskgraph/target_tasks.py
--- a/taskcluster/taskgraph/target_tasks.py
+++ b/taskcluster/taskgraph/target_tasks.py
@@ -311,17 +311,19 @@ def target_tasks_nightly_macosx(full_tas
 # implemented
 @_target_task('nightly_win')
 def target_tasks_nightly_win64(full_task_graph, parameters):
     """Select the set of tasks required for a nightly build of win32 and win64.
     The nightly build process involves a pipeline of builds, signing,
     and, eventually, uploading the tasks to balrog."""
     def filter(task):
         platform = task.attributes.get('build_platform')
-        if platform in ('win32-nightly', 'win64-nightly', ):
+        if not filter_for_project(task, parameters):
+            return False
+        if platform in ('win32-nightly', 'win64-nightly'):
             return task.attributes.get('nightly', False)
     return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
 
 
 # Opt DMD builds should only run nightly
 @_target_task('nightly_dmd')
 def target_tasks_dmd(full_task_graph, parameters):
     """Target DMD that run nightly on the m-c branch."""