-
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
DevEnv takes a long time to initialize #5301
Comments
Hello @MH-ZShearer , |
Hello there, I have the same problem. Any progress? |
Currently, no updates. |
I'm also having the same problem. Initialization takes 10min on |
In the same boat |
Same on my side... |
Same here. I'm building an installer with devenv and it can easily take 10+ minutes. |
Same for me. Just created a setup project for VS2022 and it takes at least about 5-6 minutes for VS to start. Wed, 03 May 2023 12:41:18 GMT Run devenv.com $env:Solution_Name /rebuild "$env:Configuration|x86" /project $env:Installer_Project /log And that's all time being billed for. 👎 On my own machine, the same build took 23.472 seconds |
This adds msi and devenv to build the msi installer as vscode doesn’t support building directly from a visual studio code project from a vdproject using msbuild. So using devenv is needed to build it. For reference. actions/runner-images#5301 Signed-off-by: Spidy123222 <[email protected]>
This adds msi and devenv to build the msi installer as vscode doesn’t support building directly from a visual studio code project from a vdproject using msbuild. So using devenv is needed to build it. For reference. actions/runner-images#5301 Signed-off-by: Spidy123222 <[email protected]>
Thanks for taking your time, but I’m afraid it still takes very long before the project starts building.
I’ve just rebuilt my package.
The runner had version “2.305.0” and was using a Windows Server 2022 (10.0.20348).
Image was “windows-2022” version “20230612.1”
Fri, 23 Jun 2023 11:43:47 GMT Run devenv.com $env:Solution_Name /rebuild "$env:Configuration|x86" /project $env:Installer_Project /log
Fri, 23 Jun 2023 11:43:47 GMT
Fri, 23 Jun 2023 11:50:28 GMT
Fri, 23 Jun 2023 11:50:28 GMT Microsoft Visual Studio 2022 Version 17.6.2.
Fri, 23 Jun 2023 11:50:28 GMT Copyright (C) Microsoft Corp. All rights reserved.
Fri, 23 Jun 2023 11:50:28 GMT
Fri, 23 Jun 2023 11:50:28 GMT The license for Visual Studio expires in 19 days.
Fri, 23 Jun 2023 11:50:28 GMT Rebuild started...
As you can see, it again takes almost 7 minutes before VS creates its first output.
When I built the project 2 weeks ago on a runner version “20230606.1”, this was the output:
Mon, 12 Jun 2023 10:53:17 GMT Run devenv.com $env:Solution_Name /rebuild "$env:Configuration|x86" /project $env:Installer_Project /log
Mon, 12 Jun 2023 11:00:01 GMT
Mon, 12 Jun 2023 11:00:01 GMT Microsoft Visual Studio 2022 Version 17.6.2.
7 minutes.
Am I too impatient and have to wait for an image version newer than 20230612.1 (unfortunately, you didn’t mention what the “new” image version was) or didn’t the fix work as hoped for?
Best regards
Martin Müller
Von: ilia-shipitsin ***@***.***>
Gesendet: Freitag, 23. Juni 2023 13:32
An: actions/runner-images ***@***.***>
Cc: Martin Müller ***@***.***>; Comment ***@***.***>
Betreff: Re: [actions/runner-images] DevEnv takes a long time to initialize (Issue #5301)
new image has been delivered.
I'm closing this issue, feel free to reopen if is still a concern
—
Reply to this email directly, view it on GitHub<#5301 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AROFYVQ4RHLLZY35CGFZC63XMV5ELANCNFSM5R7UH7DA>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
it was a false alarm from my side. |
Ok, no problem. |
Should be deployed now |
Great, thank you so much!! Mon, 26 Jun 2023 11:37:21 GMT Runner Image Mon, 26 Jun 2023 11:39:56 GMT Run devenv.com $env:Solution_Name /rebuild "$env:Configuration|x86" /project $env:Installer_Project /log 1:20 minutes is a lot better than the ~7 minutes it took before. Thanks again! |
I just had a build take >10mins to start up: https://github.com/tgstation/tgstation-server/actions/runs/5382159227/jobs/9767199703 |
I've noticed no perceivable difference than before. It still takes several minutes to even start devenv. The last 3 runs took 6:23, 6:28, and 7:57 minutes each just to start devenv with the entire build taking roughly 3 minutes longer each. @martinmueller4voice since it appears to be working for you, it may be possible that we're setting up our devenv a bit differently, if that can even make a difference. Does your workflow differ from my original post? Are you able to post at least the important parts of your workflow for comparison? |
@martinmueller4voice , I've added "vdproj" warmup. Warmup itself is simple vdproj. |
My projecct mainly contains those steps to build the setup project: # Install the .NET 7 workload # Install GitVersion # Setup NuGet # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild # Execute all unit tests in the solution # Setup devenv environment # Copy asp.net 7 x86 prerequisite Bootstrapper package # Build installer As you can see, the last step is the first one where devenv is actually started. With the exact same steps, the build using 20230620.1 took 1:19 min to start devenv.com: The build using the 20230625.1 runner took 5:13 min again to start devenv.com: |
Images are the same, @maxim-lobanov any ideas? |
Can I ask if this is closed because it's a known issue? |
Since we already had short startup times at some point, I feel that getting this to work reliably is just a small step away, even though I cannot say for sure what @maxim-lobanov did exactly with those images. |
thanks @martinmueller4voice for the response, I ask because I've tested windows 2019 and windows 2022 images and running devenv.com can still anywhere between 10 to 20 mins each run. This is in Azure DevOps by the way. |
I still see very long times (~5 min) to simple start a dev shell in github hosted runners. Is there any update on this? |
Because there doesn't seem to be any progress, I thought I'd suggest using a local (self-hosted) runner. |
Hi @martinmueller4voice, thanks for your reply! Unfortunately, one of the reasons to migrate to github actions was to avoid maintaining servers for CI, so we'd like to avoid self-hosted runners if we can. |
Same problem here, builds with devenv.exe take at least 5-10minutes to start up on a Github runner.... Is this still being worked on? |
Description
In order to build a Visual Studio Installer Project (
.vdproj
), Visual Studio must be ran viaDevEnv.exe
. When building the installer, it takes anywhere from 2-10. This appears to be regression from #128. I'm not sure when the regression initially occurred as this is the first time I needed DevEnv.In the reproduction steps below, I use
seanmiddleditch/gha-setup-vsdevenv@v4
. This appears to be required to ensure the installer is built due to the behavior of DevEnv.exe. It seems likely that you may be able to start and wait for the DevEnv process to finish, but I doubt that will result in a faster build. This action does add a lot of clutter to the environment variables as well.Unfortunately, all our repositories are private and can't be shared publicly. For troubleshooting, I attempted to test our Action against windows-2019 based on #128. I experienced the same issue, as mentioned in Actual Behavior.
Virtual environments affected
Image version and build link
windows-2019 -> 20220316.1
windows-2022 -> 20220316.1
Is it regression?
Maybe, see description
Expected behavior
I expected about 20-30 seconds, but I'd be happy with less than 120 seconds.
Actual behavior
It takes at least 2 minutes to start DevEnv, but typically takes 5-10 minutes. The last two runs clocked in at 8:40 and 8:28 on windows-2022 and windows-2019, respectively.
Repro steps
The text was updated successfully, but these errors were encountered: