Skip to content

dvc exp list (and other commands): always show full unique experiment hash #9485

@shcheklein

Description

@shcheklein

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 ?):

@shcheklein ➜ /workspaces/ultralytics (dvclive) $ dvc exp list -A
21122ee:                                                              
        armed-fuzz
        testy-leno
d0f99f9:
        level-tugs
        mothy-jeer
        weepy-haet
        armed-fuzz
        testy-leno
        nosed-mold
dvclive:
        testy-leno
        withy-keek
5a2d27b:
        nosed-mold
        armed-fuzz
        testy-leno
        withy-keek
fd8435a:
        testy-leno
@shcheklein ➜ /workspaces/ultralytics (dvclive) $ dvc exp remove armed-fuzz
ERROR: Ambiguous name 'armed-fuzz' refers to multiple experiments. Use one of the following full refnames instead:

        refs/exps/5a/2d27b1aeb5575916e3480b1b77900b155002a1/armed-fuzz
        refs/exps/d0/f99f94555e5488a2f64cd7680b2419d921eae6/armed-fuzz
        refs/exps/21/122eefcbe711de67eea087c4f93e0566ce3dbd/armed-fuzz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: experimentsRelated to dvc expbugDid we break something?

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions