Bug 1728330 - remove pushsnap tasks. r=releng-reviewers,bhearsum a=release DONTBUILD
authorAki Sasaki <asasaki@mozilla.com>
Fri, 03 Sep 2021 18:14:31 +0000
changeset 661160 bfc96f4a3e02dcfad906c46f03ab8aa95253ce52
parent 661159 bc7bb264b4442d05f790b4d7cb0a4726a9288b27
child 661161 ad87582283bc27bad4fbb5205d49ab826fead298
push id2655
push userasasaki@mozilla.com
push dateTue, 07 Sep 2021 16:52:42 +0000
treeherdermozilla-release@bfc96f4a3e02 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersreleng-reviewers, bhearsum, release
bugs1728330
milestone92.0.1
Bug 1728330 - remove pushsnap tasks. r=releng-reviewers,bhearsum a=release DONTBUILD Differential Revision: https://phabricator.services.mozilla.com/D124411
taskcluster/ci/release-secondary-snap-push/kind.yml
taskcluster/ci/release-snap-push/kind.yml
taskcluster/docs/kinds.rst
taskcluster/taskgraph/transforms/release_snap_push.py
taskcluster/taskgraph/transforms/task.py
deleted file mode 100644
--- a/taskcluster/ci/release-secondary-snap-push/kind.yml
+++ /dev/null
@@ -1,38 +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_deps:transforms
-    - taskgraph.transforms.release_snap_push:transforms
-    - taskgraph.transforms.task:transforms
-
-kind-dependencies:
-    - release-snap-repackage
-
-job-defaults:
-    description: Pushes (Ubuntu) Snaps onto Snap Store
-    run-on-projects: []  # to make sure this never runs as part of CI
-    shipping-phase: ship  # ship-rc phase
-    treeherder:
-        platform: linux64/opt
-        kind: build
-        tier: 2
-    worker-type:
-        by-release-level:
-            production: scriptworker-k8s/gecko-3-pushsnap
-            staging: scriptworker-k8s/gecko-1-pushsnap
-    worker:
-        implementation: push-snap
-        channel:
-            by-release-type:
-                release-rc: "beta"
-                default: "mock"
-
-jobs:
-    firefox-rc:
-        shipping-product: firefox
-        treeherder:
-            symbol: Snap(push-beta)
deleted file mode 100644
--- a/taskcluster/ci/release-snap-push/kind.yml
+++ /dev/null
@@ -1,41 +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_deps:transforms
-    - taskgraph.transforms.release_snap_push:transforms
-    - taskgraph.transforms.task:transforms
-
-kind-dependencies:
-    - release-snap-repackage
-
-job-defaults:
-    description: Pushes (Ubuntu) Snaps onto Snap Store
-    run-on-projects: []  # to make sure this never runs as part of CI
-    shipping-phase: push
-    treeherder:
-        platform: linux64/opt
-        kind: build
-        tier: 2
-    worker-type:
-        by-release-level:
-            production: scriptworker-k8s/gecko-3-pushsnap
-            staging: scriptworker-k8s/gecko-1-pushsnap
-    worker:
-        implementation: push-snap
-        channel:
-            by-release-type:
-                beta: beta
-                release: candidate
-                esr78: esr/stable
-                esr91: esr/candidate
-                default: mock
-
-jobs:
-    firefox:
-        shipping-product: firefox
-        treeherder:
-            symbol: Snap(push)
--- a/taskcluster/docs/kinds.rst
+++ b/taskcluster/docs/kinds.rst
@@ -305,29 +305,20 @@ release auditing. https://wiki.mozilla.o
 release-snap-repackage
 ----------------------
 Generate an installer using Ubuntu's Snap format.
 
 release-flatpak-repackage
 -------------------------
 Generate an installer using Flathub's Flatpak format.
 
-release-snap-push
------------------
-Pushes Snap repackage on Snap store.
-
 release-flatpak-push
 --------------------
 Pushes Flatpak repackage on Flathub
 
-release-secondary-snap-push
----------------------------
-Performs the same function as `release-snap-push`, except for the beta channel as part of RC
-Releases.
-
 release-secondary-flatpak-push
 ------------------------------
 Performs the same function as `release-flatpak-push`, except for the beta channel as part of RC
 Releases.
 
 release-notify-av-announce
 --------------------------
 Notify anti-virus vendors when a release is likely shipping.
deleted file mode 100644
--- a/taskcluster/taskgraph/transforms/release_snap_push.py
+++ /dev/null
@@ -1,84 +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 release-snap-push kind into an actual task description.
-"""
-
-from __future__ import absolute_import, print_function, unicode_literals
-
-from six import text_type
-from taskgraph.transforms.base import TransformSequence
-from taskgraph.transforms.task import task_description_schema
-from taskgraph.util.schema import optionally_keyed_by, resolve_keyed_by, Schema
-from taskgraph.util.scriptworker import add_scope_prefix
-
-from voluptuous import Optional, Required
-
-push_snap_description_schema = Schema(
-    {
-        Required("name"): text_type,
-        Required("job-from"): task_description_schema["job-from"],
-        Required("dependencies"): task_description_schema["dependencies"],
-        Required("description"): task_description_schema["description"],
-        Required("treeherder"): task_description_schema["treeherder"],
-        Required("run-on-projects"): task_description_schema["run-on-projects"],
-        Required("worker-type"): optionally_keyed_by("release-level", text_type),
-        Required("worker"): object,
-        Optional("scopes"): [text_type],
-        Required("shipping-phase"): task_description_schema["shipping-phase"],
-        Required("shipping-product"): task_description_schema["shipping-product"],
-        Optional("extra"): task_description_schema["extra"],
-        Optional("attributes"): task_description_schema["attributes"],
-    }
-)
-
-transforms = TransformSequence()
-transforms.add_validate(push_snap_description_schema)
-
-
-@transforms.add
-def make_task_description(config, jobs):
-    for job in jobs:
-        if len(job["dependencies"]) != 1:
-            raise Exception("Exactly 1 dependency is required")
-
-        job["worker"]["upstream-artifacts"] = generate_upstream_artifacts(
-            job["dependencies"]
-        )
-
-        resolve_keyed_by(
-            job,
-            "worker.channel",
-            item_name=job["name"],
-            **{"release-type": config.params["release_type"]}
-        )
-        resolve_keyed_by(
-            job,
-            "worker-type",
-            item_name=job["name"],
-            **{"release-level": config.params.release_level()}
-        )
-        if config.params.release_level() == "production":
-            job.setdefault("scopes", []).append(
-                add_scope_prefix(
-                    config,
-                    "snapcraft:firefox:{}".format(
-                        job["worker"]["channel"].split("/")[0]
-                    ),
-                )
-            )
-
-        yield job
-
-
-def generate_upstream_artifacts(dependencies):
-    return [
-        {
-            "taskId": {"task-reference": "<{}>".format(task_kind)},
-            # TODO bug 1417960
-            "taskType": "build",
-            "paths": ["public/build/target.snap"],
-        }
-        for task_kind in dependencies.keys()
-    ]
--- a/taskcluster/taskgraph/transforms/task.py
+++ b/taskcluster/taskgraph/transforms/task.py
@@ -1178,38 +1178,16 @@ def build_bouncer_submission_payload(con
 
     task_def["payload"] = {
         "locales": worker["locales"],
         "submission_entries": worker["entries"],
     }
 
 
 @payload_builder(
-    "push-snap",
-    schema={
-        Required("channel"): text_type,
-        Required("upstream-artifacts"): [
-            {
-                Required("taskId"): taskref_or_string,
-                Required("taskType"): text_type,
-                Required("paths"): [text_type],
-            }
-        ],
-    },
-)
-def build_push_snap_payload(config, task, task_def):
-    worker = task["worker"]
-
-    task_def["payload"] = {
-        "channel": worker["channel"],
-        "upstreamArtifacts": worker["upstream-artifacts"],
-    }
-
-
-@payload_builder(
     "push-flatpak",
     schema={
         Required("channel"): text_type,
         Required("upstream-artifacts"): [
             {
                 Required("taskId"): taskref_or_string,
                 Required("taskType"): text_type,
                 Required("paths"): [text_type],