aai-institute / lakefs-spec

An fsspec implementation for the lakeFS project
http://lakefs-spec.org/
Apache License 2.0
39 stars 4 forks source link

Data science tutorial notebook is not idempotent #185

Closed AdrianoKF closed 10 months ago

AdrianoKF commented 10 months ago

After the latest changes to the create_tag behavior, the data science tutorial notebook has lost its idempotency: when executing the notebook a second time, the creation of tags fails with an API error:

ApiException: (409)
Reason: Conflict
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Request-Id': 'eaa45c53-8c90-4a7c-a83e-6b823fd491fe', 'Date': 'Thu, 30 Nov 2023 06:40:19 GMT', 'Content-Length': '45'})
HTTP response body: {"message":"tag already exists: not unique"}

We should overhaul the notebook, since the current behavior makes working on it (or docs in general) quite tedious, since the weather repo needs to be manually cleaned before each execution of the notebook (and thus every docs re-render).