Bug 1896374 - Remove release-snap-repackage task r=releng-reviewers,taskgraph-reviewers,jcristau

Remote execution of the task itself, removal of the docker image will
happen in a second time.

Differential Revision: https://phabricator.services.mozilla.com/D210344
This commit is contained in:
Alexandre Lissy 2024-07-03 13:18:10 +00:00
Родитель 3da7851102
Коммит c8c35f4244
4 изменённых файлов: 1 добавлений и 120 удалений

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

@ -240,10 +240,6 @@ release-beetmover-push-to-release publishes promoted releases from the
candidates directory to the release directory. This is part of release
promotion.
beetmover-snap
--------------
Beetmover-source publishes Ubuntu's snap. This is part of release promotion.
beetmover-source
----------------
Beetmover-source publishes release source. This is part of release promotion.
@ -310,10 +306,6 @@ release-binary-transparency
Binary transparency creates a publicly verifiable log of binary shas for downstream
release auditing. https://wiki.mozilla.org/Security/Binary_Transparency
release-snap-repackage
----------------------
Generate an installer using Ubuntu's Snap format.
release-flatpak-repackage
-------------------------
Generate an installer using Flathub's Flatpak format.

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

@ -86,13 +86,6 @@ def make_task_description(config, jobs):
)
dependencies = {dep_job.kind: dep_job.label}
# XXX release snap-repackage has a variable number of dependencies, depending on how many
# "post-beetmover-dummy" jobs there are in the graph.
if dep_job.kind != "release-snap-repackage" and len(dep_job.dependencies) > 1:
raise NotImplementedError(
"Can't beetmove a signing task with multiple dependencies"
)
signing_dependencies = dep_job.dependencies
dependencies.update(signing_dependencies)
@ -152,9 +145,7 @@ def make_task_worker(config, jobs):
valid_beetmover_job = len(job["dependencies"]) == 2 and any(
["signing" in j for j in job["dependencies"]]
)
# XXX release snap-repackage has a variable number of dependencies, depending on how many
# "post-beetmover-dummy" jobs there are in the graph.
if "-snap-" not in job["label"] and not valid_beetmover_job:
if not valid_beetmover_job:
raise NotImplementedError("Beetmover must have two dependencies.")
locale = job["attributes"].get("locale")

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

@ -1,42 +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/.
"""
Transform the snap beetmover kind into an actual task description.
"""
from taskgraph.transforms.base import TransformSequence
transforms = TransformSequence()
@transforms.add
def leave_snap_repackage_dependencies_only(config, jobs):
for job in jobs:
# XXX: We delete the build dependency because, unlike the other beetmover
# tasks, source doesn't depend on any build task at all. This hack should
# go away when we rewrite beetmover transforms to allow more flexibility in deps
job["dependencies"] = {
key: value
for key, value in job["dependencies"].items()
if key == "release-snap-repackage"
}
job["worker"]["upstream-artifacts"] = [
upstream_artifact
for upstream_artifact in job["worker"]["upstream-artifacts"]
if upstream_artifact["taskId"]["task-reference"]
== "<release-snap-repackage>"
]
yield job
@transforms.add
def set_custom_treeherder_job_name(config, jobs):
for job in jobs:
job.get("treeherder", {})["symbol"] = "Snap(BM)"
yield job

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

@ -1,60 +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:
- gecko_taskgraph.transforms.release_deps:transforms
- gecko_taskgraph.transforms.release_snap_repackage:transforms
- gecko_taskgraph.transforms.task:transforms
kind-dependencies:
- post-beetmover-dummy
- post-langpack-dummy
task-defaults:
description: Generates snap image
run-on-projects: [] # to make sure this never runs as part of CI
shipping-phase: promote
scopes: []
treeherder:
platform: linux64-shippable/opt
kind: build
tier: 2
worker-type: b-linux-gcp
worker:
implementation: docker-worker
os: linux
max-run-time: 7200
docker-image: {in-tree: firefox-snap}
artifacts:
- name: public/build
type: directory
path: /home/worker/artifacts/
command:
- /bin/bash
- -cx
- ./runme.sh
env:
VERSION: "{release_config[version]}"
BUILD_NUMBER: "{release_config[build_number]}"
CANDIDATES_DIR:
by-release-level:
staging:
https://ftp.stage.mozaws.net/pub/{task[shipping-product]}/candidates
production:
https://archive.mozilla.org/pub/{task[shipping-product]}/candidates
LC_ALL: C.UTF-8
LANG: C.UTF-8
L10N_CHANGESETS: "{config_params[head_repository]}/raw-file/{config_params[head_rev]}/browser/locales/l10n-changesets.json"
chain-of-trust: true
tasks:
firefox:
shipping-product: firefox
attributes:
build_platform: linux64-shippable
build_type: opt
treeherder:
symbol: Snap(r)