-
Notifications
You must be signed in to change notification settings - Fork 960
determine whether to reset logs via new AUGUR_RESET_LOGS environment variable #3221
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
…t variable this defaults to True to avoid infinite log growth unless explicitly opted in Signed-off-by: Adrian Edwards <adredwar@redhat.com>
sgoggins
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.
I think the pylint is failing because of variable scoping.
None of that is related to the code in this PR. Could they be leftover warnings that werent fixed before #3218 got merged? |
|
I don't think this failure has anything to do with the changes, it's just RD being RD. This is the failing line: Basically, the task failed because too many warnings were emitted, not because an actual error occurred. |
But what I am seeing is a linting error, not a RTD error. @Ulincsys |
|
@sgoggins my apologies for the confusion. When I used "RD", I meant reviewdog, not readthedocs. The linter failed because of too many warnings, but not because any actual error occurred afaict |
sgoggins
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.
@MoralCode / @Ulincsys : I am struggling to figure out if this PR is identifying an issue we need to do something about regarding all the linter feedback ... or if something else is going on. It seems like the former: This PR reveals a few new issues we need to deal with ... but Obviously I do not know.
|
Just installed the vscode pylint extension and it seems like these lint errors exist as far back as the current Not sure why RD chose this moment to make a fuss about them but i think it can be dealt with in a separate PR |
This defaults to True to avoid infinite log growth unless explicitly opted in
Description
To give sysadmins more control over their instances, specifically with logging policy, this PR adds a new
AUGUR_RESET_LOGSenvironment variable. If the variable is not set, it defaults to True (the current behavior).Setting this variable to a value other than True (or one of a few common variations) signifies that the sysadmin is taking responsibility for managing logs, and augur should not reset or clear logs on startup.
If desired, I could also add a log message that says (in big scary letters) that log resetting is disabled and that the sysdmin is responsible for log management. Let me know if this would be preferable.
Signed commits