in mozci/console/commands/push.py [0:0]
def retrieve_sheriff_intermittents(pushes_group_summaries, push):
if push.push_uuid not in pushes_group_summaries:
pushes_group_summaries[push.push_uuid] = push.group_summaries
# Compare intermittent failures that were predicted by mozci with the ones classified by Sheriffs
sheriff_intermittents = set()
for name, group in pushes_group_summaries[push.push_uuid].items():
classifications = set([c for c, _ in group.classifications])
if classifications <= set(INTERMITTENT_CLASSES):
sheriff_intermittents.add(name)
return pushes_group_summaries, sheriff_intermittents