in mozci/task.py [0:0]
def is_cross_config_failure(self, minimum_count: int = 2) -> Optional[bool]:
states = [
result.ok
for task in self.tasks
for result in task.results
if result.group == self.name
]
nb = len(states)
nb_passed = sum(states) # Number of True booleans in the states list
nb_failed = nb - nb_passed
# If the group run on fewer than 'minimum_count' tasks, we don't have enough information to tell.
if nb < minimum_count:
return None
# A group is a cross config failure when it is failing in all tasks and not
# only in some.
return nb_failed > 0 and nb_passed == 0