Skip to content

Commit

Permalink
ART-11446: images-health should report only failures
Browse files Browse the repository at this point in the history
when there are more than one build
  • Loading branch information
mbiarnes committed Dec 18, 2024
1 parent 79f0040 commit 5594abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doozer/doozerlib/cli/images_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def get_concerns(self, image_meta):
f'({self.url_text(latest_attempt_build_url, "jenkins job")}); ')

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

0 comments on commit 5594abd

Please sign in to comment.