-
Notifications
You must be signed in to change notification settings - Fork 2
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
♻️ Move generic hashing and storage utilities from lamindb
into lamindb-setup
#661
Conversation
Could you cross-link this with the work package? |
Done! |
@@ -484,3 +485,65 @@ def create_path(path: UPath, access_token: Optional[str] = None) -> UPath: | |||
secret=credentials["secret"], | |||
token=credentials["token"], | |||
) | |||
|
|||
|
|||
def get_stat_file_cloud(stat: Dict) -> Tuple[int, str, str]: |
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.
We need tests for this, @bpenteado!
In lamindb, this was covered, now, I fear, it's uncovered by CI.
My guess is that there were no fine-grained unit tests in lamindb for this, but coverage came through more high-level functionality.
Given this is in lamindb-setup now and the interfaces are used by laminhub and lamindb, we need a more fine-grained test that reflects needs in both downstream repos (they should be the same if we design the code well).
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.
Here is an issue for this: #665
@@ -0,0 +1,35 @@ | |||
import base64 |
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.
I fear these tests don't executed - see the noxfile. I'll take care of this.
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.
Fixed here: #666
lamindb-setup
lamindb#1476