Bug 1628832: [KaiOS] Add kaios specific taskgraph paramters and target tasks; r=Callek
authorTom Prince <mozilla@hocat.ca>
Thu, 14 May 2020 18:48:00 +0000
changeset 530258 a77ca5bd6b7c49099c672e103771ca2bf077cc40
parent 530257 5fa6bffbd5c6c97f54be42ac45c26848d6cffb2a
child 530259 ac0bb963eab327afea9c7996cb559a954a76400f
push id116065
push userarchaeopteryx@coole-files.de
push dateFri, 15 May 2020 09:43:02 +0000
treeherderautoland@6790c74bbb0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCallek
bugs1628832
milestone78.0a1
first release with
nightly linux32
a77ca5bd6b7c / 78.0a1 / 20200514211114 / files
nightly linux64
a77ca5bd6b7c / 78.0a1 / 20200514211114 / files
nightly mac
a77ca5bd6b7c / 78.0a1 / 20200514211114 / files
nightly win32
a77ca5bd6b7c / 78.0a1 / 20200514211114 / files
nightly win64
a77ca5bd6b7c / 78.0a1 / 20200514211114 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1628832: [KaiOS] Add kaios specific taskgraph paramters and target tasks; r=Callek Differential Revision: https://phabricator.services.mozilla.com/D75243
taskcluster/taskgraph/decision.py
taskcluster/taskgraph/target_tasks.py
--- a/taskcluster/taskgraph/decision.py
+++ b/taskcluster/taskgraph/decision.py
@@ -45,16 +45,20 @@ PER_PROJECT_PARAMETERS = {
     'try': {
         'target_tasks_method': 'try_tasks',
     },
 
     'try-comm-central': {
         'target_tasks_method': 'try_tasks',
     },
 
+    'kaios-try': {
+        'target_tasks_method': 'try_tasks',
+    },
+
     'ash': {
         'target_tasks_method': 'default',
     },
 
     'cedar': {
         'target_tasks_method': 'default',
     },
 
@@ -101,16 +105,20 @@ PER_PROJECT_PARAMETERS = {
         'target_tasks_method': 'mozilla_esr68_tasks',
         'release_type': 'release',
     },
 
     'pine': {
         'target_tasks_method': 'pine_tasks',
     },
 
+    'kaios': {
+        'target_tasks_method': 'kaios_tasks',
+    },
+
     # the default parameters are used for projects that do not match above.
     'default': {
         'target_tasks_method': 'default',
     }
 }
 
 try_task_config_schema = Schema({
     Required('tasks'): [text_type],
--- a/taskcluster/taskgraph/target_tasks.py
+++ b/taskcluster/taskgraph/target_tasks.py
@@ -476,16 +476,25 @@ def target_tasks_pine(full_task_graph, p
         if platform == 'linux64-asan':
             return False
         # disable non-pine and nightly tasks
         if standard_filter(task, parameters) or filter_out_nightly(task, parameters):
             return True
     return [l for l, t in six.iteritems(full_task_graph.tasks) if filter(t)]
 
 
+@_target_task('kaios_tasks')
+def target_tasks_kaios(full_task_graph, parameters, graph_config):
+    """The set of tasks to run for kaios integration"""
+    def filter(task):
+        # We disable everything in central, and adjust downstream.
+        return False
+    return [l for l, t in six.iteritems(full_task_graph.tasks) if filter(t)]
+
+
 @_target_task('ship_geckoview')
 def target_tasks_ship_geckoview(full_task_graph, parameters, graph_config):
     """Select the set of tasks required to ship geckoview nightly. The
     nightly build process involves a pipeline of builds and an upload to
     maven.mozilla.org."""
     def filter(task):
         # XXX Starting 69, we don't ship Fennec Nightly anymore. We just want geckoview to be
         # uploaded