0

We use Chocolately in our Azure Pipelines setup. Chocolatey startup seems to take an unpredictable amount of time: it could be as short as seconds or as long as minutes.

In this example it took 13 seconds, while in this one it took 2 minutes 20 seconds. It always gets stuck after the output line "Chocolatey v0.10.15", i.e. it seems that it is not package installation that takes long, but Chocolatey startup.

Questions:

  • Is this expected with Azure Pipelines?
  • Is there anything I can do about it, and make Chocolatey startup reasonably fast?
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
  • These complaints seem similar: https://developercommunity.visualstudio.com/t/chocolatey-is-really-slow-to-start-up-on-hosted-ag/1092893 – Szabolcs Mar 15 '21 at 12:25
  • How about the issue? Does the answer below resolved your question, If yes, you could accept it as an answer, so it could help other community members who get the same issues and we could archive this thread, thanks. If not, please let us know if you would like further assistance – Felix Mar 29 '21 at 08:50

1 Answers1

1

After checking your logs, we find the faster one used the agent 'WIN-EHTFAB4ECBV', but the another one used the agent 'fv-az238-568'. Since they use different self-agent, your issue may be caused by machine performance. You can try to use the demands to help you select the specified agent to run this pipeline.

Felix
  • 1,104
  • 3
  • 6
  • It's surprising through that the difference in Chocolatey startup (and only startup!) is a factor of 10, but the difference in compilation time is only a factor of 1.2. Can this really be the result of machine performance? – Szabolcs Mar 15 '21 at 20:42
  • But you are correct: there seems to be a correlation with the agent name. It is the `fv-` ones that are slow. – Szabolcs Mar 15 '21 at 23:05
  • Hi @Szabolcs, we can try to set the 'agent.name' in the extends to use other agent to run the pipeline instead of using the 'fv-' ones. And dose my answer help you to solve your issue/confuse, If yes, you could Accept it as an Answer , so it could help other community members who get the same issues and we could archive this thread, thanks – Felix Mar 17 '21 at 06:25