Bug 1640047 - Don't take into account bugbug's known tasks if they are likely wrong. r=ahal DONTBUILD
authorMarco Castelluccio <mcastelluccio@mozilla.com>
Fri, 22 May 2020 15:28:43 +0000
changeset 531675 5502947dfcfc512bb8591606ca186cd420d0283c
parent 531673 a4b260e9a50c287676760de9c12525ca9224593e
child 531676 2cfe7cda14266a8d77ffda5b822779e5b9ddb3f4
push id37442
push userncsoregi@mozilla.com
push dateSat, 23 May 2020 09:21:24 +0000
treeherdermozilla-central@bbcc193fe0f0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1640047
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1640047 - Don't take into account bugbug's known tasks if they are likely wrong. r=ahal DONTBUILD Differential Revision: https://phabricator.services.mozilla.com/D76418
taskcluster/taskgraph/optimize/bugbug.py
--- a/taskcluster/taskgraph/optimize/bugbug.py
+++ b/taskcluster/taskgraph/optimize/bugbug.py
@@ -70,17 +70,17 @@ class BugBugPushSchedules(OptimizationSt
         tasks = set(
             task
             for task, confidence in data.get(key, {}).items()
             if confidence >= self.confidence_threshold
         )
 
         test_manifests = task.attributes.get('test_manifests')
         if test_manifests is None or self.use_reduced_tasks:
-            if "known_tasks" in data and task.label not in data["known_tasks"]:
+            if data.get("known_tasks") and task.label not in data["known_tasks"]:
                 return False
 
             if task.label not in tasks:
                 return True
 
             return False
 
         # If a task contains more than one group, use the max confidence.