-
Notifications
You must be signed in to change notification settings - Fork 305
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
Skip copying files to the remote path if the directory is empty #1345
Conversation
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1345 +/- ##
==========================================
+ Coverage 68.94% 69.04% +0.10%
==========================================
Files 291 291
Lines 26656 26699 +43
Branches 2508 2514 +6
==========================================
+ Hits 18377 18435 +58
+ Misses 7789 7772 -17
- Partials 490 492 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
try: | ||
lpaths = lfs.expand_path(from_path, recursive=recursive) | ||
except FileNotFoundError: | ||
# In some cases, there is no file in the original directory, so we just skip copying the file to the remote path |
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.
can you add a debug log here mentioning that the file does not exist?
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.
yeah let's do that @pingsutw
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
TL;DR
test_union_type
failed if the fsspec is installed because the fsspec will fail to copy the directory to the remote path if the directory is empty.In some cases, flyte schema could be empty if people forget to use
flyteSchema.open().write
to write the data to local pathType
Are all requirements met?
Complete description
^^^
Tracking Issue
NA
Follow-up issue
NA