Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

ci(verify): shorter failure details in the summary

Richie McIlroy7a03b4fb2b0f
diff --git a/scripts/verify/summary.py b/scripts/verify/summary.py
index d73c6c10d..79c1f3d62 100755
--- a/scripts/verify/summary.py
+++ b/scripts/verify/summary.py
@@ -76,10 +76,10 @@ def details(r):
name = stream.get("stream") or "stream"
lines.append(f"{name}: first {min(len(mismatches), MAX_MISMATCHES)} of {len(mismatches)} mismatches")
lines.extend(" " + frame(m) for m in mismatches[:MAX_MISMATCHES])
- for class_name, problem in (r.get("problems") or {}).items():
- line = f"{class_name}: {problem}"
- if line not in lines:
- lines.append(line)
+ if not r.get("streams"):
+ for class_name, problem in (r.get("problems") or {}).items():
+ if problem not in summary:
+ lines.append(f"{class_name}: {problem}")
return lines