Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Meni Yakove <[email protected]>
  • Loading branch information
amp-rh and myakove authored Jan 18, 2024
1 parent 53bce6e commit 530749c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cli/objects/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,10 @@ def _find_failures(self, logs_dir: str, junit_dir: str) -> Optional[list[Failure
# Combine lists into one list
for failure in itertools.chain(test_failures, pod_failures):
if failure.step not in unique_steps_with_failures:
unique_steps_with_failures.update([failure.step])
unique_steps_with_failures.add(failure.step)
if self.firewatch_config.failure_rules:
for rule in self.firewatch_config.failure_rules:
if rule.matches_failure(failure) and rule.ignore:
failure.ignore = True
failure.ignore = rule.matches_failure(failure) and rule.ignore
failures_list.append(failure)

if len(failures_list) > 0:
Expand Down

0 comments on commit 530749c

Please sign in to comment.