WaelHamze / xrm-ci-framework

xRM CI Framework provides you with the tools automate the build and deployment of your CRM Solution. Using the framework to implement a fully automated DevOps pipeline will allow you to deploy more frequently with added consistency and quality.
MIT License
186 stars 117 forks source link

Export Solution Task takes longes time than expected #280

Open bipinshan opened 4 years ago

bipinshan commented 4 years ago

HI,

I have only added 3 entities with minimal components in the solution. When I run the pipeling it is taking more tha 30 minutes to export the solution and it is still running.

Please help! Capture_ExportSolution

01xOfFoo commented 4 years ago

Same issue as mine i think #278. I'm currently trying to execute the same logic on my custom build server.

WaelHamze commented 4 years ago

@bipinshan @mkellenbenz how long does it take to export from the UI? And how long is it taking from build server?

Are you using hosted or private agents?

bipinshan commented 4 years ago

Hi Wael,

It took around 3 minutes from UI to export the same solution.

I am using default hosted agent only which is populated automatically when we create new pipeline in Azure devops.

01xOfFoo commented 4 years ago

Increasing the timeout somehow solved the issue on one of my test projects.

I've run it multiple times now consistently working. Maybe MSFT did something...

mattp65 commented 4 years ago

There is a lengthy thread https://github.com/WaelHamze/dyn365-ce-vsts-tasks/issues/183 in the task repo on this. Lately it seems the 1st Export of the day often hangs regardless of the timeout. After cancelling, the second one runs fine. There is an laternative PowerShell script posted on that thread that attempts to work around this and seems to band-aid the problem.