Bug 1608610 - Remove various Lightning pieces from TaskCluster configuration. r=rjl
authorGeoff Lankow <geoff@darktrojan.net>
Thu, 06 Feb 2020 16:22:52 +1300
changeset 37216 0d533b4b3992aa621f064a70959a84e585d6d9d5
parent 37215 a0dda319d59ba06c195aed2a30ef46eee5d8045e
child 37217 91a334ef09a894375e6042bd4236222be2879f5f
push id2552
push userclokep@gmail.com
push dateMon, 10 Feb 2020 21:24:16 +0000
treeherdercomm-beta@f95a6f4408a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrjl
bugs1608610
Bug 1608610 - Remove various Lightning pieces from TaskCluster configuration. r=rjl
taskcluster/ci/addon/kind.yml
taskcluster/comm_taskgraph/manifests/thunderbird_candidates.yml
taskcluster/comm_taskgraph/manifests/thunderbird_nightly.yml
taskcluster/comm_taskgraph/transforms/addon.py
deleted file mode 100644
--- a/taskcluster/ci/addon/kind.yml
+++ /dev/null
@@ -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
-
-kind-dependencies:
-    - build
-    - toolchain
-    - nightly-l10n
-
-transforms:
-    - comm_taskgraph.transforms.addon:transforms
-    - taskgraph.transforms.job:transforms
-    - taskgraph.transforms.task:transforms
-
-jobs:
-    calendar-l10n:
-        treeherder:
-            kind: build
-            platform: linux64-shippable/opt
-            symbol: cal-l10n
-            tier: 1
-        worker-type: b-linux
-        worker:
-            docker-image: {"in-tree": "debian7-amd64-build"}
-            max-run-time: 600
-            artifacts:
-                - type: file
-                  name: public/build/lightning.xpi
-                  path: /builds/worker/artifacts/lightning.xpi
-            env:
-                UPLOAD_DIR: /builds/worker/artifacts
-        description: Lightning all-locales repack
-        run-on-projects: []
-        run:
-            using: run-task
-            comm-checkout: true
-            command: >
-                cd /builds/worker/checkouts/gecko/comm &&
-                ./calendar/lightning/repack/all-locale-repack.sh
-        locales-file: comm/mail/locales/l10n-changesets.json
-        locales-per-chunk: 5
-        dependencies:
-            build: build-linux64-shippable/opt
-            toolchain-linux64-libdmg: toolchain-linux64-libdmg
-        fetches:
-            build:
-                - lightning.xpi
-            toolchain-linux64-libdmg:
-                - dmg.tar.xz
--- a/taskcluster/comm_taskgraph/manifests/thunderbird_candidates.yml
+++ b/taskcluster/comm_taskgraph/manifests/thunderbird_candidates.yml
@@ -333,20 +333,8 @@ mapping:
             - partials-signing
         partials_only: true
         pretty_name: thunderbird-${previous_version}-${version}.partial.mar
         checksums_path: update/${path_platform}/${locale}/thunderbird-${previous_version}-${version}.partial.mar
         update_balrog_manifest: true
         from_buildid: ${from_buildid}
         destinations:
             - ${version}-candidates/build${build_number}/update/${path_platform}
-    lightning.xpi:
-        <<: *default
-        description: "Lightning XPI (en-US only)"
-        all_locales: false  # Uses default_locale only
-        from:
-            - build
-        only_for_platforms:
-            - linux64-shippable
-        pretty_name: lightning.${locale}.xpi
-        checksums_path: lightning.${locale}.xpi
-        destinations:
-            - ${version}-candidates/build${build_number}
--- a/taskcluster/comm_taskgraph/manifests/thunderbird_nightly.yml
+++ b/taskcluster/comm_taskgraph/manifests/thunderbird_nightly.yml
@@ -403,22 +403,8 @@ mapping:
         update_balrog_manifest: true
         from_buildid: ${from_buildid}
         destinations:
             by-locale:
                 en-US:
                     - partials/${year}/${month}/${upload_date}-${branch}
                 default:
                     - partials/${year}/${month}/${upload_date}-${branch}-l10n
-    lightning.xpi:
-        <<: *default
-        description: "Lightning XPI (en-US only)"
-        all_locales: false  # Uses default_locale only
-        from:
-            - build
-        only_for_platforms:
-            - linux64-shippable
-        pretty_name: lightning.${locale}.xpi
-        checksums_path: lightning.${locale}.xpi
-        destinations:
-            - ${year}/${month}/${upload_date}-${branch}
-            - latest-${branch}
-            - latest-${branch}-l10n
deleted file mode 100644
--- a/taskcluster/comm_taskgraph/transforms/addon.py
+++ /dev/null
@@ -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/.
-
-from __future__ import absolute_import, print_function, unicode_literals
-
-from mozbuild.chunkify import chunkify
-from taskgraph.transforms.base import TransformSequence
-from taskgraph.transforms.l10n import parse_locales_file
-
-transforms = TransformSequence()
-
-
-@transforms.add
-def add_l10n_dependencies(config, jobs):
-    """
-    For multilingual Lightning repackaging, fetches a repackaged build
-    artifact for each locale. This is a Linux 64-bit build for all locales
-    except ja-JP-mac, in which case it is a OS X build.
-    """
-    for job in jobs:
-        locales_with_changesets = parse_locales_file(job["locales-file"],
-                                                     platform="linux64")
-        locales_with_changesets = sorted(locales_with_changesets.keys())
-
-        chunks, remainder = divmod(len(locales_with_changesets), job["locales-per-chunk"])
-        if remainder:
-            chunks = int(chunks + 1)
-
-        for this_chunk in range(1, chunks + 1):
-            label = "unsigned-repack-%d" % this_chunk
-            job["dependencies"][label] = "nightly-l10n-linux64-shippable-%d/opt" % this_chunk
-            chunked_locales = chunkify(locales_with_changesets, this_chunk, chunks)
-            job["fetches"][label] = [{
-                "artifact": "%s/target.tar.bz2" % locale,
-                "dest": locale
-            } for locale in chunked_locales]
-
-        mac_locales_with_changesets = parse_locales_file(job["locales-file"],
-                                                         platform="macosx64")
-        mac_locales_with_changesets = sorted(mac_locales_with_changesets.keys())
-
-        chunks, remainder = divmod(len(mac_locales_with_changesets), job["locales-per-chunk"])
-        if remainder:
-            chunks = int(chunks + 1)
-
-        for this_chunk in range(1, chunks + 1):
-            chunked_locales = chunkify(mac_locales_with_changesets, this_chunk, chunks)
-            if "ja-JP-mac" in chunked_locales:
-                label = "unsigned-repack-mac"
-                job["dependencies"][label] = "nightly-l10n-macosx64-shippable-%d/opt" % this_chunk
-                job["fetches"][label] = [{
-                    "artifact": "ja-JP-mac/target.dmg",
-                    "dest": "ja-JP-mac"
-                }]
-
-        del job["locales-file"]
-        del job["locales-per-chunk"]
-
-        yield job