-
Notifications
You must be signed in to change notification settings - Fork 24
gc: log paths during dry-run #650
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
gc: log paths during dry-run #650
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #650 +/- ##
==========================================
+ Coverage 72.42% 73.56% +1.13%
==========================================
Files 67 65 -2
Lines 5132 5315 +183
Branches 605 619 +14
==========================================
+ Hits 3717 3910 +193
+ Misses 1227 1212 -15
- Partials 188 193 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hi maintainers, I've refactored the gc function by abstracting its core logic into a new iter_garbage generator. As you can see, the patch coverage is 0%. I've confirmed this is because the tests for this logic reside in the main dvc repository as integration tests. The dvc-data CI runs standalone and doesn't execute them, so it correctly reports the new function as untested within this library's context. To make dvc-data more robust and independently verifiable, I propose adding unit tests for the gc.py module directly in this PR. This will resolve the coverage issue and improve the library's overall quality. Let me know if you agree with this approach, and I'll proceed with writing the tests. |
|
@GreenHatHG, do you mind creating a new PR with cherry-picked changes from cf348ab? Isn't that enough? |
cf348ab to
5a42dd9
Compare
Hi. |
|
Released dvc-data 3.18.0. |
Related
gc --drydoes not show what files are going to be removed dvc#10585Summary
Add logging to
gc()function to display paths of objects that would be removed during a dry run. This provides users with visibility into what will be deleted before executing the actual cleanup.