Skip to content

Commit

Permalink
fix: cap alerts view only for stand-alone
Browse files Browse the repository at this point in the history
Signed-off-by: Jaime Silvela <[email protected]>
  • Loading branch information
jsilvela committed May 30, 2024
1 parent fa1f190 commit ba10a7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions summarize_test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,12 +523,12 @@ def compute_systematic_failures_on_metric(summary, metric, embed=True):
if not has_systematic_failure_in_metric:
output += f"{metric_name(metric)} with systematic failures:\n\n"
has_systematic_failure_in_metric = True
if counter < 2:
output += f"- {bucket}: ({failures} out of {runs} tests failed)\n"
counter += 1
else:
if counter >= 2 and not embed:
output += f"- ...and more. See full story in GH Test Summary\n"
break
else:
output += f"- {bucket}: ({failures} out of {runs} tests failed)\n"
counter += 1
if has_systematic_failure_in_metric:
# add a newline after at the end of the list of failures before starting the
# next metric
Expand Down

0 comments on commit ba10a7b

Please sign in to comment.