Bug 1315145 - disable SETA on tier-1 platforms temporarily. r?dustin
MozReview-Commit-ID: 2royNntQxB2
--- a/taskcluster/taskgraph/util/seta.py
+++ b/taskcluster/taskgraph/util/seta.py
@@ -6,17 +6,17 @@ from requests import exceptions
logger = logging.getLogger(__name__)
headers = {
'User-Agent': 'TaskCluster'
}
# It's a list of project name which SETA is useful on
SETA_PROJECTS = ['mozilla-inbound', 'autoland']
-SETA_ENDPOINT = "http://seta.herokuapp.com/data/setadetails/?branch=%s"
+SETA_ENDPOINT = "https://seta.herokuapp.com/data/setadetails/?branch=%s"
class SETA(object):
"""
Interface to the SETA service, which defines low-value tasks that can be optimized out
of the taskgraph.
"""
def __init__(self):
@@ -40,16 +40,20 @@ class SETA(object):
logger.debug("Retrieving low-value jobs list from SETA")
response = retry(requests.get, attempts=2, sleeptime=10,
args=(url, ),
kwargs={'timeout': 5, 'headers': headers})
task_list = json.loads(response.content).get('jobtypes', '')
if len(task_list) > 0:
low_value_tasks = task_list.values()[0]
+ # Bug 1315145, disable SETA for tier-1 platforms until backfill is implemented.
+ low_value_tasks = [x for x in low_value_tasks if x.find('debug') == -1]
+ low_value_tasks = [x for x in low_value_tasks if x.find('asan') == -1]
+
# In the event of request times out, requests will raise a TimeoutError.
except exceptions.Timeout:
logger.warning("SETA server is timeout, we will treat all test tasks as high value.")
# In the event of a network problem (e.g. DNS failure, refused connection, etc),
# requests will raise a ConnectionError.
except exceptions.ConnectionError:
logger.warning("SETA server is timeout, we will treat all test tasks as high value.")