-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dvc exp list
(and other commands): always show full unique experiment hash
#9485
Comments
Name duplications (the pair of |
TBH, I was not aware that orphan experiments were displayed in Apart from this issue (which I think makes sense to show the sha), we are deprecating |
I think exp names should be unique (see #9361). It solves a lot of these problems and I don't see much downside. Is it important to be able to give two experiments with different baselines the same name?
It could also be part of |
From a quick look at the code, it appears to be simple for the local repo, but not sure how easy it is to do for remote repos. |
It's not straightforward to determine what experiments are "orphaned". By definition, exp commits are never orphaned since there is at least one git ref pointing to the commit (i.e. our exp ref). We could walk backwards from every git tag and branch head to get a list of commits and then clean exps that derive from other commits, but there could be other non-branch/tag refs pointing to those commits as well. In particular, with remote git repos there could be things like github pull request or deleted branch refs pointing to those commits, in which case it is not clear whether or not we should be deleting exps that derive from those commits. |
@pmrowla could we do the equivalent to exp gc with all options enabled? That would be quite conservative, right? |
Yes we can do that, but DVC's |
If we think this gives enough reason to keep |
I hit this issue with duplicated experiments (don't know yet why, any ideas? did we change the logic behind the naming recently @daavoo @dberenbaum ?):
dvc exp show -A
doesn't show all commits in this case (can be orphaned commits and experiments in this case - I'm doing a lot of rebases, etc).There is not easy way to disambiguate those from the listing (I don't know how to remove a specific one under a specific commit).
We should always everywhere show a Git hash for an experiment. Name should serve as tag, or as a human readable name, etc. Collisions should be fine.
The text was updated successfully, but these errors were encountered: