Bug 1402457 - fix the file update target task to not schedule the world. r=aki
authorJustin Wood <Callek@gmail.com>
Fri, 06 Oct 2017 14:01:43 -0400
changeset 435705 f6f706a84c451dea0ff17b3eb3861e7e69e66fd7
parent 435704 754a3e12321c8656a83759adf297e61b0e188368
child 435706 22e994d6668443350e3a743c31a50f62da91ebd3
push id8114
push userjlorenzo@mozilla.com
push dateThu, 02 Nov 2017 16:33:21 +0000
treeherdermozilla-beta@73e0d89a540f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaki
bugs1402457
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1402457 - fix the file update target task to not schedule the world. r=aki for: Run buildbot's periodic_file_update job scheduled via taskcluster. I messed up thinking this was filter-out not filter in the target task method. I'm also renaming the target_task method in order to avoid these decision jobs from needing to contact balrog for partial data (because it had 'nightly' in the target task name. MozReview-Commit-ID: 3uetnWG4vnW
.cron.yml
taskcluster/taskgraph/target_tasks.py
--- a/.cron.yml
+++ b/.cron.yml
@@ -97,12 +97,18 @@ jobs:
           by-project:
               mozilla-central: [{hour: 10, minute: 0}]
               # No default
 
     - name: periodic-update
       job:
           type: decision-task
           treeherder-symbol: Nfile
-          target-tasks-method: nightly_file_update
+          target-tasks-method: file_update
       run-on-projects:
           - mozilla-central
-      when: []  # don't run for now due to unforeseen issues
+      when:
+          by-project:
+              # No default branch
+              mozilla-central:
+                  # Buildbot start time is 10:02am UTC, until we are able to
+                  # disable buildbot scheduling, use +12h
+                  - {hour: 22, minute: 0}
--- a/taskcluster/taskgraph/target_tasks.py
+++ b/taskcluster/taskgraph/target_tasks.py
@@ -385,16 +385,16 @@ def target_tasks_nightly_desktop(full_ta
 def target_tasks_dmd(full_task_graph, parameters):
     """Target DMD that run nightly on the m-c branch."""
     def filter(task):
         platform = task.attributes.get('build_platform', '')
         return platform.endswith('-dmd')
     return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
 
 
-@_target_task('nightly_file_update')
+@_target_task('file_update')
 def target_tasks_file_update(full_task_graph, parameters):
     """Select the set of tasks required to perform nightly in-tree file updates
     """
     def filter(task):
         # For now any task in the repo-update kind is ok
-        return task.kind not in ['repo-update']
+        return task.kind in ['repo-update']
     return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]