-
Notifications
You must be signed in to change notification settings - Fork 1.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
Regression in build times for Travis CI using 2.2.300 SDK #3314
Comments
Maybe requires integration of microsoft/vstest#2024? These projects are all using the 16.1.1 NuGet reference, which shows no improvement (commit, build). |
Related fix: dotnet/cli#11497 |
Just to confirm further this is potentially a regression on vstest, would it be possible for you to gather these numbers if you turned off tests on your CI, just to collect data? cc @singhsarab |
@martincostello I looked at logs of one of the PRs, https://travis-ci.org/justeat/JustEat.StatsD/jobs/541122616, the total time reported for test run is 10 seconds, let's add some start and cleanup time, even then it should not call for printing the progress bar more than 20 times as it is called after an interval of 1 sec. Can you please enable logging and share the logs with me? |
@singhsarab Can you let me know exactly what logging parameters you need setting through |
@martincostello You can use --diag:log.txt argument |
There's a test running now, it hasn't gotten as far as printing out anything yet, but it seems like whatever is slow is running after the last test finishes before the process exits. |
There appears to be a 17 minute gap between these two log messages: TpTrace Verbose: 0 : 5334, 9, 2019/06/11, 12:37:13.427, 134005118760, vstest.console.dll, ParallelProxyExecutionManager: HandlePartialRunComplete: Total completed clients = 1, Run complete = True, Run canceled: False.
TpTrace Verbose: 0 : 5334, 9, 2019/06/11, 12:54:14.143, 1154721904773, vstest.console.dll, TestRunRequest:TestRunComplete: Starting. IsAborted:False IsCanceled:False. |
@singhsarab is @martincostello's lastest reply and logs enough for you to make headway on this? |
@martincostello Thanks for the logs. I am not able to come up with a hypothesis right away. There seems to be some issue while clean up. Is this issue happening only on travis CI ? I am trying to see if I can get a local repro to debug this one. |
Let's transfer this to microsoft/vstest, will help us track this better |
@singhsarab Yes, only Travis CI. Locally, AppVeyor and Azure DevOps Pipelines are all fine. |
@singhsarab This issue does not seem to affect .NET Core 3.0 preview 6: https://travis-ci.org/martincostello/project-euler/builds/545376053 |
One thing I've noticed that's different in Travis CI compared to Azure Dev Ops is that Could something different be making vstest think it should be printing progress to an interactive console, rather than say not because |
This issue was moved to microsoft/vstest#2078 |
…ld 20191024.3 (dotnet#3314) - Microsoft.WindowsDesktop.App - 5.0.0-alpha1.19524.3
I've noticed across several different projects I maintain that since the SDK was updated from 2.2.1xx or 2.2.2xx to 2.2.300, the time to build the projects in Travis CI has regressed by up to an order of magnitude on both Linux and macOS.
However I'm not seeing the same regression in Azure DevOps pipelines for Linux, macOS or Windows, or AppVeyor for Windows.
Below are a selection of projects that show a build time regression immediately after merging a PR that contains a commit that updates the SDK to 2.2.300:
My hunch is that it is related to the new "progress bar" when running
dotnet test
which is causing the Travis agents to waste a lot of time trying to "draw" it because the actual test run times printed in the build output are equivalent:Time Elapsed 00:00:10.86
Time Elapsed 00:00:15.31
Test execution time: 46.8778 Seconds
Total time: 46.5308 Seconds
The text was updated successfully, but these errors were encountered: