Bug 1629039 - Limit --rebuild to 3 for mach try --full, r=jmaher.
authorBob Clary <bclary@bclary.com>
Wed, 29 Apr 2020 15:15:26 +0000
changeset 526701 630482eeb9ccf500897d20332c8835ad87372ff0
parent 526700 194abeed612dbbd4cfc3014dd2816bb44abd4057
child 526702 12649f80b04b17c096b9bd6cae79fb2c601e1b83
push id114454
push userbclary@mozilla.com
push dateWed, 29 Apr 2020 15:21:53 +0000
treeherderautoland@630482eeb9cc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1629039
milestone77.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 1629039 - Limit --rebuild to 3 for mach try --full, r=jmaher. Differential Revision: https://phabricator.services.mozilla.com/D73050
tools/tryselect/task_config.py
--- a/tools/tryselect/task_config.py
+++ b/tools/tryselect/task_config.py
@@ -225,16 +225,21 @@ class Rebuild(TryConfig):
           'help': 'Rebuild all selected tasks the specified number of times.',
           }],
     ]
 
     def try_config(self, rebuild, **kwargs):
         if not rebuild:
             return
 
+        if kwargs.get('full') and rebuild > 3:
+            print('warning: limiting --rebuild to 3 when using --full. '
+                  'Use custom push actions to add more.')
+            rebuild = 3
+
         return {
             'rebuild': rebuild,
         }
 
 
 class Routes(TryConfig):
     arguments = [
         [