Bug 1315145 - disable SETA on tier-1 platforms temporarily. r=dustin
authorJoel Maher <jmaher@mozilla.com>
Mon, 07 Nov 2016 13:39:23 -0500
changeset 351506 2a77ca1fae251af0e4600c43c07912fcdb6dc071
parent 351505 143f26b923d021c80b9103c7de17f446bd32b19e
child 351507 1d01138a95d9607d534808bc47eba1bc70f0f9fb
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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.")