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

index: load: ignore misc exceptions #409

Merged
merged 1 commit into from
Jul 27, 2023
Merged

Conversation

efiop
Copy link
Member

@efiop efiop commented Jul 27, 2023

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jul 27, 2023

Codecov Report

Patch coverage: 50.00% and project coverage change: -0.04% ⚠️

Comparison is base (e3d1b78) 61.45% compared to head (06a2980) 61.41%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #409      +/-   ##
==========================================
- Coverage   61.45%   61.41%   -0.04%     
==========================================
  Files          57       57              
  Lines        3803     3807       +4     
  Branches      671      672       +1     
==========================================
+ Hits         2337     2338       +1     
- Misses       1330     1332       +2     
- Partials      136      137       +1     
Files Changed Coverage Δ
src/dvc_data/index/index.py 65.82% <50.00%> (-0.38%) ⬇️

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

@efiop efiop merged commit 4186611 into iterative:main Jul 27, 2023
14 checks passed
@@ -540,6 +544,9 @@ def _load_from_storage(trie, entry, storage_info):
return
except (FileNotFoundError, ObjectFormatError):
pass
except Exception: # pylint: disable=W0703
# NOTE: this might be some random fs exception, e.g. auth error
logger.exception("failed to load %s", entry.key)
Copy link
Member

Choose a reason for hiding this comment

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

will users see this? can it happen in a CLI case ...

overall looks a bit fragile

Copy link
Member Author

Choose a reason for hiding this comment

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

For now just ignoring, later will likely add an onerror mechanism.

efiop added a commit that referenced this pull request Aug 2, 2023
efiop added a commit that referenced this pull request Aug 2, 2023
Revert "index: load: ignore misc exceptions (#409)"

This reverts commit 4186611.
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.

None yet

3 participants