Skip to content
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

s3/gs: do not try to make directory on top level path #3524

Merged
merged 4 commits into from
Mar 27, 2020

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Mar 24, 2020

  • ❗ I have followed the Contributing to DVC checklist.

  • πŸ“– If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. If the CLI API is changed, I have updated tab completion scripts.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

This resolves #3523. But, we should try not to make directory path objects if we really don't need to.

@skshetry skshetry added the bug Did we break something? label Mar 24, 2020
@skshetry skshetry requested review from efiop and pared March 24, 2020 13:00
@skshetry skshetry self-assigned this Mar 24, 2020
@skshetry skshetry requested review from efiop and pared March 25, 2020 10:21
Copy link
Contributor

@pared pared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 minor comments.
Also, the build was failing, seemingly for an unrelated reason, I allowed myself to restart it.

tests/unit/remote/test_remote.py Outdated Show resolved Hide resolved
Comment on lines 35 to 36
remote = remote_cls(None, {"url": url})
exc = Exception("should not try to create dir on top-level path")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about newline here? Would separate client exception setup from "others".

Copy link
Member Author

@skshetry skshetry Mar 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added (maybe too much). :)

Copy link
Contributor

@efiop efiop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@efiop efiop merged commit a7aecf7 into iterative:master Mar 27, 2020
@skshetry skshetry deleted the makedirs-s3 branch April 7, 2020 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Did we break something?
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure when using S3 remote cache
3 participants