Skip to content

Commit 4ff5130

Browse files
giles17Copilot
andcommitted
fix: match Python report summary format (Total, passed/total, etc.)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent df49b91 commit 4ff5130

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

python/scripts/flaky_report/aggregate.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -321,22 +321,19 @@ def generate_trend_report(runs: list[dict[str, Any]]) -> str:
321321
# --- Overall status table (most recent first) ---
322322
lines.append("## Overall Status (Last 5 Runs)")
323323
lines.append("")
324-
lines.append("| Run | Executed | ✅ Passed | ❌ Failed | ⏭️ Skipped |")
325-
lines.append("|-----|----------|-----------|-----------|------------|")
324+
lines.append("| Run | Total | ✅ Passed | ❌ Failed | ⏭️ Skipped |")
325+
lines.append("|-----|-------|-----------|-----------|------------|")
326326

327327
for run in reversed(runs):
328328
s = run.get("summary", {})
329-
passed = s.get("passed", 0)
330-
failed = s.get("failed", 0)
331-
skipped = s.get("skipped", 0)
332-
executed = passed + failed
329+
total = s.get("total", 0)
333330
label = _format_run_label(run["timestamp"])
334331
lines.append(
335332
f"| {label} "
336-
f"| {executed} "
337-
f"| {passed} "
338-
f"| {failed} "
339-
f"| {skipped} |"
333+
f"| {total} "
334+
f"| {s.get('passed', 0)}/{total} "
335+
f"| {s.get('failed', 0)}/{total} "
336+
f"| {s.get('skipped', 0)}/{total} |"
340337
)
341338

342339
for _ in range(MAX_HISTORY - len(runs)):

0 commit comments

Comments
 (0)