-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
az repos
take 100+ seconds to run
#17490
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @narula0781, @ashishonce, @romil07. Issue DetailsHi, I am running some az-cli commands that are taking forever to complete. Following are the commands that are a part of my script and get called multiple times in a loop: These commands have variable execution times when I timed my script: This is on CentOS 7 machines core 2.18.0 * Extensions: Originally posted by @PushkarVaity in #7447 (comment)
|
route to service team to take a look |
I have this same issue intermittently, probably every 2 to 3 weeks... is happening right now since noticing it early this morning. Will start adding to this ticket per occurrence. Here are a couple of timed commands for reference, run at about 12:10pm US eastern time 2021-Aug-25. $ time az pipelines list real 3m50.184s $ time az devops user list real 3m51.281s As of 4:17pm, still have the same painful performance. |
Encountering this issue again, over 9 minutes this time.... Here's a sample timing: $ time az pipelines list real 9m6.522s |
Another day, another slow access to az devops related commands: $ time az pipelines list real 3m49.625s Also noted a 5m10s run in my terminal from a couple days ago that I forgot to add here. |
Nowadays this issue seems to be the norm when I reach for the az devops tools. $ time az pipelines list real 5m18.021s |
Found at least a partial cause of my az devops command woes. After examining the debug logs for a typical 5+ minute "az pipelines list" call, saw a line that was puzzling: 84736 : 2021-09-15 16:16:04,796 : DEBUG : cli.azext_devops.dev.common.services : trying to get token (temp) for tenant e49ea3fe-87f8-44df-a7ba-2131f4fb91f1 and user [email protected] There were various token related exceptions following this. Notice my fake greg.henderson address? Well at the time I was not logged in via "az login" with that personal credential, but with a different admin credential. Also the devops PAT in use was created by the admin cred, not by the personal greg.henderson cred. Definitely some mismatch there... Tried some combinations of az logout, login, devops login, etc.... with no effect. So I cleared the ~/.azure/accessTokens.json and ~/.azure/azureProfile.json files and tried the "az pipelines list" again.... Some improvement at least, no various token exceptions and the command only took 2.5 minutes. Still really slow, but at least some improvement. My guess is that I've been hitting 2 different bugs and worked around one of them, with the remaining slowness on the server side. For reference: I've got logging turned on in case the logs might be helpful for some nice dev person.... |
I am facing the same issue. It was working some weeks ago really fast (less than 5 seconds) and not it is taken >2 mins. I have also tried doing az logout + az login, cleaned up the As @greghenderson, I am also switching from time to time between an "admin" account and my "personal" account. |
Just for follow-up, I continue to encounter the issue in my MacOS environment. So I don't use that for az devops interaction any more... use WSL Ubuntu in Windows 11 for that. No issues there. |
Hi,
I am running some az-cli commands that are taking forever to complete.
My python script logs the user in ADO by: cat ~/.ssh/ado.pat | az devops login;
Following are the commands that are a part of my script and get called multiple times in a loop:
az repos list --org https://dev.azure.com/my-org/ --project my_project --query ‘[*].name’;
az repos show --org https://dev.azure.com/my-org/ --project my_project --repository my_repo–query ‘sshUrl’;
az repos ref list --org https://dev.azure.com/my-org/ --project my_project --repository my_repo–query ‘[*].{Name: name, ObjectId: objectId}’ --filter heads/
These commands have variable execution times when I timed my script:
Mostly, these take 1 - 1.5 seconds each as expected.
But randomly, all 3 commands also take 100+ seconds each causing the total run time to go through the roof.
Is this a known problem and can someone help debug this? I am not able to figure out what is causing this issue.
This is on CentOS 7 machines
% az --version
azure-cli 2.18.0 *
core 2.18.0 *
telemetry 1.0.6
Extensions:
azure-devops 0.18.0
Originally posted by @PushkarVaity in #7447 (comment)
The text was updated successfully, but these errors were encountered: