Suppress permission warnings#468
Conversation
These warn if the permissions are too loose. They are very numerous and hard to fix because they don't identify the source component as components don't know their own name. This needs to be resolved to tighten the permissions up.
|
This will be enough to suppress the warnings messages, but if we're turning those off there are some other bits it would make sense to turn off too. See oparry-ukaea@5e66efb. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #468 +/- ##
==========================================
- Coverage 29.52% 29.24% -0.29%
==========================================
Files 94 94
Lines 8768 8755 -13
Branches 1228 1225 -3
==========================================
- Hits 2589 2560 -29
- Misses 5914 5934 +20
+ Partials 265 261 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I always run with |
I don't think |
|
It is clearly supported and used in BOUT++: Please do not abuse it for commenting out code. Maybe fix the docs then? |
Co-authored-by: Chris MacMackin <cmacmackin@gmail.com>
|
They are still printed with debug level 4. You could also print them to Anyway, this should not be merged as it decreases test coverage 😇 |
|
An alternative is to only print once at low check levels, and print every time at high check level: |
Was previously enabled for DCHECK=4, which turns out exists.
|
I don't think the warnings should be present for the default check level, because we're not achieving anything by spamming the console of users - most of whom probably haven't even heard of check levels in the first place. I also don't think the warnings should be present at other check levels because:
@dschwoerer sorry, we believed the docs and didn't realise As for the codecov thing, what's the best practice here? Do we need to add unit tests which specifically target what we changed in this PR, or can we just add more test coverage somewhere else? @ZedThree |
bendudson
left a comment
There was a problem hiding this comment.
I think this is ok for now, to make master usable. Setting CHECK to 999 allows testing of this feature before merging.
There are warnings when permissions are too loose (#467). They are very numerous and hard to fix because they don't identify the source component. We need to add the capability for components to know their name to have a realistic chance of resolving this (#429).
The warnings are so large that the logs quickly grow to multi-MB in size, making it impractical to run the code or see other checks. Because of this, I think we should disable the warnings until we have a chance of fixing them.
This PR does this by requiring a
DCHECK=4(which doesn't exist).Permissions being too open will not be a problem until the topological sort algorithm is finished (#428), at which point they will inform the component order. We can resolve this when we work on the algorithm.