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

Fix storage dependencies #421

Merged
merged 11 commits into from
Sep 16, 2024
Merged

Conversation

ilongin
Copy link
Contributor

@ilongin ilongin commented Sep 10, 2024

Making sure we have only name of the bucket in storage dependencies, instead of bucket name + path.
Issue was starting to appear when we moved listing to app level with DataChain.from_storage()

Example:

from datachain.lib.dc import DataChain

ds = DataChain.from_storage("s3://ldb-public/remote/data-lakes/", anon=True).save("dep")

This script generates storage dependency with name s3://ldb-public and before these changes it was generating s3://ldb-public/remote/data-lakes/

@ilongin ilongin linked an issue Sep 10, 2024 that may be closed by this pull request
Copy link

cloudflare-workers-and-pages bot commented Sep 11, 2024

Deploying datachain-documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: 616d02c
Status: ✅  Deploy successful!
Preview URL: https://b1c6f4bf.datachain-documentation.pages.dev
Branch Preview URL: https://ilongin-420-fix-storage-data.datachain-documentation.pages.dev

View logs

@ilongin ilongin requested a review from a team September 11, 2024 00:04
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.51%. Comparing base (7a7f2fc) to head (616d02c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #421   +/-   ##
=======================================
  Coverage   87.51%   87.51%           
=======================================
  Files          93       93           
  Lines        9981     9981           
  Branches     2060     2060           
=======================================
  Hits         8735     8735           
  Misses        885      885           
  Partials      361      361           
Flag Coverage Δ
datachain 87.46% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@dreadatour dreadatour left a comment

Choose a reason for hiding this comment

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

👍

dependency_name = listing_uri_from_name(dataset_name)
client, _ = Client.parse_url(
listing_uri_from_name(dataset_name),
None, # type: ignore[arg-type]
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we fix this instead of ignoring?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is on my plate for long time. I will see if it makes sense to do it in separate PR or this one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fix in separate PR #435

@ilongin ilongin merged commit 78ee1ba into main Sep 16, 2024
38 checks passed
@ilongin ilongin deleted the ilongin/420-fix-storage-dataset-dependencies branch September 16, 2024 12:27
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.

Fix dataset dependencies for storages
4 participants