Skip to content

SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo test failed with "Exception type was not an exact match" #117161

Closed

Description

@jkotas

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1081940
Build error leg or test failing: System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http3.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo
Pull request: #117128

Error Message

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

{
  "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

Report

Build Definition Test Pull Request
1085494 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http3.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo #117292
1085320 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http3.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo #117254
1084966 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http3.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo #113299
1082720 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http3.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo #117056
1082674 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http3.SendAsync_RequestWithDangerousControlHeaderValue_ThrowsHttpRequestException #117188
1082625 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_MaxResponseHeadersLength_Http3.LargeSingleHeader_ThrowsException #116901
1081940 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http3.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo #117128

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 7 7

Activity

  1. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    Known Build ErrorUse this to report build issues in the .NET Helix tab
    on Jun 30, 2025
  2. jkotas commented on Jun 30, 2025

    @jkotas
    MemberAuthor

    Log snippet:

    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
    
  3. added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Jun 30, 2025
  4. jkotas commented on Jun 30, 2025

    @jkotas
    MemberAuthor

    More of #116279. cc @antonfirsov

  5. added and removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Jun 30, 2025
  6. dotnet-policy-service commented on Jun 30, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/ncl
    See info in area-owners.md if you want to be subscribed.

  7. self-assigned this
    on Jun 30, 2025
  8. antonfirsov commented on Jun 30, 2025

    @antonfirsov
    Contributor

    There seems to be some flakyness around cancellation timing in this test.

  9. removed
    untriagedNew issue has not been triaged by the area owner
    on Jun 30, 2025
  10. added this to the 10.0.0 milestone on Jun 30, 2025
  11. amanasifkhalid commented on Jul 1, 2025

    @amanasifkhalid
  12. ManickaP commented on Jul 1, 2025

    @ManickaP
  13. jkotas commented on Jul 1, 2025

    @jkotas
    Author
  14. locked and limited conversation to collaborators on Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Net.Httpblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions