Bug 1381577 - Part U; Add tc win l10n to the taskgraph, and don't try to sign it yet. r=kmoir

Land date changes to support windows nightlies onto central

MozReview-Commit-ID: EK4JQI4Rqgo

--HG--
extra : rebase_source : 9a8919eb2274e808aa61a6b5f0f0e8d8230cfd2b
This commit is contained in:
Justin Wood 2017-07-18 14:22:15 -04:00
Родитель 266e1f66a3
Коммит 9503c882bd
3 изменённых файлов: 69 добавлений и 19 удалений

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

@ -14,3 +14,7 @@ kind-dependencies:
only-for-attributes:
- nightly
not-for-build-platforms:
- win32-nightly/opt
- win64-nightly/opt

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

@ -17,6 +17,8 @@ only-for-build-platforms:
- linux-nightly/opt
- android-api-15-nightly/opt
- macosx64-nightly/opt
- win32-nightly/opt
- win64-nightly/opt
job-template:
description:
@ -30,6 +32,7 @@ job-template:
chunks:
by-build-platform:
macosx64-nightly: 8
win.*: 10
default: 6
run-on-projects: ['mozilla-central', 'mozilla-beta']
ignore-locales:
@ -46,6 +49,8 @@ job-template:
default: public
android-api-15-nightly: internal
macosx64-nightly: internal
win32-nightly: internal
win64-nightly: internal
index:
type: l10n
product:
@ -57,23 +62,24 @@ job-template:
linux-nightly: linux-opt
linux64-nightly: linux64-opt
macosx64-nightly: macosx64-opt
win32-nightly: win32-opt
win64-nightly: win64-opt
android-api-15-nightly: android-api-15-opt
worker-type:
by-build-platform:
default: aws-provisioner-v1/gecko-{level}-b-linux
android-api-15-nightly: aws-provisioner-v1/gecko-{level}-b-android
win.*: aws-provisioner-v1/gecko-{level}-b-win2012
treeherder:
symbol: tc-L10n(N)
tier:
by-build-platform:
linux.*: 1
android.*: 1
default: 2
tier: 1
platform:
by-build-platform:
linux64-nightly: linux64/opt
linux-nightly: linux32/opt
macosx64-nightly: osx-cross/opt
win32-nightly: windows2012-32/opt
win64-nightly: windows2012-64/opt
android-api-15-nightly: android-4-0-armv7-api15/opt
env:
by-build-platform:
@ -89,6 +95,14 @@ job-template:
task-reference: https://queue.taskcluster.net/v1/task/<unsigned-build>/artifacts/public/build
MAR_TOOLS_URL:
task-reference: https://queue.taskcluster.net/v1/task/<unsigned-build>/artifacts/public/build/host/bin
win.*:
EN_US_PACKAGE_NAME: target.zip
EN_US_BINARY_URL:
task-reference: https://queue.taskcluster.net/v1/task/<signed-build>/artifacts/public/build
EN_US_INSTALLER_BINARY_URL:
task-reference: https://queue.taskcluster.net/v1/task/<repackage-signed>/artifacts/public/build
MAR_TOOLS_URL:
task-reference: https://queue.taskcluster.net/v1/task/<unsigned-build>/artifacts/public/build/host/bin
android-api-15-nightly:
EN_US_PACKAGE_NAME: target.apk
EN_US_BINARY_URL:
@ -105,6 +119,8 @@ job-template:
macosx64-nightly:
- single_locale/tc_macosx64.py
- taskcluster_nightly.py
win32-nightly: []
win64-nightly: []
android-api-15-nightly:
- taskcluster_nightly.py
- single_locale/{project}_android-api-15.py
@ -124,13 +140,25 @@ job-template:
- environment-config=single_locale/production.py
- branch-config=single_locale/{project}.py
- platform-config=single_locale/macosx64.py
win32-nightly:
- environment-config=single_locale/production.py
- branch-config=single_locale/{project}.py
- platform-config=single_locale/win32.py
- config=single_locale/tc_win32.py
- config=taskcluster_nightly.py
win64-nightly:
- environment-config=single_locale/production.py
- branch-config=single_locale/{project}.py
- platform-config=single_locale/win64.py
- config=single_locale/tc_win64.py
- config=taskcluster_nightly.py
default: [ ]
actions:
by-build-platform:
default: [clone-locales list-locales setup repack
submit-to-balrog summary]
android-api-15-nightly: [clone-locales list-locales setup repack
upload-repacks submit-to-balrog summary]
default: ['clone-locales', 'list-locales', 'setup', 'repack',
'submit-to-balrog', 'summary']
android-api-15-nightly: ['clone-locales', 'list-locales', 'setup', 'repack',
'upload-repacks', 'submit-to-balrog', 'summary']
script:
by-build-platform:
default: mozharness/scripts/desktop_l10n.py

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

@ -215,6 +215,12 @@ def setup_nightly_dependency(config, jobs):
yield job
continue # do not add a dep unless we're a nightly
job['dependencies'] = {'unsigned-build': job['dependent-task'].label}
if job['attributes']['build_platform'].startswith('win'):
# Weave these in and just assume they will be there in the resulting graph
job['dependencies'].update({
'signed-build': 'signing-{}'.format(job['name']),
'repackage-signed': 'repackage-signing-repackage-{}'.format(job['name'])
})
yield job
@ -331,8 +337,9 @@ def mh_options_replace_project(config, jobs):
def chain_of_trust(config, jobs):
for job in jobs:
# add the docker image to the chain of trust inputs in task.extra
cot = job.setdefault('extra', {}).setdefault('chainOfTrust', {})
cot.setdefault('inputs', {})['docker-image'] = {"task-reference": "<docker-image>"}
if not job['worker-type'].endswith("-b-win2012"):
cot = job.setdefault('extra', {}).setdefault('chainOfTrust', {})
cot.setdefault('inputs', {})['docker-image'] = {"task-reference": "<docker-image>"}
yield job
@ -348,12 +355,6 @@ def make_job_description(config, jobs):
for job in jobs:
job_description = {
'name': job['name'],
'worker': {
'docker-image': {'in-tree': 'desktop-build'},
'max-run-time': job['run-time'],
'chain-of-trust': True,
},
'extra': job['extra'],
'worker-type': job['worker-type'],
'description': job['description'],
'run': {
@ -363,8 +364,6 @@ def make_job_description(config, jobs):
'script': job['mozharness']['script'],
'actions': job['mozharness']['actions'],
'options': job['mozharness']['options'],
'tooltool-downloads': job['tooltool'],
'need-xvfb': True,
},
'attributes': job['attributes'],
'treeherder': {
@ -375,6 +374,25 @@ def make_job_description(config, jobs):
},
'run-on-projects': job.get('run-on-projects') if job.get('run-on-projects') else [],
}
if job.get('extra'):
job_description['extra'] = job['extra']
if job['worker-type'].endswith("-b-win2012"):
job_description['worker'] = {
'os': 'windows',
'max-run-time': 7200,
'chain-of-trust': True,
}
job_description['run']['use-simple-package'] = False
job_description['run']['use-magic-mh-args'] = False
else:
job_description['worker'] = {
'docker-image': {'in-tree': 'desktop-build'},
'max-run-time': job['run-time'],
'chain-of-trust': True,
}
job_description['run']['tooltool-downloads'] = job['tooltool']
job_description['run']['need-xvfb'] = True
if job.get('index'):
job_description['index'] = {