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

cleanup callback #276

Merged
merged 3 commits into from
Feb 5, 2024
Merged

cleanup callback #276

merged 3 commits into from
Feb 5, 2024

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Feb 5, 2024

Structured callbacks are now available in fsspec>=2024.2.0, so we can remove
most of the code here. Almost all of the dvc_objects.fs.callbacks is deprecated,
and will be removed within 4.x minor release, including TqdmCallback.

TqdmCallback can be replaced with fsspec's TqdmCallback, or can be overridden
very easily. This will likely be moved to dvc-data for now.

Similarly, dvc_objects._tqdm module is deprecated and is slated for removal within
4.x minor release. The code will likely move over to dvc-data.

Structured callbacks are now available in fsspec>=2024.2.0, so we can remove
most of the code here. Almost all of the `dvc_objects.fs.callbacks` is deprecated,
and will be removed within 4.x minor release, including TqdmCallback.

TqdmCallback can be replaced with fsspec's TqdmCallback, or can be overridden
very easily. This will likely be moved to dvc-data for now.

Similarly, `dvc_objects._tqdm` module is deprecated and is slated for removal within
4.x minor release. The code will likely move over to dvc-data.
@codecov-commenter
Copy link

codecov-commenter commented Feb 5, 2024

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (edc151c) 63.83% compared to head (67ef3eb) 68.84%.

❗ Current head 67ef3eb differs from pull request most recent head c8359c1. Consider uploading reports for the commit c8359c1 to get more accurate results

Files Patch % Lines
src/dvc_objects/fs/base.py 14.28% 12 Missing ⚠️
src/dvc_objects/fs/callbacks.py 58.33% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #276      +/-   ##
==========================================
+ Coverage   63.83%   68.84%   +5.01%     
==========================================
  Files          26       27       +1     
  Lines        2107     2035      -72     
  Branches      333      338       +5     
==========================================
+ Hits         1345     1401      +56     
+ Misses        713      584     -129     
- Partials       49       50       +1     

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

@skshetry skshetry merged commit 542f604 into main Feb 5, 2024
17 checks passed
@skshetry skshetry deleted the update-callback branch February 5, 2024 12:27
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.

2 participants