Bug 1436369 Add taskcluster periodic file updates r=callek
☠☠ backed out by 3363cb492aa1 ☠ ☠
authorSimon Fraser <sfraser@mozilla.com>
Tue, 06 Mar 2018 15:10:46 +0000
changeset 461795 370c9dbdd5729e944b277706fa73785a8fd6fef0
parent 461794 b3b9609544ec30fffe6efa6100db7fd4806b23bb
child 461796 33d3f93924ac7a7e6b6b46fc3eb791089eb74faa
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscallek
bugs1436369
milestone60.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 1436369 Add taskcluster periodic file updates r=callek Reviewers: Callek Reviewed By: Callek Differential Revision: https://phabricator.services.mozilla.com/D683
taskcluster/ci/repo-update/kind.yml
taskcluster/docs/kinds.rst
taskcluster/taskgraph/target_tasks.py
new file mode 100644
--- /dev/null
+++ b/taskcluster/ci/repo-update/kind.yml
@@ -0,0 +1,50 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+loader: taskgraph.loader.transform:loader
+
+transforms:
+   - taskgraph.transforms.job:transforms
+   - taskgraph.transforms.task:transforms
+
+
+jobs:
+   hsts-hpkp-blocklist:
+      name: periodic_file_update
+      description: HSTS, HPKP, and Blocklist update
+      run-on-projects: []  # Only run via cron
+      treeherder:
+         kind: build
+         platform: linux64/opt
+         symbol: pfu
+         tier: 1
+      worker-type: aws-provisioner-v1/gecko-{level}-b-linux
+      worker:
+         implementation: docker-worker
+         os: linux
+         docker-image: {in-tree: periodic-updates}
+         max-run-time: 3600  # Sometimes takes ~40 minutes
+         env:
+            DO_HSTS: "1"
+            DO_HPKP: "1"
+            DO_BLOCKLIST: "1"
+            USE_MOZILLA_CENTRAL: "1"
+            BRANCH: mozilla-central
+            PRODUCT: firefox
+            REVIEWERS: sfraser
+         command:
+            - /runme.sh
+         artifacts:
+            - name: 'public/build/nsSTSPreloadList.diff'
+              path: '/home/worker/artifacts/nsSTSPreloadList.diff'
+              type: file
+            - name: 'public/build/StaticHPKPins.h.diff'
+              path: '/home/worker/artifacts/StaticHPKPins.h.diff'
+              type: file
+            - name: 'public/build/blocklist.diff'
+              path: '/home/worker/artifacts/blocklist.diff'
+              type: file
+      scopes:
+         - secrets:get:project/releng/gecko/build/level-{level}/arc-phabricator-token
+
--- a/taskcluster/docs/kinds.rst
+++ b/taskcluster/docs/kinds.rst
@@ -361,16 +361,22 @@ repackage-signing
 Repackage-signing take the repackaged installers (windows) and update packaging (with
 the signed internal bits) and signs them.
 
 repo-update
 -----------
 Repo-Update tasks are tasks that perform some action on the project repo itself,
 in order to update its state in some way.
 
+repo-update-bb
+--------------
+Repo-Update tasks are tasks that perform some action on the project repo itself,
+in order to update its state in some way. This kind is the older, buildbot version.
+It will be removed after the migration to taskcluster.
+
 partials
 --------
 Partials takes the complete.mar files produced in previous tasks and generates partial
 updates between previous nightly releases and the new one. Requires a release_history
 in the parameters. See ``mach release-history`` if doing this manually.
 
 partials-signing
 ----------------
--- a/taskcluster/taskgraph/target_tasks.py
+++ b/taskcluster/taskgraph/target_tasks.py
@@ -616,10 +616,10 @@ def target_tasks_searchfox(full_task_gra
 
 
 @_target_task('file_update')
 def target_tasks_file_update(full_task_graph, parameters, graph_config):
     """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 in ['repo-update-bb']
+        return task.kind in ['repo-update', 'repo-update-bb']
     return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]