FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

S3 second-pass rewrite by ixcat · Pull Request #408 · datajoint/datajoint-python · GitHub

Repository navigation

S3 second-pass rewrite - #408

Merged
dimitri-yatsenko merged 24 commits into
datajoint:masterfrom
ixcat:s3-nu
Dec 14, 2017
Merged

dimitri-yatsenko merged 24 commits into
datajoint:masterfrom
ixcat:s3-nu

Conversation

ixcat commented Dec 9, 2017 •
edited by dimitri-yatsenko
Loading

Copy link
Copy Markdown

simplified based update of S3 / #404 based on feedback from dimitri.

includes the 'central' cache work cherry-picked from his branch.

fix #204

coveralls commented Dec 9, 2017 •
edited
Loading

Copy link
Copy Markdown

Coverage increased (+0.1%) to 91.017% when pulling d7f1a7e on ixcat:s3-nu into 55bfc61 on datajoint:master.

dimitri-yatsenko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Will you please merge master?

coveralls commented Dec 13, 2017 •
edited
Loading

Copy link
Copy Markdown

Coverage decreased (-0.07%) to 90.766% when pulling 72bd9b8 on ixcat:s3-nu into c815421 on datajoint:master.

Comment thread datajoint/external.py Outdated

def safe_write(filename, blob):
"""
A two-step write.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Please remove this safe_write. It's implemented below.

Comment thread datajoint/external.py Outdated
except FileNotFoundError:
raise DataJointError('Lost external blob')
elif protocol == 's3':
blob = s3.get(self.database, store, blob, hash)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Bug: hash should be blob_hash

coveralls commented Dec 13, 2017 •
edited
Loading

Copy link
Copy Markdown

Coverage increased (+0.08%) to 90.917% when pulling da87545 on ixcat:s3-nu into c815421 on datajoint:master.

coveralls commented Dec 13, 2017 •
edited
Loading

Copy link
Copy Markdown

Coverage increased (+0.08%) to 90.917% when pulling da87545 on ixcat:s3-nu into c815421 on datajoint:master.

Comment thread datajoint/external.py Outdated
except FileNotFoundError:
raise DataJointError('Lost external blob')
elif protocol == 's3':
blob = s3.get(self.database, store, blob, blob_hash)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

bug. s3.get does not take a blob as an input.

ixcat changed the title S3 second-pass rewrite [WIP] S3 second-pass rewrite Dec 13, 2017

coveralls commented Dec 13, 2017 •
edited
Loading

Copy link
Copy Markdown

Coverage increased (+0.08%) to 90.917% when pulling d5d1dd6 on ixcat:s3-nu into c815421 on datajoint:master.

1 similar comment

Copy link
Copy Markdown

Coverage increased (+0.08%) to 90.917% when pulling d5d1dd6 on ixcat:s3-nu into c815421 on datajoint:master.

coveralls commented Dec 13, 2017 •
edited
Loading

Copy link
Copy Markdown

Coverage increased (+0.08%) to 90.917% when pulling d1ae669 on ixcat:s3-nu into c815421 on datajoint:master.

Comment thread datajoint/s3.py
def make_rpath_name(location, database, blob_hash):
rpath = '{l}/{d}/{h}'.format(l=location, d=database, h=blob_hash)
# s3 is '' rooted; prevent useless '/' top-level 'directory'
return rpath[1:] if rpath[0] == '/' else rpath

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
return rpath.lstrip('/')

eywalker changed the title [WIP] S3 second-pass rewrite S3 second-pass rewrite Dec 14, 2017
dimitri-yatsenko merged commit 70eb28e into datajoint:master Dec 14, 2017
ixcat deleted the s3-nu branch October 31, 2018 13:32
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support AWS S3 storage of blobs

3 participants


Back | FazBrowse Home | New Git URL