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

♻️ Move generic hashing and storage utilities from lamindb into lamindb-setup #661

Merged
merged 5 commits into from
Mar 6, 2024

Conversation

Copy link

github-actions bot commented Mar 5, 2024

@github-actions github-actions bot temporarily deployed to pull request March 5, 2024 18:20 Inactive
@falexwolf
Copy link
Member

Could you cross-link this with the work package?

@bpenteado
Copy link
Contributor Author

Could you cross-link this with the work package?

Done!

@bpenteado bpenteado merged commit 27d761c into main Mar 6, 2024
7 of 8 checks passed
@bpenteado bpenteado deleted the move-utilities-from-lamindb branch March 6, 2024 12:26
@@ -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]:
Copy link
Member

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).

Copy link
Member

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
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

Fixed here: #666

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.

None yet

2 participants