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

Update xee dataflow example #164

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Update xee dataflow example #164

merged 1 commit into from
Jul 25, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jul 24, 2024

Update xee dataflow example

This updates the xee dataflow example to prevent users from accidentally deleting storage bucket when running the example.

This is a really simple fix for a bug in a recent push to gcsfs paired with some logic in the zarr library for writing datasets which allows users to accidentally remove their bucket if writing to the root of a cloud storage bucket. This is problematic because users may have other data in a cloud storage bucket they may try to write to and accidental deletion of the bucket removes everything.

Changes in this PR include:

  1. pinning the gcsfs version to <=2024.2.0 before the PR that introduced the bug
  2. point to write to subdirectory on the bucket in the example

@copybara-service copybara-service bot force-pushed the test_655683820 branch 3 times, most recently from 03170f2 to 8b3b1c1 Compare July 25, 2024 19:27
This updates the xee dataflow example to prevent users from accidentally deleting storage bucket when running the example.

This is a really simple fix for a bug in a recent [push to gcsfs](fsspec/gcsfs#608) paired with some [logic in the zarr library for writing datasets](https://github.com/zarr-developers/zarr-python/blob/df4c25f70c8a1e2b43214d7f26e80d34df502e7e/src/zarr/v2/storage.py#L567) which allows users to accidentally remove their bucket if writing to the root of a cloud storage bucket. This is problematic because users may have other data in a cloud storage bucket they may try to write to and accidental deletion of the bucket removes everything.

Changes in this PR include:
1. pinning the `gcsfs` version to `<=2024.2.0` before the PR that introduced the bug
2. point to write to subdirectory on the bucket in the example

PiperOrigin-RevId: 656046609
@copybara-service copybara-service bot merged commit 2c92e97 into main Jul 25, 2024
@copybara-service copybara-service bot deleted the test_655683820 branch July 25, 2024 19:35
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.

1 participant