mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
a12e8bbd08
commit
ff20854d83
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user