Bug 1562902 - fennec l10n bumping on esr68. r=Callek
authorAki Sasaki <asasaki@mozilla.com>
Sat, 20 Jul 2019 01:10:56 +0000
changeset 483625 5b21e285d546b38bbdae18c075c079f4b56350a7
parent 483624 bab3a664928e8ef726025292c47a82b0a3eece56
child 483626 1bf0b6a8dd1309ee22bd5b3593ca150172b644a9
child 483630 ad5e0980c2731978f159e17622d6ba0aa1c05ea5
push id113735
push usershindli@mozilla.com
push dateSun, 21 Jul 2019 09:53:58 +0000
treeherdermozilla-inbound@5b21e285d546 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCallek
bugs1562902
milestone70.0a1
first release with
nightly linux32
5b21e285d546 / 70.0a1 / 20190721094948 / files
nightly linux64
5b21e285d546 / 70.0a1 / 20190721094948 / files
nightly mac
5b21e285d546 / 70.0a1 / 20190721094948 / files
nightly win32
5b21e285d546 / 70.0a1 / 20190721094948 / files
nightly win64
5b21e285d546 / 70.0a1 / 20190721094948 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1562902 - fennec l10n bumping on esr68. r=Callek Differential Revision: https://phabricator.services.mozilla.com/D38782
testing/mozharness/configs/l10n_bumper/mozilla-esr68.py
testing/mozharness/scripts/l10n_bumper.py
new file mode 100644
--- /dev/null
+++ b/testing/mozharness/configs/l10n_bumper/mozilla-esr68.py
@@ -0,0 +1,38 @@
+import sys
+
+MULTI_REPO = "releases/mozilla-esr68"
+EXES = {}
+if sys.platform.startswith("linux"):
+    EXES = {
+        # Get around the https warnings
+        "hg": ["/usr/local/bin/hg", "--config", "web.cacerts=/etc/pki/tls/certs/ca-bundle.crt"],
+        "hgtool.py": ["/usr/local/bin/hgtool.py"],
+    }
+
+config = {
+    "log_name": "l10n_bumper",
+    "log_type": "multi",
+    "exes": EXES,
+
+    "gecko_pull_url": "https://hg.mozilla.org/{}".format(MULTI_REPO),
+    "gecko_push_url": "ssh://hg.mozilla.org/{}".format(MULTI_REPO),
+
+    "hg_user": "L10n Bumper Bot <release+l10nbumper@mozilla.com>",
+    "ssh_key": "~/.ssh/ffxbld_rsa",
+    "ssh_user": "ffxbld",
+
+    "vcs_share_base": "/builds/hg-shared",
+    "version_path": "mobile/android/config/version-files/release/version.txt",
+    "status_path": ".l10n_bumper_status",
+
+    "bump_configs": [{
+        "path": "mobile/locales/l10n-changesets.json",
+        "format": "json",
+        "name": "Fennec l10n changesets",
+        "revision_url": "https://l10n.mozilla.org/shipping/l10n-changesets?av=fennec%(COMBINED_MAJOR_VERSION)s",
+        "platform_configs": [{
+            "platforms": ["android-multilocale"],
+            "path": "mobile/android/locales/maemo-locales"
+        }],
+    }],
+}
--- a/testing/mozharness/scripts/l10n_bumper.py
+++ b/testing/mozharness/scripts/l10n_bumper.py
@@ -174,16 +174,17 @@ class L10nBumper(VCSScript):
 
     def _build_revision_dict(self, bump_config, version_list):
         self.info("Building revision dict...")
         platform_dict = self._build_platform_dict(bump_config)
         revision_dict = {}
         if bump_config.get('revision_url'):
             repl_dict = {
                 'MAJOR_VERSION': version_list[0],
+                'COMBINED_MAJOR_VERSION': str(int(version_list[0]) + int(version_list[1])),
             }
 
             url = bump_config['revision_url'] % repl_dict
             path = self.download_file(url, error_level=FATAL)
             revision_info = self.read_from_file(path)
             self.info("Got %s" % revision_info)
             for line in revision_info.splitlines():
                 locale, revision = line.split(' ')