You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo test failed with "Exception type was not an exact match" #117161
{
"ErrorMessage": ["Failure: Exception type was not an exact match","SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo [FAIL]"],
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Known issue validation
Build: 🔎https://dev.azure.com/dnceng-public/public/_build/results?buildId=1081940 Error message validated:[Failure: Exception type was not an exact match SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo [FAIL]] Result validation: ✅ Known issue matched with the provided build. Validation performed at: 6/30/2025 5:09:32 PM UTC
Unhandled exception. Xunit.Sdk.ThrowsException: Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.Threading.Tasks.TaskCanceledException)
Actual: typeof(Xunit.Sdk.EqualException)
at Xunit.Assert.Throws(Type exceptionType, Exception exception) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/ExceptionAsserts.cs:line 45
at Xunit.Assert.ThrowsAsync[T](Func`1 testCode) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/ExceptionAsserts.cs:line 272
at System.Net.Http.Functional.Tests.DiagnosticsTest.<>c__DisplayClass19_0.<<SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo>b__1>d.MoveNext() in /_/src/libraries/System.Net.Http/tests/FunctionalTests/DiagnosticsTests.cs:line 874
--- End of stack trace from previous location ---
at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 120
--- End of stack trace from previous location ---
at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 90
at System.Net.Test.Common.LoopbackServerFactory.<>c__DisplayClass6_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in /_/src/libraries/Common/tests/System/Net/Http/GenericLoopbackServer.cs:line 44
--- End of stack trace from previous location ---
at System.Net.Test.Common.Http3LoopbackServerFactory.CreateServerAsync(Func`3 funcAsync, Int32 millisecondsTimeout, GenericLoopbackOptions options) in /_/src/libraries/Common/tests/System/Net/Http/Http3LoopbackServer.cs:line 115
at System.Net.Http.Functional.Tests.DiagnosticsTest.<SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo>g__RunTest|19_0(String useVersion, String testAsync) in /_/src/libraries/System.Net.Http/tests/FunctionalTests/DiagnosticsTests.cs:line 865
at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/arcade/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 65
--- End of stack trace from previous location ---
at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/arcade/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 97
System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http3.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo [FAIL]
Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
Stack Trace:
Child exception:
Xunit.Sdk.ThrowsException: Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.Threading.Tasks.TaskCanceledException)
Actual: typeof(Xunit.Sdk.EqualException)
/_/src/libraries/System.Net.Http/tests/FunctionalTests/DiagnosticsTests.cs(874,0): at System.Net.Http.Functional.Tests.DiagnosticsTest.<>c__DisplayClass19_0.<<SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo>b__1>d.MoveNext()
--- End of stack trace from previous location ---
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(120,0): at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
--- End of stack trace from previous location ---
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(90,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
/_/src/libraries/Common/tests/System/Net/Http/GenericLoopbackServer.cs(44,0): at System.Net.Test.Common.LoopbackServerFactory.<>c__DisplayClass6_0.<<CreateClientAndServerAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
/_/src/libraries/Common/tests/System/Net/Http/Http3LoopbackServer.cs(115,0): at System.Net.Test.Common.Http3LoopbackServerFactory.CreateServerAsync(Func`3 funcAsync, Int32 millisecondsTimeout, GenericLoopbackOptions options)
/_/src/libraries/System.Net.Http/tests/FunctionalTests/DiagnosticsTests.cs(865,0): at System.Net.Http.Functional.Tests.DiagnosticsTest.<SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo>g__RunTest|19_0(String useVersion, String testAsync)
/_/src/arcade/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs(65,0): at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args)
Child process:
System.Net.Http.Functional.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Net.Http.Functional.Tests.DiagnosticsTest System.Threading.Tasks.Task <SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo>g__RunTest|19_0(System.String, System.String)
Child arguments:
3.0, True
Activity
jkotas commentedon Jun 30, 2025
Log snippet:
jkotas commentedon Jun 30, 2025
More of #116279. cc @antonfirsov
dotnet-policy-service commentedon Jun 30, 2025
Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.
antonfirsov commentedon Jun 30, 2025
There seems to be some flakyness around cancellation timing in this test.
amanasifkhalid commentedon Jul 1, 2025
ManickaP commentedon Jul 1, 2025
jkotas commentedon Jul 1, 2025