-
Notifications
You must be signed in to change notification settings - Fork 481
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
v3.0.0 results in dotnet builds 2x slower than v2 #410
Comments
Our fix for the time-being is we're rolling back to |
Hi, @dylan-smith 👋 As we discussed, you need to add |
Thanks for the help @IvanZosimov . To make sure I understand what's going on here (and for the benefit of any future travelers that land on this issue), I'll try and sum up my understanding. When building with
It seems the slowdown I was seeing was due to a difference in perf between using .Net SDK v6 vs v7. I was able to confirm this by adding a global.json forcing SDK v6 and the times became similar ( What I don't understand is what was going on with It would be nice if there was a way to make |
Thanks for the feedback, @dylan-smith 👋 We've started the internal investigation on this topic. We will keep you in the loop. |
Description:
We just recently upgraded to v3 of this action and it resulted in significantly slower dotnet builds. NOTE: It's not the setup-dotnet action that is slow, but the subsequent build step.
Task version:
v2 is fast, v3.0.0 is slow
Platform:
Runner type:
Repro steps:
I created a small workflow that demonstrates the problem: https://github.com/dylan-smith/setup-dotnet-repro/blob/main/.github/workflows/blank.yml
It has a
build-v2
job and abuild-v3
job, the only difference is the version of thesetup-dotnet
task in them. All they do is checkout a dotnet repo,setup-dotnet
, then run adotnet publish
command. The dotnet publish command is significantly slower whensetup-dotnet@v3
is used.Windows/Ubuntu runners are more than 2x as slow when using
setup-dotnet@v3
. Mac runners don't seem to be affected.Ubuntu: 47s -> 97s
Windows: 96s -> 256s
Mac: 135s -> 139s
The workflow run/logs can be seen here: https://github.com/dylan-smith/setup-dotnet-repro/actions/runs/4609178383
Expected behavior:
I wouldn't expect the version of
setup-dotnet
to affect dotnet build times, or if it did I would expect newer versions to improve build perf not decrease it.The text was updated successfully, but these errors were encountered: