Bug 1499809 - l10n bumper should touch a status file on success. r=nthomas
authorAki Sasaki <asasaki@mozilla.com>
Thu, 18 Oct 2018 22:05:51 +0000
changeset 500468 d0d593bf9772b1eb99547d114c9c6533e87bcd56
parent 500467 b969cbe46b14814c397199ef84db2ed18d252107
child 500469 4b8f36f9896b04d3e10f598383edd019feb1ce73
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnthomas
bugs1499809
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1499809 - l10n bumper should touch a status file on success. r=nthomas Differential Revision: https://phabricator.services.mozilla.com/D9017
testing/mozharness/configs/l10n_bumper/jamun.py
testing/mozharness/configs/l10n_bumper/mozilla-beta.py
testing/mozharness/configs/l10n_bumper/mozilla-central.py
testing/mozharness/scripts/l10n_bumper.py
--- a/testing/mozharness/configs/l10n_bumper/jamun.py
+++ b/testing/mozharness/configs/l10n_bumper/jamun.py
@@ -18,16 +18,17 @@ config = {
     "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": "browser/config/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%(MAJOR_VERSION)s",
         "platform_configs": [{
             "platforms": ["android-api-16", "android"],
--- a/testing/mozharness/configs/l10n_bumper/mozilla-beta.py
+++ b/testing/mozharness/configs/l10n_bumper/mozilla-beta.py
@@ -17,16 +17,17 @@ config = {
     "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": "browser/config/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%(MAJOR_VERSION)s",
         "platform_configs": [{
             "platforms": ["android-multilocale"],
--- a/testing/mozharness/configs/l10n_bumper/mozilla-central.py
+++ b/testing/mozharness/configs/l10n_bumper/mozilla-central.py
@@ -17,16 +17,17 @@ config = {
     "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": "browser/config/version.txt",
+    "status_path": ".l10n_bumper_status",
 
     "bump_configs": [{
         "path": "mobile/locales/l10n-changesets.json",
         "format": "json",
         "name": "Fennec l10n changesets",
         "platform_configs": [{
             "platforms": ["android-api-16", "android"],
             "path": "mobile/android/locales/all-locales"
--- a/testing/mozharness/scripts/l10n_bumper.py
+++ b/testing/mozharness/scripts/l10n_bumper.py
@@ -329,13 +329,18 @@ class L10nBumper(VCSScript):
             self.device_manifests = {}
 
             # Sleep before trying again
             self.info("Sleeping 60 before trying again")
             time.sleep(60)
         else:
             self.fatal("Didn't complete successfully (hit max_retries)")
 
+        # touch status file for nagios
+        dirs = self.query_abs_dirs()
+        status_path = os.path.join(dirs['base_work_dir'], self.config['status_path'])
+        self._touch_file(status_path)
+
 
 # __main__ {{{1
 if __name__ == '__main__':
     bumper = L10nBumper()
     bumper.run_and_exit()