Bug 1368718: rename worker type. r=dustin
Rename worker-type to releng-hardware/gecko-t-osx-1010.
MozReview-Commit-ID: 2WAj9nqhP47
--- a/taskcluster/taskgraph/transforms/job/mozharness_test.py
+++ b/taskcluster/taskgraph/transforms/job/mozharness_test.py
@@ -314,18 +314,17 @@ def mozharness_test_on_generic_worker(co
@run_job_using('native-engine', 'mozharness-test', schema=mozharness_test_run_schema)
def mozharness_test_on_native_engine(config, job, taskdesc):
test = taskdesc['run']['test']
mozharness = test['mozharness']
worker = taskdesc['worker']
is_talos = test['suite'] == 'talos'
-
- assert worker['os'] == 'macosx'
+ is_macosx = worker['os'] == 'macosx'
installer_url = get_artifact_url('<build>', mozharness['build-artifact-name'])
mozharness_url = get_artifact_url('<build>',
'public/build/mozharness.zip')
worker['artifacts'] = [{
'name': prefix.rstrip('/'),
'path': path.rstrip('/'),
@@ -354,17 +353,17 @@ def mozharness_test_on_native_engine(con
"MOZ_HIDE_RESULTS_TABLE": '1',
"MOZ_NODE_PATH": "/usr/local/bin/node",
'MOZ_AUTOMATION': '1',
}
# talos tests don't need Xvfb
if is_talos:
env['NEED_XVFB'] = 'false'
- script = 'test-macosx.sh' if test['test-platform'].startswith('macosx') else 'test-linux.sh'
+ script = 'test-macosx.sh' if is_macosx else 'test-linux.sh'
worker['context'] = '{}/raw-file/{}/taskcluster/scripts/tester/{}'.format(
config.params['head_repository'], config.params['head_rev'], script
)
command = worker['command'] = ["./{}".format(script)]
if mozharness.get('no-read-buildbot-config'):
command.append("--no-read-buildbot-config")
command.extend([
--- a/taskcluster/taskgraph/transforms/tests.py
+++ b/taskcluster/taskgraph/transforms/tests.py
@@ -48,17 +48,20 @@ LINUX_WORKER_TYPES = {
# windows / os x worker types keyed by test-platform
WINDOWS_WORKER_TYPES = {
'windows7-32-vm': 'aws-provisioner-v1/gecko-t-win7-32',
'windows7-32': 'aws-provisioner-v1/gecko-t-win7-32-gpu',
'windows10-64-vm': 'aws-provisioner-v1/gecko-t-win10-64',
'windows10-64': 'aws-provisioner-v1/gecko-t-win10-64-gpu',
'windows10-64-asan': 'aws-provisioner-v1/gecko-t-win10-64-gpu',
- 'macosx64': 'scl3-puppet/os-x-10-10-gw'
+}
+
+MACOSX_WORKER_TYPES = {
+ 'macosx64': 'releng-hardware/gecko-t-osx-1010',
}
logger = logging.getLogger(__name__)
transforms = TransformSequence()
# Schema for a test description
#
@@ -693,17 +696,17 @@ def parallel_stylo_tests(config, tests):
def set_worker_type(config, tests):
"""Set the worker type based on the test platform."""
for test in tests:
# during the taskcluuster migration, this is a bit tortured, but it
# will get simpler eventually!
test_platform = test['test-platform']
if test_platform.startswith('macosx'):
# note that some portion of these will be allocated to BBB below
- test['worker-type'] = 'tc-worker-provisioner/gecko-t-osx-10-10'
+ test['worker-type'] = MACOSX_WORKER_TYPES['macosx64']
elif test_platform.startswith('win'):
if test.get('suite', '') == 'talos':
test['worker-type'] = 'buildbot-bridge/buildbot-bridge'
else:
test['worker-type'] = WINDOWS_WORKER_TYPES[test_platform.split('/')[0]]
elif test_platform.startswith('linux') or test_platform.startswith('android'):
if test.get('suite', '') == 'talos':
if config.config['args'].taskcluster_worker:
--- a/taskcluster/taskgraph/util/workertypes.py
+++ b/taskcluster/taskgraph/util/workertypes.py
@@ -31,17 +31,17 @@ WORKER_TYPES = {
'invalid/invalid': ('invalid', None),
'null-provisioner/human-breakpoint': ('push-apk-breakpoint', None),
'null-provisioner/human-breakpoint': ('push-apk-breakpoint', None),
'releng-hardware/gecko-t-linux-talos': ('native-engine', 'linux'),
'scriptworker-prov-v1/balrogworker-v1': ('balrog', None),
'scriptworker-prov-v1/beetmoverworker-v1': ('beetmover', None),
'scriptworker-prov-v1/pushapk-v1': ('push-apk', None),
"scriptworker-prov-v1/signing-linux-v1": ('scriptworker-signing', None),
- 'tc-worker-provisioner/gecko-t-osx-10-10': ('native-engine', 'macosx'),
+ 'releng-hardware/gecko-t-osx-1010': ('generic-worker', 'macosx'),
}
def worker_type_implementation(worker_type):
"""Get the worker implementation and OS for the given workerType, where the
OS represents the host system, not the target OS, in the case of
cross-compiles."""
# assume that worker types for all levels are the same implementation