Bug 1572316 - Add l10n_bumper task. r=darktrojan
authorRob Lemley <rob@thunderbird.net>
Sat, 21 Mar 2020 16:00:27 -0400
changeset 38553 be12a117692aa24d45b54716323b39652a7322dd
parent 38552 25ec6ec11a93356622ad030cdc81406eec167221
child 38554 0b44865abda183c5e3f560cfa42f003dc177bf03
push id400
push userclokep@gmail.com
push dateMon, 04 May 2020 18:56:09 +0000
reviewersdarktrojan
bugs1572316
Bug 1572316 - Add l10n_bumper task. r=darktrojan Sets up the l10n-bumper task to run in automation for Thunderbird. Basic config here could run as a cron task or via "Add new jobs" action.
taskcluster/ci/config.yml
taskcluster/ci/l10n-bump/kind.yml
--- a/taskcluster/ci/config.yml
+++ b/taskcluster/ci/config.yml
@@ -17,16 +17,17 @@ treeherder:
         'TW64': 'Toolchain builds for Windows 64-bits'
         'Deb7': 'Packages for Debian 7'
         'Deb7-32': 'Packages for Debian 7 32-bits'
         'Deb9': 'Packages for Debian 9'
         'Deb10': 'Packages for Debian 10'
         'Fetch': 'Fetch and store content'
         'L10n': 'Localised Repacks'
         'L10n-Rpk': 'Localized Repackaged Repacks'
+        'l10n-bump': 'L10n Bumper'
         'M': 'Mochitests'
         'p': 'Partial generation'
         'ps': 'Partials signing'
         'ms': 'Complete MAR signing'
         'MSI': 'Repack installers into MSIs'
         'MSIs': 'Signing of Repacked installers of MSIs'
         'rs': 'Repackage signing'
         'BM': 'Beetmover'
new file mode 100644
--- /dev/null
+++ b/taskcluster/ci/l10n-bump/kind.yml
@@ -0,0 +1,87 @@
+# 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_version_bump:transforms
+    - taskgraph.transforms.task:transforms
+
+
+job-defaults:
+    worker-type: tree
+    worker:
+        implementation: treescript
+        tags: []
+        bump: false
+        dontbuild: true
+        ignore-closed-tree: false
+        push:
+            by-project:
+                comm-(central|beta|esr.*): true
+                default: false
+        source-repo:
+            by-release-type:
+                release: https://hg.mozilla.org/releases/comm-esr68
+                beta: https://hg.mozilla.org/releases/comm-beta
+                default: https://hg.mozilla.org/comm-central
+        l10n-bump-info:
+            by-release-type:
+                beta|release:
+                    name: Thunderbird l10n changesets
+                    path: mail/locales/l10n-changesets.json
+                    version-path: mail/config/version.txt
+                    revision-url: "https://l10n.mozilla.org/shipping/l10n-changesets?av=tb%(MAJOR_VERSION)s"
+                    ignore-config:
+                        ja:
+                            - macosx64
+                        ja-JP-mac:
+                            - linux
+                            - linux64
+                            - win32
+                            - win64
+                    platform-configs: [{
+                        "platforms": [
+                            "linux",
+                            "linux64",
+                            "macosx64",
+                            "win32",
+                            "win64",
+                        ],
+                        "path": "mail/locales/shipped-locales",
+                        "format": "shipped-locales",
+                    }]
+                default:
+                    name: Thunderbird l10n changesets
+                    path: mail/locales/l10n-changesets.json
+                    version-path: mail/config/version.txt
+                    ignore-config:
+                        ja:
+                            - macosx64
+                        ja-JP-mac:
+                            - linux
+                            - linux64
+                            - win32
+                            - win64
+                    platform-configs: [{
+                        "platforms": [
+                            "linux",
+                            "linux64",
+                            "macosx64",
+                            "win32",
+                            "win64",
+                        ],
+                        "path": "mail/locales/all-locales",
+                    }]
+
+jobs:
+    l10n-bumper:
+        name: l10n_bumper
+        description: l10n changesets bumper (action/cron)
+        run-on-projects: []
+        treeherder:
+            kind: build
+            platform: linux64/opt
+            symbol: l10n-bump(lb)
+            tier: 1