You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @jheister, thanks for the PR. This does correct the specific metrics show issue you found in #5844, but as @dberenbaum noted already, this is really related to a larger problem in DVC (#5525).
There are more types of potential errors we need to be looking for here than just LockfileCorruptedError, and ideally the fix for this will go in repo.collect and possibly repo.brancher since the underlying problem is not actually specific to metrics - it's really related to how we collect pipelines/stages across git commits in general.
I'll leave this PR open for now, but I'm not sure it will get merged since we are already planning on addressing the problem with a more general fix for #5525.
@jheister
Thank your for your contribution!
As @pmrowla mentioned we are currently working on two issues originating in same problem: #5667 and #5525. While your solution is correct, it solves only one of multiple problems that can occur during collection of metrics. To get rid of the source problem we need to fix this problem for all possible Exceptions thrown (during collection) and for all commands related to collecting metrics/params/plots from the repository. So the fix here needs to cover dvc plots/params/metrics/exp show commands. As I mentioned we are working on that, and probably the fix will cover also this use case. We cannot merge this fix, until we have all the use cases covered (and once we have them this fix might be too specific to be included). Having said so I would like to keep this PR open until we propose the "general" solution, to be sure we do not omit this particular use case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5844
❗ I have followed the Contributing to DVC checklist.
📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. 🙏