Closed carlossanlop closed 1 week ago
Tagging subscribers to this area: @mangod9 See info in area-owners.md if you want to be subscribed.
cc @kouvel
Likely introduced by #106408. Note that the CI did not run trigger on this PR.
It's not clear to me from the failure what the issue is. I'll disable the test for now and see if I can repro.
Note that the CI did not run trigger on this PR.
It ran successfully, the results are here. The CI results can be seen for the first commit. When trying to merge I had clicked the wrong button, which caused a merge commit to be added to the PR and that restarted the CI. The rerun felt unnecessary, as merging the PR would have yielded a similar result.
@kouvel in general it is a good idea to leave the KnownBuidError open until the fix has been in all impacted branches for a day or two so that recent failures are correctly identified by Build Analysis
@kouvel, assume this should be fixed (as in the test is disabled now?)
Yes I think this can be closed, https://github.com/dotnet/runtime/issues/106371 is tracking the issue.
Important: This was found in a 9.0 PR shortly after the snap, so whatever fix will have to get backported.
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=776432 Build error leg or test failing:
System.Threading.ThreadPools.Tests.ThreadPoolTests.IOCompletionPortCountConfigVarTest
inLibraries Test Run release coreclr windows x64 Debug
Error Message
Libraries Test Run release coreclr windows x64 Debug
C:\h\w\A1E808D0\w\B00D09BE\e>"C:\h\w\A1E808D0\p\dotnet.exe" exec --runtimeconfig System.Threading.ThreadPool.Tests.runtimeconfig.json --depsfile System.Threading.ThreadPool.Tests.deps.json xunit.console.dll System.Threading.ThreadPool.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
Discovering: System.Threading.ThreadPool.Tests (method display = ClassAndMethod, method display options = None) Discovered: System.Threading.ThreadPool.Tests (found 48 test cases) Starting: System.Threading.ThreadPool.Tests (parallel test collections = on [2 threads], stop on fail = off) System.Threading.ThreadPools.Tests.ThreadPoolTests.IOCompletionPortCountConfigVarTest(ioCompletionPortCount: 7) [FAIL] Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Half-way through waiting for remote process. Memory load: 17
Unhandled exception. System.AggregateException: One or more errors occurred. (Assert.True() Failure Expected: True Actual: False) ---> Xunit.Sdk.TrueException: Assert.True() Failure Expected: True Actual: False at Xunit.Assert.True(Nullableb_5>d.MoveNext() in //src/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs:line 1408
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.b__1281(Object state) in //src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 1926
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute() in //src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolWorkQueue.cs:line 1503
at System.Threading.ThreadPoolWorkQueue.Dispatch() in //src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolWorkQueue.cs:line 1099
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() in //src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WorkerThread.cs:line 128
at System.Threading.Thread.StartCallback() in //src/coreclr/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs:line 100
System.Threading.ThreadPools.Tests.ThreadPoolTests.ReadWriteAsyncTest [SKIP]
Condition(s) not met: "UseWindowsThreadPool"
System.Threading.ThreadPools.Tests.ThreadPoolTests.MetricsTest [SKIP]
Condition(s) not met: "IsMetricsTestSupported"
Finished: System.Threading.ThreadPool.Tests
=== TEST EXECUTION SUMMARY ===
System.Threading.ThreadPool.Tests Total: 78, Errors: 0, Failed: 1, Skipped: 2, Time: 81.136s
----- end Thu 08/15/2024 2:16:40.52 ----- exit code 1 ----------------------------------------------------------
1 condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 146 at Xunit.Assert.True(Boolean condition) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 97 at System.Threading.Tests.ThreadTestHelpers.CheckedWait(WaitHandle wh) in /_/src/libraries/Common/tests/System/Threading/ThreadTestHelpers.cs:line 153 at System.Threading.ThreadPools.Tests.ThreadPoolTests.<IOCompletionPortCountConfigVarTest>g__RunAsyncIOTest|47_3() in /_/src/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs:line 1428 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 1892 at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2782 at System.Threading.Tasks.Task.Wait() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2626 at System.Threading.ThreadPools.Tests.ThreadPoolTests.<>c.<IOCompletionPortCountConfigVarTest>b__47_1() in /_/src/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs:line 1367 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36 at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57 --- End of stack trace from previous location --- at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 97 Unhandled exception. System.Net.Sockets.SocketException (995): The I/O operation has been aborted because of either a thread exit or an application request. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.Tasks.cs:line 1386 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Net.Sockets.Socket>.GetResult(Int16 token) in /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.Tasks.cs:line 1323 at System.Threading.Tasks.ValueTask
1.ValueTaskSourceAsTask.<>c.<.cctor>b40(Object state) in //src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/ValueTask.cs:line 665 --- End of stack trace from previous location --- at System.Threading.ThreadPools.Tests.ThreadPoolTests.<>cDisplayClass47_1.<