Bug 1402457 - Actually schedule periodic file updates. r=dustin
authorJustin Wood <Callek@gmail.com>
Mon, 25 Sep 2017 14:14:59 -0400
changeset 433853 1009ff9620509976d6d44eb7d19d7af07ad29eb1
parent 433852 7b7658f89b02fac91203715f283c7bab3466e16d
child 433854 ff34580cb279672bec10857c4ac5dc254a483119
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)
reviewersdustin
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 - Actually schedule periodic file updates. r=dustin MozReview-Commit-ID: BJsNs86kNJu
.cron.yml
taskcluster/taskgraph/target_tasks.py
taskcluster/taskgraph/transforms/job/buildbot.py
--- a/.cron.yml
+++ b/.cron.yml
@@ -92,8 +92,23 @@ jobs:
           treeherder-symbol: Ndmd
           target-tasks-method: nightly_dmd
       run-on-projects:
           - mozilla-central
       when:
           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
+      run-on-projects:
+          - mozilla-central
+      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
@@ -383,8 +383,18 @@ def target_tasks_nightly_desktop(full_ta
 # 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."""
     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')
+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 [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
--- a/taskcluster/taskgraph/transforms/job/buildbot.py
+++ b/taskcluster/taskgraph/transforms/job/buildbot.py
@@ -29,18 +29,16 @@ buildbot_run_schema = Schema({
 
 @run_job_using('buildbot-bridge', 'buildbot', schema=buildbot_run_schema)
 def mozharness_on_buildbot_bridge(config, job, taskdesc):
     run = job['run']
     worker = taskdesc['worker']
     branch = config.params['project']
     product = run['product']
 
-    worker.pop('env', None)
-
     buildername = run['buildername'].format(branch=branch)
 
     worker.update({
         'buildername': buildername,
         'sourcestamp': {
             'branch': branch,
             'repository': config.params['head_repository'],
             'revision': config.params['head_rev'],