-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(puller): fixes related to an empty model path (#52)
#### Motivation Removes some buggy behavior related to the handling of an empty `modelPath` being passed into the puller #### Modifications - use `filepath.Join()` instead of manual string concatenation with the file separator to handle an empty `modelPathFilename` - in the http storageProvider, remove duplication of the `localPath` into the rendered path - just to not it: I think this bug has not been caught because using the HTTP provider with a `storageURI` means that the local path is empty - this will need to be fixed before kserve/modelmesh-serving#382 can be merged - add check to ensure that the local path for files downloaded by the puller is always a path within the generated model dir (prevents the generated dir name from being the model file as was seen in #41 (comment)) - if no path is extracted from the request `ModelPath`, use `_model` by default #### Result Resolves: #41 Signed-off-by: Travis Johnson <[email protected]>
- Loading branch information
1 parent
f9dc1dc
commit 3fd2814
Showing
3 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters