in sync/notify/results.py [0:0]
def is_browser_only_failure(self, target_browser: str = "firefox") -> bool:
gh_target = self.statuses[target_browser].get("GitHub")
gh_other = [self.statuses.get(browser, {}).get("GitHub")
for browser in browsers
if browser != target_browser]
if gh_target is None:
# We don't have enough information to determine GH-only failures
return False
if gh_target.head in passing_statuses:
return False
if any(item is None or item.head not in passing_statuses for item in gh_other):
return False
# If it's passing on all internal platforms, assume a pref has to be
# set or something. We could do better than this
gecko_ci_statuses = [status
for job_name, status in self.statuses[target_browser].items()
if job_name != "GitHub"]
if (gecko_ci_statuses and
all(status.head in passing_statuses for status in gecko_ci_statuses)):
return False
return True