aspnet / DotNetTools

[Archived] Various .NET command line tools. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
439 stars 74 forks source link

Flaky test: RunsWithIterationEnvVariable #471

Closed ryanbrandenburg closed 6 years ago

ryanbrandenburg commented 6 years ago

This test fails occasionally with the following error:

System.TimeoutException : The operation at /_/test/dotnet-watch.FunctionalTests/AwaitableProcess.cs:83 timed out after reaching the limit of 30000ms.
   at Microsoft.AspNetCore.Testing.TaskExtensions.TimeoutAfter[T](Task`1 task, TimeSpan timeout, String filePath, Int32 lineNumber)
   at Microsoft.DotNet.Watcher.Tools.FunctionalTests.AwaitableProcess.GetOutputLineAsync(String message, TimeSpan timeout) in /_/test/dotnet-watch.FunctionalTests/AwaitableProcess.cs:line 83
   at Microsoft.DotNet.Watcher.Tools.FunctionalTests.DotNetWatcherTests.RunsWithIterationEnvVariable() in /_/test/dotnet-watch.FunctionalTests/DotNetWatcherTests.cs:line 42
--- End of stack trace from previous location where exception was thrown ---
------- Stdout: -------
The temporary test folder is /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1
Copying project /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/TestProjects/KitchenSink to /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink
Restoring msbuild project in KitchenSink
Project directory: '/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink'
Started process 67476: /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/.dotnet/dotnet restore
  Restoring packages for /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink/KitchenSink.csproj...
  Generating MSBuild file /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink/.net/obj/KitchenSink.csproj.nuget.g.props.
  Generating MSBuild file /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink/.net/obj/KitchenSink.csproj.nuget.g.targets.
  Restore completed in 276.04 ms for /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink/KitchenSink.csproj.
Process exited 67476
Process exited 67476 with code 0
Building KitchenSink
Project directory: '/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink'
Started process 67508: /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/.dotnet/dotnet build
Microsoft (R) Build Engine version 15.7.179.6572 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
  Restore completed in 49.87 ms for /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink/KitchenSink.csproj.
  KitchenSink -> /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink/.net/bin/Release/netcoreapp2.2/KitchenSink.dll
Build succeeded.
    0 Warning(s)
    0 Error(s)
Time Elapsed 00:00:02.25
Process exited 67508
Process exited 67508 with code 0
7/30/2018 5:52:52 PM: process start: '/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/.dotnet/dotnet /Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tool/dotnet-watch.dll run --'
Waiting for output line [msg == 'Started']. Will wait for 120 sec.
7/30/2018 5:52:52 PM: post: 'watch : Running MSBuild target 'GenerateWatchList' on '/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink/KitchenSink.csproj''
7/30/2018 5:52:52 PM: recv: 'watch : Running MSBuild target 'GenerateWatchList' on '/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink/KitchenSink.csproj''
7/30/2018 5:52:52 PM: post: 'watch : Started '/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/.dotnet/dotnet' with process id 67543'
7/30/2018 5:52:52 PM: recv: 'watch : Started '/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/.dotnet/dotnet' with process id 67543'
7/30/2018 5:52:53 PM: post: 'watch : Process id 67543 ran for 1271ms'
7/30/2018 5:52:53 PM: recv: 'watch : Process id 67543 ran for 1271ms'
7/30/2018 5:52:53 PM: post: 'watch : Watching 2 file(s) for changes'
7/30/2018 5:52:53 PM: recv: 'watch : Watching 2 file(s) for changes'
7/30/2018 5:52:53 PM: post: 'watch : Started '/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/.dotnet/dotnet' with process id 67565'
7/30/2018 5:52:53 PM: recv: 'watch : Started '/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/.dotnet/dotnet' with process id 67565'
7/30/2018 5:52:53 PM: post: 'watch : Running dotnet with the following arguments: run --'
7/30/2018 5:52:53 PM: recv: 'watch : Running dotnet with the following arguments: run --'
7/30/2018 5:52:53 PM: post: 'watch : Started'
7/30/2018 5:52:53 PM: recv: 'watch : Started'
7/30/2018 5:52:54 PM: post: 'Telemetry is: Disabled'
7/30/2018 5:52:54 PM: recv: 'Telemetry is: Disabled'
7/30/2018 5:52:57 PM: post: 'Running dotnet exec "/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink/.net/bin/Release/netcoreapp2.2/KitchenSink.dll"'
7/30/2018 5:52:57 PM: recv: 'Running dotnet exec "/Users/asplab/TeamCity/work/33bdfc1cae7b2a38/modules/DotNetTools/bin/dotnet-watch.FunctionalTests/Release/netcoreapp2.2/tmp/ewun4bhe.ai1/KitchenSink/.net/bin/Release/netcoreapp2.2/KitchenSink.dll"'
7/30/2018 5:52:57 PM: post: 'Process ID: 67600'
7/30/2018 5:52:57 PM: recv: 'Process 
...

Other tests within that build may have failed with a similar message, but they are not listed here. Check the link above for more info.

CC @Eilon,@muratg,@mkArtakMSFT

This issue was made automatically. If there is a problem contact @ryanbrandenburg.

ryanbrandenburg commented 6 years ago

Please use this workflow to address this flaky test issue, including checking applicable checkboxes and filling in the applicable "TODO" entries:

This comment was made automatically. If there is a problem contact @ryanbrandenburg.

natemcmaster commented 6 years ago

Duplicate of https://github.com/aspnet/DotNetTools/issues/470 and https://github.com/aspnet/DotNetTools/issues/467. This test failure ran without the changes added yesterday to fix this test.