Skip to content

Commit f3eaf5a

Browse files
committed
Fix duplicate environments for tests that create multiple [err]
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
1 parent 6d9542e commit f3eaf5a

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/test-failure-detector.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,13 @@ jobs:
135135
"error": entry.get("error", ""),
136136
"jobs": []
137137
}
138-
grouped[name]["jobs"].append({
139-
"job": job_name,
140-
"suite": suite_name,
141-
"url": job_urls.get(job_name, "")
142-
})
138+
# Deduplicate: skip if this job already recorded for this test
139+
if job_name not in [j["job"] for j in grouped[name]["jobs"]]:
140+
grouped[name]["jobs"].append({
141+
"job": job_name,
142+
"suite": suite_name,
143+
"url": job_urls.get(job_name, "")
144+
})
143145
print(f"{name} in {job_name}/{suite_name}")
144146
145147
unique_failures = list(grouped.values())

0 commit comments

Comments
 (0)