-
Notifications
You must be signed in to change notification settings - Fork 100
[375] Adding margin of error for field coverage thresholds #464
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
base: master
Are you sure you want to change the base?
[375] Adding margin of error for field coverage thresholds #464
Conversation
Signed-off-by: Nilton Junior <[email protected]>
Signed-off-by: Nilton Junior <[email protected]>
Signed-off-by: Nilton Junior <[email protected]>
…ttings documentation Signed-off-by: Nilton Junior <[email protected]>
|
@Gallaecio @wRAR could you please review? This PR was done by the Delivery monitoring chapter. Thanks! |
|
Closing and reopening to re-trigger CI. @VMRuiz Maybe you are a better choice to review this change? |
|
The code looks fine to me. The feature, not so sure. I think we need to justify the reason for this feature to exist, and cover that in the docs. Why would you not just adjust the coverage expectations instead of define a tolerance? I imagine there are scenarios where this is preferred, but I think we need to give examples, and maybe even discourage the use of this setting when updating the coverage expectations makes more sense. Especially since this feature is global, while coverage can be specified per field. And when you have different per-field coverage values, 5% here makes it so that a 95% becomes a 90% but also a 10% becomes a 5% or a 5% becomes a 0%, which does not sound like a good idea to me (but no strong opinion). |
|
Thanks for the insights, @Gallaecio! @NiltonGMJunior, I agree with Adrian—it'd be great to have examples of scenarios for the default (non-tolerance threshold) case and a special case (highlighting caution when adding tolerance, generally discouraging its use unless it's for large-volume projects where we only want to catch significant deviations, like <5%). |
|
This topic was already discussed in the past — see #400. I agree with Adrian: it doesn’t make sense to configure coverage thresholds field by field if they can all be overridden or even disabled by a higher-level setting. If you want some margin in your project, it’s better to incorporate that directly into the threshold values. As mentioned in the linked PR, I understand the desire to avoid triggering alarms for very small decimal differences — for example, considering 49.999% close enough to 50% but not allowing 49% or even 49.9%. In that case, having to specify something like 0.998% for every field would indeed be annoying. However, rounding values isn’t the right solution here. A better approach would be to introduce a small tolerance at the decimal scale (not as large as 100%, as proposed here) and use a is_close type of check. |
No description provided.