-
Notifications
You must be signed in to change notification settings - Fork 108
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
cleanup-log-directory #1354
cleanup-log-directory #1354
Conversation
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 for taking this on! Just a few comments below, looks good.
ad85986
to
84495ae
Compare
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.
No need for loops: if there are no errors, the script should delete the directory for this particular run only (the one with the current timestamp). It should not touch any other directories or the change_state.log file.
84495ae
to
20fd49b
Compare
@ndokos Please Take a Look |
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 for working on this, Riya!
Can you dig a bit deeper on this one? Please see the code-review comment in-line.
20fd49b
to
a5eb51d
Compare
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.
Coming along, Riya!
5682e92
to
2891323
Compare
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.
Unit tests need to be fixed as well.
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.
And can you consider applying the previous comments I had made?
332fb73
to
1051ca3
Compare
1051ca3
to
15bf40f
Compare
15bf40f
to
53f7b45
Compare
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.
So close, just one more piece to make sure we don't leave a log file around unnecessarily.
53f7b45
to
ea14702
Compare
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.
Yeah!
@gurbirkalsi: The e2e tests failed. I restarted the build just in case it was a fluke. |
Fixes #975
This PR works on cleaning the logs directory if there are no errors.