-
Notifications
You must be signed in to change notification settings - Fork 338
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
Add utility functions to rename a file or folder src to dst with retrying. #1666
Add utility functions to rename a file or folder src to dst with retrying. #1666
Conversation
2ce256f
to
4669f95
Compare
Thanks @loonghao for submitting this PR. My main concern right now is speed. Starting a subprocess on Windows usually adds a noticeable overhead. Could the code first try to Also, it would be great if you could add tests to cover all cases covered by the change. |
4669f95
to
2972852
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1666 +/- ##
==========================================
+ Coverage 57.99% 58.03% +0.03%
==========================================
Files 128 128
Lines 17088 17102 +14
Branches 3502 3504 +2
==========================================
+ Hits 9911 9925 +14
Misses 6509 6509
Partials 668 668 ☔ View full report in Codecov by Sentry. |
2972852
to
ffd6f30
Compare
@JeanChristopheMorinPerso I have updated the code and added a unit test for this function. Please take another look. Thanks. |
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! There is a bug in the code and I think we can add more tests.
f2977d8
to
aae54ed
Compare
@JeanChristopheMorinPerso I have updated the code and added more unit tests. Please take another look. Thanks. |
Thanks @loonghao ! This should hopefully be my last batch of comments. |
aae54ed
to
f81d94d
Compare
…ying. Signed-off-by: loonghao <hal.long@outlook.com>
f81d94d
to
dafcd6c
Compare
@JeanChristopheMorinPerso I have made all the changes based on your feedback and addressed all the comments. Could you please take another look. Thanks! |
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.
Looks good to me. Thanks for taking the time to fix this and address all my comments! If everything goes as planned, this will be released in the next release.
d4a2daf
into
AcademySoftwareFoundation:main
…Foundation#1666) This will fix issues when rez-cp could fail in some situations on WIndows. Signed-off-by: loonghao <hal.long@outlook.com>
This PR is try to fix #1665