Since SDK 2.2.300 test performance is magnitudes slower
See original GitHub issueDescription
Tests take a long time to run on detached hosts build servers (CircleCI)
Similar issue was closed, but the issue still happens. https://github.com/microsoft/vstest/issues/2078
Steps to reproduce
Repo which can reproduce the issue https://github.com/davidruhmann/vstest2080
Expected behavior
Tests to complete < 1s
Actual behavior
Tests take over > 20s
Each line of Test run in progress.
output takes several seconds while the test takes < 2 ms
.
Diagnostic logs
https://circleci.com/gh/davidruhmann/vstest2080/3
Environment
.NET Core SDK (reflecting any global.json):
Version: 2.2.401
Commit: 729b316c13
Runtime Environment:
OS Name: debian
OS Version: 9
OS Platform: Linux
RID: debian.9-x64
Base Path: /usr/share/dotnet/sdk/2.2.401/
Host (useful for support):
Version: 2.2.6
Commit: 7dac9b1b51
.NET Core SDKs installed:
2.2.401 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.6 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Issue Analytics
- State:
- Created 4 years ago
- Comments:23 (13 by maintainers)
Top Results From Across the Web
Download .NET Core 2.2 (Linux, macOS, and Windows)
NET Core 2.2 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of ......
Read more >High Performance Computing
After that point, the protocol splits bigger packages and send them separately, leading to expected slower results given that one of the packages...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can workaround the issue by specifying the following parameter to
dotnet test
:'--logger:Console;noprogress=true'
@davidruhmann Try separating the package restore and build from the test steps. you’re doing all three in a single step that takes 27 seconds; I usually do something like the following:
If you do this in distinct CirlceCI steps it will give you a more accurate reflection of where the time is being taken.