-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
LocalModelStorage bypasses windows path name length restriction upon saving archive #11792
Conversation
7c3dcc0
to
c433ade
Compare
@mvielkind would you care to share how you tested the long file path fix using |
c433ade
to
e301e1d
Compare
actually I hit another limit, described here. Each path component on windows cannot have a length > 255... |
51489a0
to
b9f7458
Compare
8f24652
to
b66e7f4
Compare
9ec1912
to
f188130
Compare
f188130
to
1029e39
Compare
@@ -26,6 +27,32 @@ | |||
MODEL_ARCHIVE_METADATA_FILE = "metadata.json" | |||
|
|||
|
|||
@contextmanager | |||
def windows_safe_temporary_directory( |
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.
from a code organisation standpoint, not sure if this should be in another utils file or stay here 🤔
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.
since it is only used in here, i don't see the need to move it somewhere else
Status of the run: Failed Commit: 7b53a0e, The full report is available as an artifact. |
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 - thanks a lot for digging into this one 🔥
@@ -26,6 +27,32 @@ | |||
MODEL_ARCHIVE_METADATA_FILE = "metadata.json" | |||
|
|||
|
|||
@contextmanager | |||
def windows_safe_temporary_directory( |
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.
since it is only used in here, i don't see the need to move it somewhere else
before you merge, please add a changelog entry. |
this should be released together with #11819 as that should hopefully be ready tomorrow as well |
🚀 A preview of the docs have been deployed at the following URL: https://11792--rasahq-docs-rasa-v2.netlify.app/docs/rasa |
Proposed changes:
Status (please check what you already did):
black
(please check Readme for instructions)