-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
⚠️ Delegate logging decisions to the checks instead of a helper #4019
Conversation
This may not be the final form, we may support want to support passing a map of probe+outcome to level mappings. Signed-off-by: Spencer Schrock <[email protected]>
For now, we only use one probe so logging is simple. Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
This changes the logging of an error state, but it's not one we expect to see. Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4019 +/- ##
==========================================
- Coverage 66.70% 60.11% -6.59%
==========================================
Files 223 207 -16
Lines 16070 15268 -802
==========================================
- Hits 10719 9179 -1540
- Misses 4688 5421 +733
- Partials 663 668 +5 |
/scdiff generate Dependency-Update-Tool,Fuzzing,License,Maintained,Packaging,Security-Policy,Signed-Releases,Vulnerabilities |
scdiff caught a lot of new details being generated. So going to try removing them Signed-off-by: Spencer Schrock <[email protected]>
/scdiff generate Dependency-Update-Tool,Fuzzing,License,Maintained,Packaging,Security-Policy,Signed-Releases,Vulnerabilities |
I will have to do yet another follow up for flipping the probe outcomes around. |
What kind of change does this PR introduce?
breaking change since we're deleting functions
What is the current behavior?
checks use
checker.LogFindings
because logging used to be more standardized when we used Positive and Negative for outcomes.What is the new behavior (if this is a feature change)?**
The individual checks make decisions based on how to log a particular finding. Since it now depends on probe name and outcome.
Which issue(s) this PR fixes
Related to #3654
Special notes for your reviewer
Does this PR introduce a user-facing change?
For user-facing changes, please add a concise, human-readable release note to
the
release-note
(In particular, describe what changes users might need to make in their
application as a result of this pull request.)