diff --git a/.taskcluster.yml b/.taskcluster.yml index 8ae42e1847dd..10dc069ef6e2 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -29,7 +29,7 @@ tasks: description: 'Created by a [cron task](https://tools.taskcluster.net/tasks/${cron.task_id})' provisionerId: "aws-provisioner-v1" - workerType: "gecko-decision" + workerType: "gecko-${repository.level}-decision" tags: $if: 'tasks_for == "hg-push"' @@ -126,9 +126,12 @@ tasks: extra: treeherder: - $if: 'tasks_for == "hg-push"' - then: - symbol: D - else: - groupSymbol: cron - symbol: "${cron.job_symbol}" + $merge: + - machine: + platform: gecko-decision + - $if: 'tasks_for == "hg-push"' + then: + symbol: D + else: + groupSymbol: cron + symbol: "${cron.job_symbol}" diff --git a/taskcluster/taskgraph/action.yml b/taskcluster/taskgraph/action.yml index 168c04f78181..126b77d58ae0 100644 --- a/taskcluster/taskgraph/action.yml +++ b/taskcluster/taskgraph/action.yml @@ -8,7 +8,7 @@ metadata: name: "[tc] Action Task" description: Helps schedule new jobs without new push -workerType: "gecko-decision" +workerType: "gecko-{{level}}-decision" provisionerId: "aws-provisioner-v1" schedulerId: "gecko-level-{{level}}" diff --git a/taskcluster/taskgraph/actions/registry.py b/taskcluster/taskgraph/actions/registry.py index cf6809db2359..37cca89b9c5a 100644 --- a/taskcluster/taskgraph/actions/registry.py +++ b/taskcluster/taskgraph/actions/registry.py @@ -195,7 +195,7 @@ def register_callback_action(name, title, symbol, description, order=10000, 'name': 'Action: {}'.format(title), 'description': 'Task executing callback for action.\n\n---\n' + description, }, - 'workerType': 'gecko-decision', + 'workerType': 'gecko-{}-decision'.format(parameters['level']), 'provisionerId': 'aws-provisioner-v1', 'scopes': [ repo_scope, diff --git a/taskcluster/taskgraph/transforms/docker_image.py b/taskcluster/taskgraph/transforms/docker_image.py index d096d41da648..5f401bce6adb 100644 --- a/taskcluster/taskgraph/transforms/docker_image.py +++ b/taskcluster/taskgraph/transforms/docker_image.py @@ -89,7 +89,8 @@ def fill_template(config, tasks): 'tier': 1, }, 'run-on-projects': [], - 'worker-type': 'aws-provisioner-v1/gecko-images', + 'worker-type': 'aws-provisioner-v1/gecko-{}-images'.format( + config.params['level']), # can't use {in-tree: ..} here, otherwise we might try to build # this image.. 'worker': { diff --git a/taskcluster/taskgraph/util/workertypes.py b/taskcluster/taskgraph/util/workertypes.py index ca82b78028ae..fb9f9b477976 100644 --- a/taskcluster/taskgraph/util/workertypes.py +++ b/taskcluster/taskgraph/util/workertypes.py @@ -5,19 +5,21 @@ from __future__ import absolute_import, print_function, unicode_literals WORKER_TYPES = { - 'aws-provisioner-v1/gecko-images': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-1-b-android': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-1-b-linux': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-1-b-macosx64': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-1-b-win2012': ('generic-worker', 'windows'), + 'aws-provisioner-v1/gecko-1-images': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-2-b-android': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-2-b-linux': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-2-b-macosx64': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-2-b-win2012': ('generic-worker', 'windows'), + 'aws-provisioner-v1/gecko-2-images': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-3-b-android': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-3-b-linux': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-3-b-macosx64': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-3-b-win2012': ('generic-worker', 'windows'), + 'aws-provisioner-v1/gecko-3-images': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-symbol-upload': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-t-linux-large': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-t-linux-medium': ('docker-worker', 'linux'),