Skip to content

Commit

Permalink
ART-11446: images-health should report failures only when fail count > 1
Browse files Browse the repository at this point in the history
rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
mbiarnes committed Dec 4, 2024
1 parent cdd8b01 commit 1cf1752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doozer/doozerlib/cli/images_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ async def get_concerns(self, image_meta):
msg = (f'Latest attempt {self.url_text(latest_attempt_task_url, "failed")} '
f'({self.url_text(latest_attempt_build_url, "jenkins job")}); ')

# The latest attempt was a failure
if latest_success_idx == -1:
# The last success is greater then the last attempt
if latest_success_idx > 1:
# No success record was found
msg += f'Failing for at least the last {len(builds)} attempts / {oldest_attempt_bi_dt}'
else:
Expand Down

0 comments on commit 1cf1752

Please sign in to comment.