-
Notifications
You must be signed in to change notification settings - Fork 23
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
Update the file locking module dependency #772
Conversation
Thanks, changes look good. But I have some suggestions about testing:
|
Signed-off-by: Prem Kumar Kalle <[email protected]>
Thank you. Added a test to do paralled locking and unlocking using goroutines.
Later compiled the code removing the
|
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.
Nice update of the tests! LGTM
For future reference, can you paste what you posted in terms of manual testing done into the testing section of the PR description?
Sure, thank you! Updated the PR description with the testing done (both manual testing done for abrupt process exit and windows testing) |
What this PR does / why we need it
This PR updates the file locking module dependency
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
Unit tests and CI checks passed
Tested manually the lock is auto-released on process exit
os.Exit(2)
here after line 94. Then build and ran the the below command, we can see the CLI exit and didn't save the metric.Later compiled the code removing the
os.Exit(2)
and ran the CLI, and this time it successfully updated the metrics which confirms the earlier exit without unlocking auto-released the lock. I will try to add the automated testing for this in separate PR.Verified it works on Windows as well.
Release note
Additional information
Special notes for your reviewer