Bug 1637718 - [taskgraph] Make sure bugbug optimizers only run on autoland or try, r=jmaher

Differential Revision: https://phabricator.services.mozilla.com/D75181
This commit is contained in:
Andrew Halberstadt 2020-05-13 19:55:07 +00:00
parent a12e8bbd08
commit ff20854d83

View File

@ -51,6 +51,9 @@ class BugBugPushSchedules(OptimizationStrategy):
self.fallback = fallback
def should_remove_task(self, task, params, importance):
if params['project'] not in ("autoland", "try"):
return False
branch = urlsplit(params['head_repository']).path.strip('/')
rev = params['head_rev']
try: