-
Notifications
You must be signed in to change notification settings - Fork 816
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
Fixed broken path joins and unclosed files #1709
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.
Very cool thank you for improving the Torchserve user experience on Windows. I still see a few stragglers left. Might as well fix those as well and we should be able to easily merge this
Hi @DPeled are you still interested in finishing this PR? Just a few minor comments left and we can merge |
@msaroufim I'll work on it soon, I didn't have much time at the last weeks |
@msaroufim @lxning I've read your review and I replied 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.
LGTM
@msaroufim Should we suggest usage of pathlib instead of os.path for future developments?
Probably a good boot camp task template we can setup @mreso |
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
@msaroufim Hi is there something to do with the tasks that failed? |
I kicked off CI again let's see what happens |
Codecov Report
@@ Coverage Diff @@
## master #1709 +/- ##
=======================================
Coverage 45.28% 45.28%
=======================================
Files 64 64
Lines 2597 2597
Branches 60 60
=======================================
Hits 1176 1176
Misses 1421 1421
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@DPeled can you please fix the lint error with |
Description
After a bug occurred to me while running over Windows, I found out that there are a lot places in the code where there is a path join using string concatenation and not with
os.path.join
which creates some broken paths and results some errors while serving models. In my ways of changing it, I've noticed that there are some bugs of unclosed file descriptors that were just left open, so I clodes them too.Fixes #1708, fixes #1686
Type of change
Please delete options that are not relevant.
Feature/Issue validation/testing
Checklist: