-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add committing to stateful test actions #466
Conversation
@@ -193,7 +193,7 @@ async def test_icechunk_can_read_old_repo(): | |||
] | |||
assert sorted( | |||
[p async for p in store.list_dir("group2/group3/group4/group5/inner")] | |||
) == ["c", "zarr.json"] | |||
) == ["zarr.json"] |
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.
this test never wrote a chunk, so c
should not have been created.
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.
There is some weird behavior in here i think ... sometimes i need it sometimes i don't?
46f2427
to
40b559e
Compare
The "Unbounded" upper bound of the range query could return chunk coordinates for nodes that were not requested if there were arrays with NodeId > requested NodeId. This affected `list_prefix`, unclear if it affects anything else.
3c27994
to
e121a83
Compare
None | ||
} | ||
self.last_key = Some(k.clone()); | ||
Some((coord.clone(), payload.clone())) |
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.
With the take_while
approach, we would return ChunkInfo
here and unpack it up in verified_node_chunk_iterator
. Worth it?
3e93f55
to
a10e57f
Compare
This reverts commit 2c11287.
8470c6a
to
cda8c36
Compare
3e66789
to
bd937b1
Compare
This reverts commit bd937b1.
@@ -75,45 +75,39 @@ impl ChangeSet { | |||
self.new_arrays.get(path) | |||
} | |||
|
|||
/// IMPORTANT: This method does not delete children. The caller |
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 think this is the cleanest solution. Session.delete_group
already builds a list of nodes to delete. We could filter those to not be children of any groups added in this session (and may some other similarly complex predicate), or we can just not delete children ...
* main: Bring 'test_can_read_old' test back to life (#511) Join `RepositoryConfig` and `StoreConfig` (#507) Bump jinja2 in /docs in the pip group across 1 directory (#509) Python can now set checksums for virtual chunk refs (#508) Virtual chunk location inspection (#504) Canonicalize local fs object store (#501) Python library learns how to use virtual chunk containers (#502) [python] Add conflicted chunk report out on `RebaseFailedError` (#495) Refactor how we initialize and configure storage and repos (#497) Refine Ref APIs on Repository (#499)
* main: (22 commits) Re-implement `list_dir` (#528) Fix rust library release action (#531) 0.1.0-alpha.8 release preparation (#530) Add docstrings (#529) Update dask_write.py to the new API (#527) Add support for Google Cloud Storage (#503) Fix s3 prefix issue (#525) Fix reset_branch op in stateful test (#521) Implement credentials refresh (#517) Add stateful testing for version control ops (#453) Create specific credential types for each object store (#512) Add committing to stateful test actions (#466) Bring 'test_can_read_old' test back to life (#511) Join `RepositoryConfig` and `StoreConfig` (#507) Bump jinja2 in /docs in the pip group across 1 directory (#509) Python can now set checksums for virtual chunk refs (#508) Virtual chunk location inspection (#504) Canonicalize local fs object store (#501) Python library learns how to use virtual chunk containers (#502) [python] Add conflicted chunk report out on `RebaseFailedError` (#495) ...
xref #445
Fixes another bug found by hypothesis, if the same path is in the snapshot, then deleted, then recreated we list both old and new chunk paths