-
Notifications
You must be signed in to change notification settings - Fork 56
Moves away from strict Violation enum to open Violation based on Advice #1038
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
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1038 +/- ##
=====================================
Coverage 78.6% 78.6%
=====================================
Files 82 82
Lines 6701 6772 +71
=====================================
+ Hits 5268 5329 +61
- Misses 1433 1443 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I guess it doesn't matter too much as it's internal, but I'm curious what was behind the decision to rename Advice to Violation, rather than Violation to Advice? Since now we can have Violations that are not Violations whereas, before one type of Advice was a Violation. |
@jerbly I actually don't like the name I asked gemini and it suggested |
lmolkova
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Could you please update docs:
- https://github.com/jsuereth/weaver/blob/1bfbf330e04d258d31b13ab9017374ac092d1937/crates/weaver_live_check/README.md#advice and the changelog
- https://github.com/jsuereth/weaver/blob/1bfbf330e04d258d31b13ab9017374ac092d1937/crates/weaver_checker/README.md#policy-examples
?
(it can be a follow up)
and add a changelog record
@jsuereth personally I prefer PolicyFinding because it's more informative. |
lquerel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's really great to have this unification of results between weaver registry check and weaver registry live-check. As I mentioned in another comment, I have a clear preference for PolicyFinding instead of Violation or Report.
|
I'll updated to |
|
@jerbly Given this is a breaking change, I'd love approval from all maintainers on this one. PTAL again - I started updating docs for live-check and realized this impacts it a bit more heavily and we may want to rename portions of the report output. Let me know how you feel about that and whether or not it's ok / the time to do this. |
…l otel policies when we move to v2 schema.
jerbly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PolicyFinding makes sense.
|
Thanks all! Going to merge this for the next release. |
Changes
AdviceandSemconvAttributeas types, only usePolicyFindingnow.weaver_checkercrate, so everything is top-level now.AdviceandSemconvAttributeinPolicyFindingweaver_live_checkto use Violation instead ofAdvice.This should give us all the same goodness as live check going forward, in terms of flexible policies.