[WIP] cmd: diff: don't load dir cache for diff#3468
Conversation
gurobokum
left a comment
There was a problem hiding this comment.
P.S.
It looks like pythonic way but with simple loops it reads easier
|
Sorry for a late question, but does this mean that we lose support for dirs from now on? The issue was that when one version has .dir cache file and the other one doesn't, then the output is weird, right? |
|
@efiop Yes, in a way. After this change, |
|
After discussing with @efiop, its probably the best to apply a hybrid approach: |
Totally agree with @shcheklein It will lead to unstable diffs. I'd suggest ignoring all dirs content (option 3 from #3392). This option has additional advantages:
|
|
Ok, I thought that dir cache support was desirable, but if it is not, then indeed let's just drop it. Thanks for clarifying. 🙏 @pared Sorry for this back and forth, please revert the hybrid changes. |
|
@efiop my 2cs - it's desirable, but it should be done along with support for |
In that case, I'm not sure why can't we start with diff here, since it is on the surface already. And then proceed with
Gc will attempt to pull .dir to analyze it, unlike diff/list/etc. |
I guess there is some misalignment on what do we think can be considered as a start? There were a few different suggestions that @pared brought - from very simple (never do for dirs) to the actual implementation (try and pull dir file). I personally fine to start with either. The only one I had concerns about is the hybrid one - when we silently behave in a different way depending on cache availability. |
First, because here a hybrid approach is proposed which does not give a reliable result. A good strategy might be - implement quickly the simple strategy (and make sure it does not require cache) and then prioritize the full solution with data dir check. |
|
Ok, thanks for clarifying. Sure, let's start with the simplest one first to unblock ci/cd. 👍 |
❗ Have you followed the guidelines in the Contributing to DVC list?
📖 Check this box if this PR does not require documentation updates, or if it does and you have created a separate PR in dvc.org with such updates (or at least opened an issue about it in that repo). Please link below to your PR (or issue) in the dvc.org repo.
❌ Have you checked DeepSource, CodeClimate, and other sanity checks below? We consider their findings recommendatory and don't expect everything to be addressed. Please review them carefully and fix those that actually improve code or fix bugs.
Thank you for the contribution - we'll try to review it as soon as possible. 🙏
Fixes #3392