-
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
exp show
: branch name containing path separator not returned for HEAD
#7933
Comments
exp show
: nested branch name not returned for HEADexp show
: branch name containing path separator not returned for HEAD
For experiments this is expected and intentional, exp names are not allowed to contain slashes (even though they are valid in git refs) see: #6848 (comment) e: reopened since for branches/tags we should still display them with the slash |
@mattseddon can we do a workaround for now ... pass hash id instead into |
I have been looking at how to make that hack. I would need to create a mapping between the name and the sha but the fix is not as simple as you would initially think. The returned plots data will have the hash id all through it as the rev field. We will have to replace all instances of that hash id in the data in order to show the semi-correct name in the UI/show the correct plots data. |
Yes, and it might be fine for now as a workaround for names that we know are problematic, wdyt? Image plots will be fine, trends also (?), only plots like confusion matrixes will have these hash ids? |
What's the level of effort to support it?
The comment suggests hesitance to support slashes because the exp refs conventions aren't stable enough. Do you still have those concerns @pmrowla? |
This is just a UI issue, it is separate from the "should exp names be allowed to contain slashes" question. The problem here is that if you have a git branch named Exp names should still be prohibited from having slashes. But git branches and tags are allowed to have slashes, and we need to display them properly in DVC commands |
If it's a small effort, could we please address this? |
I will open P.R. later |
Bug Report
Description
exp show
will not return the full name of a branch for the HEAD revision if it contains a path separator.This causes two issues in the extension:
plots diff
with the incomplete branch name and it fails (we use the name to fetch the HEAD revision).e.g when the branch name is
readme/known-limitations
the output is as follows:Reproduce
readme/known-limitations
)exp show
known-limitations
).Expected
exp show
returns the full branch name including file separators.Environment information
Output of
dvc doctor
:Additional Information (if any):
Please LMK if this behaviour is by design. Thank you.
Original issue: iterative/vscode-dvc#1946
I have tested to see if calling
dvc plots diff nested/branch
works and it fails if there are any static plots involved. I will raise a separate issue for this.The text was updated successfully, but these errors were encountered: