in mozci/task.py [0:0]
def retrieve_results(self, push):
global slash_group_warned
if is_no_groups_suite(self.label):
assert (
self._errors is None
), f"{self.id} : {self.label} should have no errors"
self._errors = []
assert (
self._results is None
), f"{self.id} : {self.label} should have no results"
self._results = []
return
if self.state == "completed":
self._results = [
GroupResult(group, result, duration)
for group, (result, duration) in data.handler.get(
"test_task_groups", branch=push.branch, rev=push.rev, task=self
).items()
]
else:
self._results = []
# Apply WPT workaround, needed at least until bug 1632546 is fixed.
if self.is_wpt:
# TODO: It can be removed a year after https://bugzilla.mozilla.org/show_bug.cgi?id=1688043 is fixed.
# Filter out "/" groups.
if not slash_group_warned and any(
result.group == "/" for result in self._results
):
slash_group_warned = True
logger.warning(f"'/' group name in task {self.id}")
self._results = [result for result in self._results if result.group != "/"]
for result in self._results:
result.group = wpt_workaround(result.group)
# Filter out groups with bad names.
# TODO: Figure out why we still have some groups with bad names.
self._results = [
result
for result in self._results
if not is_bad_group(self.id, result.group)
]