Bug 1251533 - balrog release pusher should halt on failure r=jlund
authorRail Aliiev <rail@mozilla.com>
Thu, 25 Feb 2016 23:34:43 -0800
changeset 304347 59e320fac176745bceb7dc0dd8ec3812fc7ca43c
parent 304346 4c24498f57646c729d1d4ec3e0b5e8bf603909eb
child 304348 d61c0c229f7b8c1fe56e626229c23c8ad9007124
push id9175
push userraliiev@mozilla.com
push dateThu, 03 Mar 2016 03:39:52 +0000
treeherdermozilla-aurora@0bee186afe5a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlund
bugs1251533
milestone46.0a2
Bug 1251533 - balrog release pusher should halt on failure r=jlund MozReview-Commit-ID: 1hiVVSAGNIV
testing/mozharness/configs/releases/updates_beta.py
testing/mozharness/configs/releases/updates_date.py
testing/mozharness/configs/releases/updates_release.py
testing/mozharness/scripts/release/updates.py
--- a/testing/mozharness/configs/releases/updates_beta.py
+++ b/testing/mozharness/configs/releases/updates_beta.py
@@ -26,9 +26,10 @@ config = {
             "update_verify_channel": "beta-localtest",
             "mar_channel_ids": [
                 "firefox-mozilla-beta", "firefox-mozilla-beta",
             ],
             "channel_names": ["beta", "beta-localtest", "beta-cdntest"],
             "rules_to_update": ["firefox-beta-cdntest", "firefox-beta-localtest"],
         },
     },
+    "balrog_use_dummy_suffix": False,
 }
--- a/testing/mozharness/configs/releases/updates_date.py
+++ b/testing/mozharness/configs/releases/updates_date.py
@@ -26,9 +26,10 @@ config = {
             "requires_mirrors": False,
             "patcher_config": "mozDate-branch-patcher2.cfg",
             "update_verify_channel": "date-localtest",
             "mar_channel_ids": [],
             "channel_names": ["date", "date-localtest", "date-cdntest"],
             "rules_to_update": ["firefox-date-cdntest", "firefox-date-localtest"],
         }
     },
+    "balrog_use_dummy_suffix": False,
 }
--- a/testing/mozharness/configs/releases/updates_release.py
+++ b/testing/mozharness/configs/releases/updates_release.py
@@ -35,9 +35,10 @@ config = {
             "requires_mirrors": True,
             "patcher_config": "mozRelease-branch-patcher2.cfg",
             "update_verify_channel": "release-localtest",
             "mar_channel_ids": [],
             "channel_names": ["release", "release-localtest", "release-cdntest"],
             "rules_to_update": ["firefox-release-cdntest", "firefox-release-localtest"],
         },
     },
+    "balrog_use_dummy_suffix": False,
 }
--- a/testing/mozharness/scripts/release/updates.py
+++ b/testing/mozharness/scripts/release/updates.py
@@ -284,13 +284,16 @@ class UpdatesBumper(MercurialScript, Bui
         for p in self.config["platforms"]:
             cmd.extend(["--platform", p])
         for v, build_number in self.query_matching_partials(channel_config):
             partial = "{version}build{build_number}".format(
                 version=v, build_number=build_number)
             cmd.extend(["--partial-update", partial])
         if channel_config["requires_mirrors"]:
             cmd.append("--requires-mirrors")
-        self.retry(lambda: self.run_command(cmd))
+        if self.config["balrog_use_dummy_suffix"]:
+            cmd.append("--dummy")
+
+        self.retry(lambda: self.run_command(cmd, halt_on_failure=True))
 
 # __main__ {{{1
 if __name__ == '__main__':
     UpdatesBumper().run_and_exit()