зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1541693: Stop marking releases as started r=mtabara
Ship-it v1 is going away soon and we won't need to create new releases in Ship-it v1 in parallel with Ship-it v2. It's time to prep patches to remove this functionality. Differential Revision: https://phabricator.services.mozilla.com/D26044 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
1360eb1f6c
Коммит
53a245f3e2
|
@ -1,51 +0,0 @@
|
||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
loader: taskgraph.loader.transform:loader
|
|
||||||
|
|
||||||
transforms:
|
|
||||||
- taskgraph.transforms.release_mark_as_started:transforms
|
|
||||||
- taskgraph.transforms.task:transforms
|
|
||||||
|
|
||||||
job-defaults:
|
|
||||||
description: mark release as started in Ship-It v1
|
|
||||||
worker-type:
|
|
||||||
by-project:
|
|
||||||
mozilla-beta: scriptworker-prov-v1/shipit-v1
|
|
||||||
mozilla-release: scriptworker-prov-v1/shipit-v1
|
|
||||||
mozilla-esr60: scriptworker-prov-v1/shipit-v1
|
|
||||||
default: scriptworker-prov-v1/shipit-dev
|
|
||||||
worker:
|
|
||||||
implementation: shipit-started
|
|
||||||
scopes:
|
|
||||||
by-project:
|
|
||||||
mozilla-beta:
|
|
||||||
- project:releng:ship-it:server:production
|
|
||||||
- project:releng:ship-it:action:mark-as-started
|
|
||||||
mozilla-release:
|
|
||||||
- project:releng:ship-it:server:production
|
|
||||||
- project:releng:ship-it:action:mark-as-started
|
|
||||||
mozilla-esr60:
|
|
||||||
- project:releng:ship-it:server:production
|
|
||||||
- project:releng:ship-it:action:mark-as-started
|
|
||||||
default:
|
|
||||||
- project:releng:ship-it:server:staging
|
|
||||||
- project:releng:ship-it:action:mark-as-started
|
|
||||||
run-on-projects: []
|
|
||||||
shipping-phase: promote
|
|
||||||
locales-file: browser/locales/l10n-changesets.json
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
fennec:
|
|
||||||
name: release-fennec_mark_as_started
|
|
||||||
shipping-product: fennec
|
|
||||||
locales-file: mobile/locales/l10n-changesets.json
|
|
||||||
|
|
||||||
firefox:
|
|
||||||
name: release-firefox_mark_as_started
|
|
||||||
shipping-product: firefox
|
|
||||||
|
|
||||||
devedition:
|
|
||||||
name: release-devedition_mark_as_started
|
|
||||||
shipping-product: devedition
|
|
|
@ -312,10 +312,6 @@ release-mark-as-shipped
|
||||||
-----------------------
|
-----------------------
|
||||||
Marks releases as shipped in Ship-It v1
|
Marks releases as shipped in Ship-It v1
|
||||||
|
|
||||||
release-mark-as-started
|
|
||||||
-----------------------
|
|
||||||
Marks releases as started in Ship-It v1
|
|
||||||
|
|
||||||
release-bouncer-aliases
|
release-bouncer-aliases
|
||||||
-----------------------
|
-----------------------
|
||||||
Update Bouncer's (download.mozilla.org) "latest" aliases.
|
Update Bouncer's (download.mozilla.org) "latest" aliases.
|
||||||
|
|
|
@ -1,57 +0,0 @@
|
||||||
|
|
||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
"""
|
|
||||||
Add from parameters.yml into Balrog publishing tasks.
|
|
||||||
"""
|
|
||||||
|
|
||||||
from __future__ import absolute_import, print_function, unicode_literals
|
|
||||||
|
|
||||||
import json
|
|
||||||
|
|
||||||
from taskgraph.transforms.base import TransformSequence
|
|
||||||
from taskgraph.transforms.l10n import parse_locales_file
|
|
||||||
from taskgraph.util.schema import resolve_keyed_by
|
|
||||||
from taskgraph.util.scriptworker import get_release_config
|
|
||||||
|
|
||||||
transforms = TransformSequence()
|
|
||||||
|
|
||||||
|
|
||||||
@transforms.add
|
|
||||||
def make_task_description(config, jobs):
|
|
||||||
release_config = get_release_config(config)
|
|
||||||
for job in jobs:
|
|
||||||
resolve_keyed_by(
|
|
||||||
job, 'worker-type', item_name=job['name'], project=config.params['project']
|
|
||||||
)
|
|
||||||
resolve_keyed_by(
|
|
||||||
job, 'scopes', item_name=job['name'], project=config.params['project']
|
|
||||||
)
|
|
||||||
|
|
||||||
job['worker']['release-name'] = '{product}-{version}-build{build_number}'.format(
|
|
||||||
product=job['shipping-product'].capitalize(),
|
|
||||||
version=release_config['version'],
|
|
||||||
build_number=release_config['build_number']
|
|
||||||
)
|
|
||||||
job['worker']['product'] = job['shipping-product']
|
|
||||||
branch = config.params['head_repository'].split('https://hg.mozilla.org/')[1]
|
|
||||||
job['worker']['branch'] = branch
|
|
||||||
|
|
||||||
# locales files has different structure between mobile and desktop
|
|
||||||
locales_file = job['locales-file']
|
|
||||||
all_locales = {}
|
|
||||||
|
|
||||||
if job['shipping-product'] == 'fennec':
|
|
||||||
with open(locales_file, mode='r') as f:
|
|
||||||
all_locales = json.dumps(json.load(f))
|
|
||||||
else:
|
|
||||||
all_locales = "\n".join([
|
|
||||||
"{} {}".format(locale, revision)
|
|
||||||
for locale, revision in sorted(parse_locales_file(job['locales-file']).items())
|
|
||||||
])
|
|
||||||
|
|
||||||
job['worker']['locales'] = all_locales
|
|
||||||
del job['locales-file']
|
|
||||||
|
|
||||||
yield job
|
|
|
@ -1174,28 +1174,6 @@ def build_ship_it_shipped_payload(config, task, task_def):
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@payload_builder('shipit-started', schema={
|
|
||||||
Required('release-name'): basestring,
|
|
||||||
Required('product'): basestring,
|
|
||||||
Required('branch'): basestring,
|
|
||||||
Required('locales'): basestring,
|
|
||||||
})
|
|
||||||
def build_ship_it_started_payload(config, task, task_def):
|
|
||||||
worker = task['worker']
|
|
||||||
release_config = get_release_config(config)
|
|
||||||
|
|
||||||
task_def['payload'] = {
|
|
||||||
'release_name': worker['release-name'],
|
|
||||||
'product': worker['product'],
|
|
||||||
'version': release_config['version'],
|
|
||||||
'build_number': release_config['build_number'],
|
|
||||||
'branch': worker['branch'],
|
|
||||||
'revision': get_branch_rev(config),
|
|
||||||
'partials': release_config.get('partial_versions', ""),
|
|
||||||
'l10n_changesets': worker['locales'],
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@payload_builder('sign-and-push-addons', schema={
|
@payload_builder('sign-and-push-addons', schema={
|
||||||
Required('channel'): Any('listed', 'unlisted'),
|
Required('channel'): Any('listed', 'unlisted'),
|
||||||
Required('upstream-artifacts'): [{
|
Required('upstream-artifacts'): [{
|
||||||
|
|
|
@ -353,7 +353,6 @@ def get_release_config(config):
|
||||||
'release-secondary-update-verify-config',
|
'release-secondary-update-verify-config',
|
||||||
'release-balrog-submit-toplevel',
|
'release-balrog-submit-toplevel',
|
||||||
'release-secondary-balrog-submit-toplevel',
|
'release-secondary-balrog-submit-toplevel',
|
||||||
'release-mark-as-started'
|
|
||||||
):
|
):
|
||||||
partial_updates = json.loads(partial_updates)
|
partial_updates = json.loads(partial_updates)
|
||||||
release_config['partial_versions'] = ', '.join([
|
release_config['partial_versions'] = ', '.join([
|
||||||
|
|
Загрузка…
Ссылка в новой задаче