Skip to content

Commit

Permalink
Add info about failed MG to email report
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Balogh <[email protected]>
  • Loading branch information
petr-balogh committed Jan 20, 2025
1 parent e31082d commit bfe7cf7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ocs_ci/utility/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1722,6 +1722,16 @@ def parse_html_for_email(soup):
skipped[0].string.replace_with(
f"{skipped_number} skipped ({skips_ceph_health_ratio * 100}% on Ceph health)"
)
from ocs.utils import mg_fail_count

if mg_fail_count:
failed_mg_text = soup.new_tag("b")
failed_mg_text.string = (
f"In this execution Must Gather collection has failed: {mg_fail_count} times!"
" Please check why this has happened!"
)
main_header = soup.find("h1")
main_header.insert_after(failed_mg_text)

main_header = soup.find("h1")
main_header.string.replace_with("OCS-CI RESULTS")
Expand Down

0 comments on commit bfe7cf7

Please sign in to comment.