Open thy09 opened 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @narula0781, @ashishonce, @romil07.
Author: | thy09 |
---|---|
Assignees: | - |
Labels: | `DevOps`, `Service Attention`, `needs-triage` |
Milestone: | - |
route to service team
Before I do more investigation on the ADO pip feed, the doc confuses me
Manually set up credentials for pip.ini/pip.conf for pushes, and .pypirc for pulls with a personal access token (PAT).
Isn't pip.ini/pip.conf
used for pip
to pull packages and .pypirc
used for twine
or flit
to upload (push) packages?
@thy09, is the PAT retrieved from pip.ini/pip.conf
? Could you share the pip.ini/pip.conf
content with PAT redacted?
Hi @jiasli The doc you mentioned is about manually connect to the feed. In devops, we only need to do the following:
Get a PAT token from here in devops:
Then pip connection is created here:
Then create the connection:
I prefer to make this issue as a feature request and put it in our backlog, as az extension add
with a PAT for pip
is a very rare use case and not officially supported.
If you can help identify the root cause and submit a PR, we will mostly appreciate it.
Describe the bug Scenario: We are building extensions for azure cli. We install the extension in our CI pipeline for testing. To install some internal packages, we use a pip connection with a PAT token to enable extra index urls.
Problem: When the PAT token of the pip connection is revoked (it could be auto revoked at some time.) The "az extension add" command will hang when running the pip install command. See the log:
While if I directly use "pip install" to install the same thing, only a warning "Credentials not correct for https://xxx" is printed, the installation still works.
To Reproduce
Expected behavior No hanging, either failing fast or ignoring the unauthorized index are acceptable.
Environment summary AzureCLI@2 task in azure pipelines