-
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 push
: non-tty process prompted for git credentials (https)
#9339
Comments
vscode normally sets the There is a bug here if the process is hanging, scmrepo shouldn't be prompting if it is not in a tty, but also the extension should be setting
(DVC only cares about |
Also for reference, you can explicitly disable command line prompting in git (and dvc/scmrepo) by setting This only affects the CLI prompt, and does not affect use of 3rd party credential helpers that may or may not be interactive. It also does not affect the use of |
The script this points to is:
Most of these variables could be generated but Once iterative/scmrepo#234 gets fixed I think I'll start off by providing an error to the user and letting them know that if they push an experiment using the CLI that the issue will be fixed. |
This is fixed in |
Bug Report
Description
Under certain conditions, an experiment being pushed to the remote using the VS Code extension will result in a non-tty process being prompted for git credentials (e.g
Username for 'https://github.com':
). This makes it appear to the user that the process has hung.One example is as follows:
dvc exp push origin [exp-name]
has not been run against the CLI in a terminal).https
. E.ghttps://github.com:iterative/vscode-dvc-demo.git
.Reproduce
vscode-dvc-demo
usinghttps
(git clone https://github.com/iterative/vscode-dvc-demo.git
)dvc pull
dvc exp run
dvc exp push origin [new-exp]
<= using the extension, i.e non-ttyExpected
The process fails will an appropriate error message.
Environment information
Output of
dvc doctor
:Additional Information (if any):
It would be good to expose an API for DVC's Git credentials helper so that we could trigger it from the extension.
The text was updated successfully, but these errors were encountered: