aspire icon indicating copy to clipboard operation
aspire copied to clipboard

[flaky test] `CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies`

Open radical opened this issue 8 months ago • 3 comments

Build Information

Build: https://github.com/dotnet/aspire/pull/7909/checks Build error leg or test failing: Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies Pull request:

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "  at Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies() ",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Full log:

Timed out at 3/6/2025 2:17:28 AM after 60000ms waiting for remote process.
	Process ID: 5460
	Handle: 1464
	Name: dotnet
	MainModule: D:\a\aspire\aspire\.dotnet\dotnet.exe
	StartTime: 3/6/2025 2:16:07 AM
	TotalProcessorTime: 00:00:00.0781250
	Threads:
		Thread #1 (OS 0x664)   [MTA]
			[HelperMethodFrame] (System.Threading.Thread.SleepInternal)
			System.Threading.Thread.Sleep(Int32)
			Aspire.Cli.Tests.CliOrphanDetectorTests+<>c.<AppHostExitsWhenCliProcessPidDies>b__5_0()
			[HelperMethodFrame_PROTECTOBJ] (System.RuntimeMethodHandle.InvokeMethod)
			System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(System.Object, System.Reflection.BindingFlags)
			System.Reflection.MethodBase.Invoke(System.Object, System.Object[])
			Microsoft.DotNet.RemoteExecutor.Program.Main(System.String[])
		Thread #2 (OS 0x139C) [Finalizer] [Background] 
			[DebuggerU2MCatchHandlerFrame]

  Stack Trace:
     at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose(Boolean disposing) in /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs:line 225
   at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose() in /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs:line 55
   at Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies() in /_/tests/Aspire.Cli.Tests/Hosting/CliOrphanDetectorTests.cs:line 120
--- End of stack trace from previous location ---

cc @mitchdenny

Last 10 failures:

Run date Test Name
Apr 29 4 PM [windows] Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies
Apr 29 2 PM [windows] Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies
Apr 29 2 PM [linux] Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies
Apr 29 12 PM [windows] Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies
Apr 29 10 AM [windows] Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies
Apr 29 8 AM [windows] Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies
Apr 29 6 AM [windows] Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies
Apr 29 4 AM [windows] Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies
Apr 29 2 AM [windows] Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies
Apr 29 12 AM [windows] Aspire.Cli.Tests.CliOrphanDetectorTests.AppHostExitsWhenCliProcessPidDies

-- Updated on 4/29/2025 6:21:23 PM UTC

Summary

Last 40 Total failed / total runs
21 93 / 200

radical avatar Mar 06 '25 02:03 radical

@radical I can't get access to that log - can you point to the build?

mitchdenny avatar Mar 06 '25 02:03 mitchdenny

https://github.com/dotnet/aspire/pull/7909/checks

radical avatar Mar 06 '25 13:03 radical

In the last 53 runs 48 failed. Listing last 10 failures:

Run date Outcome
Apr 8 4 AM Failed
Apr 8 12 AM Failed
Apr 7 10 PM Failed
Apr 7 8 PM Failed
Apr 7 6 PM Failed
Apr 7 4 PM Failed
Apr 7 2 PM Failed
Apr 7 12 PM Failed
Apr 7 10 AM Failed
Apr 7 8 AM Failed

radical avatar Apr 08 '25 04:04 radical

This test no longer appears to be flaky.

mitchdenny avatar Jul 29 '25 09:07 mitchdenny