Bug 1315145 - disable SETA on tier-1 platforms temporarily. r?dustin draft
authorJoel Maher <jmaher@mozilla.com>
Mon, 07 Nov 2016 13:39:23 -0500
changeset 434925 40b245e7564c21ee2807bf406d2832851e43a641
parent 434906 1c529127c7a4f0e69143110bb631f23cfc027895
child 536157 e29fb9ade993b2553de89aa2bddffdaf3e6b6497
push id34870
push userbmo:jmaher@mozilla.com
push dateMon, 07 Nov 2016 18:39:57 +0000
reviewersdustin
bugs1315145
milestone52.0a1
Bug 1315145 - disable SETA on tier-1 platforms temporarily. r?dustin MozReview-Commit-ID: 2royNntQxB2
taskcluster/taskgraph/util/seta.py
--- 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.")