Uh oh!
There was an error while loading. Please reload this page.
Make sure fs exceptions are raised if not Missing - #1237
Conversation
martindurant
commented
Nov 22, 2022
Will pass when fsspec/filesystem_spec#1120 makes it to release |
joshmoore
commented
Jan 16, 2023
Re-launched to see the state of the tests. |
joshmoore
commented
Jan 17, 2023
@martindurant: still red. |
martindurant
commented
Jan 18, 2023
I haven't released fsspec since. Due this week. |
| arr = g.create_dataset("data", data=[1, 2, 3, 4], | ||
| dtype="i4", compression=None, chunks=[2]) |
There was a problem hiding this comment.
| arr=g.create_dataset("data", data=[1, 2, 3, 4], | |
| dtype="i4", compression=None, chunks=[2]) | |
| arr=g.create_dataset("data", data=[1, 2, 3, 4], dtype="i4", compression=None, chunks=[2]) |
black/ruff line length is 100, this will fix one red x
| assert g.store.getitems(["data/1"]) == {} # not found | ||
| with pytest.raises(Exception): | ||
| # None is bad data, as opposed to missing | ||
| g.store.getitems(["data/0", "data/1"]) |
There was a problem hiding this comment.
| assertg.store.getitems(["data/1"]) == {} # not found | |
| withpytest.raises(Exception): | |
| # None is bad data, as opposed to missing | |
| g.store.getitems(["data/0", "data/1"]) | |
| assertg.store.getitems(["data/1"], contexts={}) == {} # not found | |
| withpytest.raises(Exception): | |
| # None is bad data, as opposed to missing | |
| g.store.getitems(["data/0", "data/1"], contexts={}) |
missing required contexts kwarg is causing one (of two) test failures
itcarroll
commented
Dec 3, 2023
Red because of (at least) two test failures and one pre-commit.ci formatting check. I've added comments to address two of those. One test failure is confusing. It's |
jhamman
commented
Dec 7, 2023
This has unfortunately gone stale. Seems like it was quite close. Will it be revived or should we close this? |
itcarroll
commented
Dec 8, 2023
If you do close, I have a fork with the commits from @martindurant and fixes from my review. If I can resolve the 3rd failure, I will create a new PR (although I hope OP beats me to it)! |
jhamman
commented
Dec 8, 2023
@itcarroll - no need for us to close this first. Please go ahead and open a PR of your own with the remaining fixes. |
joshmoore
commented
Feb 14, 2024
Closing this in favor of #1604 |
(for v2 for now)
When FSStore gets exceptions, these correctly become the fill value when they are translated to KeyError. However, some exceptions do not equate to missing keys but to other permanent problems such as PermissionError. This change makes sure they are correctly raised to the caller even within getitems (getitem already was correct).
TODO: