in mozci/task.py [0:0]
def is_confirmed_failure(self) -> Optional[bool]:
# match labels to -cf labels, and if ran, return True || False
# if not run -cf task, return None
# return False = intermittent
# return True = regression
cf_to_results = []
for task in self.tasks:
for result in task.results:
if (
task.label
and task.label.endswith("-cf")
and result.group == self.name
):
cf_to_results.append(result.ok)
if not cf_to_results:
return None
if False in cf_to_results:
return True
return False