Bug 1421033: Fix parameter generation for try-comm-central. draft
authorTom Prince <mozilla@hocat.ca>
Mon, 27 Nov 2017 13:21:59 -0700
changeset 703818 7d88eb7d73bef2d819fa52683630f8acb7808702
parent 703817 031ccf358431ca3b2c2edf066da56cbe28cd5a03
child 703819 c6f430a9e72be5143462386512e2a017eab87834
push id90981
push userbmo:mozilla@hocat.ca
push dateMon, 27 Nov 2017 20:23:23 +0000
bugs1421033
milestone59.0a1
Bug 1421033: Fix parameter generation for try-comm-central. MozReview-Commit-ID: A2MlNNZGnO9
taskcluster/taskgraph/decision.py
--- a/taskcluster/taskgraph/decision.py
+++ b/taskcluster/taskgraph/decision.py
@@ -36,16 +36,17 @@ PER_PROJECT_PARAMETERS = {
         # we submit decision tasks against Try that use other
         # `target_task_method`s, like `nightly_fennec` or `mozilla_beta_tasks`,
         # which reference the `include_nightly` parameter.
         'include_nightly': True,
     },
 
     'try-comm-central': {
         'target_tasks_method': 'try_tasks',
+        'include_nightly': True,
     },
 
     'ash': {
         'target_tasks_method': 'ash_tasks',
         'optimize_target_tasks': True,
         'include_nightly': False,
     },
 
@@ -237,17 +238,19 @@ def get_decision_parameters(options):
             # process to all of the tasks.
             parameters['optimize_target_tasks'] = True
 
     else:
         parameters['try_mode'] = None
         parameters['try_task_config'] = None
         parameters['try_options'] = None
 
-    return Parameters(**parameters)
+    result = Parameters(**parameters)
+    result.check()
+    return result
 
 
 def write_artifact(filename, data):
     logger.info('writing artifact file `{}`'.format(filename))
     if not os.path.isdir(ARTIFACTS_DIR):
         os.mkdir(ARTIFACTS_DIR)
     path = os.path.join(ARTIFACTS_DIR, filename)
     if filename.endswith('.yml'):