Skip to content

Commit 95fdfb0

Browse files
committed
Adding excessive_warnings explanation
1 parent 22856b8 commit 95fdfb0

File tree

1 file changed

+2
-0
lines changed
  • _delphi_utils_python/delphi_utils/validator

1 file changed

+2
-0
lines changed

_delphi_utils_python/delphi_utils/validator/report.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def log(self, logger=None):
103103
checks_suppressed = self.num_suppressed,
104104
warnings = len(self.raised_warnings),
105105
phase="validation")
106+
# Threshold for slack alerts if warnings are excessive,
107+
# Currently extremely strict, set by observation of 1 month's logs
106108
excessive_warnings = self.total_checks > 0 and \
107109
(len(self.raised_warnings) > 200 or \
108110
len(self.raised_warnings) / self.total_checks > 0.015)

0 commit comments

Comments
 (0)