bug 1319824 r=Callek Announce signing jobs to funsize with draft
authorSimon Fraser <sfraser@mozilla.com>
Wed, 21 Dec 2016 17:17:34 +0000
changeset 452423 74b472e1e7c46ef15a056121e7469bb7b1a173bb
parent 452422 37d9733a71747271c1aadeb759389a78dad4b07f
child 452433 a354035b95cac9c5c7c804efaac488f175eee704
push id39397
push usersfraser@mozilla.com
push dateWed, 21 Dec 2016 17:18:09 +0000
reviewersCallek
bugs1319824
milestone53.0a1
bug 1319824 r=Callek Announce signing jobs to funsize with a new pulse route. MozReview-Commit-ID: A9L6ZEYWQTh
taskcluster/taskgraph/transforms/build_signing.py
taskcluster/taskgraph/transforms/nightly_l10n_signing.py
taskcluster/taskgraph/transforms/signing.py
--- a/taskcluster/taskgraph/transforms/build_signing.py
+++ b/taskcluster/taskgraph/transforms/build_signing.py
@@ -55,9 +55,14 @@ def make_signing_description(config, job
         job['label'] = label
 
         symbol = 'Ns'
         group = 'tc'
 
         job['treeherder'] = {
             'symbol': join_symbol(group, symbol),
         }
+
+        # Announce job status on funsize specific routes, so that it can
+        # start the partial generation for nightlies only.
+        job['use_funsize_route'] = True
+
         yield job
--- a/taskcluster/taskgraph/transforms/nightly_l10n_signing.py
+++ b/taskcluster/taskgraph/transforms/nightly_l10n_signing.py
@@ -63,9 +63,14 @@ def make_signing_description(config, job
 
         # add the chunk number to the TH symbol
         symbol = 'Ns{}'.format(dep_job.attributes.get('l10n_chunk'))
         group = 'tc-L10n'
 
         job['treeherder'] = {
             'symbol': join_symbol(group, symbol),
         }
+
+        # Announce job status on funsize specific routes, so that it can
+        # start the partial generation for nightlies only.
+        job['use_funsize_route'] = True
+
         yield job
--- a/taskcluster/taskgraph/transforms/signing.py
+++ b/taskcluster/taskgraph/transforms/signing.py
@@ -57,16 +57,20 @@ signing_description_schema = Schema({
 
     # unique label to describe this signing task, defaults to {dep.label}-signing
     Optional('label'): basestring,
 
     # treeherder is allowed here to override any defaults we use for signing.  See
     # taskcluster/taskgraph/transforms/task.py for the schema details, and the
     # below transforms for defaults of various values.
     Optional('treeherder'): task_description_schema['treeherder'],
+
+    # If True, announce to a specific route when done, so that funsize
+    # can start its partial mar generation. For nightly builds only.
+    Optional('use_funsize_route'): bool,
 })
 
 
 @transforms.add
 def validate(config, jobs):
     for job in jobs:
         label = job.get('dependent-task', object).__dict__.get('label', '?no-label?')
         yield validate_schema(
@@ -112,9 +116,12 @@ def make_task_description(config, jobs):
                        'max-run-time': 3600},
             'scopes': ["project:releng:signing:cert:nightly-signing"] + signing_format_scopes,
             'dependencies': {job['depname']: dep_job.label},
             'attributes': attributes,
             'run-on-projects': dep_job.attributes.get('run_on_projects'),
             'treeherder': treeherder,
         }
 
+        if job.get('use_funsize_route', False):
+            task['routes'] = ["project.releng.funsize.{project}.level-3".format(project=config.params['project'])]
+
         yield task