Bug 1389850: use per-level decision and image workers; r=bstack

MozReview-Commit-ID: BoUuPRUgGnm

--HG--
extra : rebase_source : 93b3fa521acd08e2ef91b47e80fbba42a94bb154
This commit is contained in:
Dustin J. Mitchell 2017-08-16 13:23:13 +00:00
Родитель 2a27fdebfc
Коммит b17efe62bb
5 изменённых файлов: 17 добавлений и 11 удалений

Просмотреть файл

@ -29,7 +29,7 @@ tasks:
description: 'Created by a [cron task](https://tools.taskcluster.net/tasks/${cron.task_id})' description: 'Created by a [cron task](https://tools.taskcluster.net/tasks/${cron.task_id})'
provisionerId: "aws-provisioner-v1" provisionerId: "aws-provisioner-v1"
workerType: "gecko-decision" workerType: "gecko-${repository.level}-decision"
tags: tags:
$if: 'tasks_for == "hg-push"' $if: 'tasks_for == "hg-push"'
@ -126,9 +126,12 @@ tasks:
extra: extra:
treeherder: treeherder:
$if: 'tasks_for == "hg-push"' $merge:
then: - machine:
symbol: D platform: gecko-decision
else: - $if: 'tasks_for == "hg-push"'
groupSymbol: cron then:
symbol: "${cron.job_symbol}" symbol: D
else:
groupSymbol: cron
symbol: "${cron.job_symbol}"

Просмотреть файл

@ -8,7 +8,7 @@ metadata:
name: "[tc] Action Task" name: "[tc] Action Task"
description: Helps schedule new jobs without new push description: Helps schedule new jobs without new push
workerType: "gecko-decision" workerType: "gecko-{{level}}-decision"
provisionerId: "aws-provisioner-v1" provisionerId: "aws-provisioner-v1"
schedulerId: "gecko-level-{{level}}" schedulerId: "gecko-level-{{level}}"

Просмотреть файл

@ -195,7 +195,7 @@ def register_callback_action(name, title, symbol, description, order=10000,
'name': 'Action: {}'.format(title), 'name': 'Action: {}'.format(title),
'description': 'Task executing callback for action.\n\n---\n' + description, 'description': 'Task executing callback for action.\n\n---\n' + description,
}, },
'workerType': 'gecko-decision', 'workerType': 'gecko-{}-decision'.format(parameters['level']),
'provisionerId': 'aws-provisioner-v1', 'provisionerId': 'aws-provisioner-v1',
'scopes': [ 'scopes': [
repo_scope, repo_scope,

Просмотреть файл

@ -89,7 +89,8 @@ def fill_template(config, tasks):
'tier': 1, 'tier': 1,
}, },
'run-on-projects': [], '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 # can't use {in-tree: ..} here, otherwise we might try to build
# this image.. # this image..
'worker': { 'worker': {

Просмотреть файл

@ -5,19 +5,21 @@
from __future__ import absolute_import, print_function, unicode_literals from __future__ import absolute_import, print_function, unicode_literals
WORKER_TYPES = { 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-android': ('docker-worker', 'linux'),
'aws-provisioner-v1/gecko-1-b-linux': ('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-macosx64': ('docker-worker', 'linux'),
'aws-provisioner-v1/gecko-1-b-win2012': ('generic-worker', 'windows'), '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-android': ('docker-worker', 'linux'),
'aws-provisioner-v1/gecko-2-b-linux': ('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-macosx64': ('docker-worker', 'linux'),
'aws-provisioner-v1/gecko-2-b-win2012': ('generic-worker', 'windows'), '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-android': ('docker-worker', 'linux'),
'aws-provisioner-v1/gecko-3-b-linux': ('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-macosx64': ('docker-worker', 'linux'),
'aws-provisioner-v1/gecko-3-b-win2012': ('generic-worker', 'windows'), '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-symbol-upload': ('docker-worker', 'linux'),
'aws-provisioner-v1/gecko-t-linux-large': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-t-linux-large': ('docker-worker', 'linux'),
'aws-provisioner-v1/gecko-t-linux-medium': ('docker-worker', 'linux'), 'aws-provisioner-v1/gecko-t-linux-medium': ('docker-worker', 'linux'),