-
Notifications
You must be signed in to change notification settings - Fork 94
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
automatic: add a setting to not emit boring messages #1884
automatic: add a setting to not emit boring messages #1884
Conversation
There don't appear to be any tests for this code, so, uh...how much do you trust my C++? hint: the answer should be "not very far at all". Please review carefully. :D I can imagine a more sophisticated implementation of this where you could configure it per emitter - or have a |
33cf93f
to
869fb44
Compare
Hi @AdamWill, sorry for the delayed response. If I'm looking at this correctly, this behavior differs from dnf4, where no message was shown for an empty transaction. I believe we should make this the default behavior and introduce a config option for users who prefer explicit messages indicating that "everything is fine". Will check with the team and get back to you next week. |
dnf5-plugins/automatic_plugin/config/usr/share/dnf5/dnf5-plugins/automatic.conf
Outdated
Show resolved
Hide resolved
sorry, didn't get back to it yet, will try and update this later today. |
Currently, we always emit messages every time automatic runs, even if it does nothing very interesting (the operation succeeds and there are no changed packages). This is flooding Fedora infra with boring emails that effectively just say "nothing happened". This adds a setting that controls whether we emit a message when nothing interesting happened, and makes it default to false, so we only emit if *something* interesting happened - the operation failed, or we saw package changes. Signed-off-by: Adam Williamson <[email protected]>
869fb44
to
fe0de83
Compare
OK, rebased and updated with the logic inverted but the default kept as |
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.
Thanks a lot for bringing this up!
19f085f
Currently, we always emit messages every time automatic runs, even if it does nothing very interesting (the operation succeeds and there are no changed packages). This is flooding Fedora infra with boring emails that effectively just say "nothing happened".
This adds a setting to only emit if something interesting happened - the operation failed, or we saw package changes.