File tree Expand file tree Collapse file tree
python/scripts/flaky_report Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )):
You can’t perform that action at this time.
0 commit comments