This is a test triage report generated by AI, aimed at helping the triage team quickly identify past issues/PRs that may be related.
Take any conclusions with a large grain of salt.
dotnet/runtime#117161: SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo test failed with "Exception type was not an exact match" by jkotas
[Tool] Searching for Exception type was not an exact match, SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo, SocketsHttpHandler_DiagnosticsTest_Http3, OperationCanceledException test failure, System.Net.Http.Functional.Tests (IncludeOpen=True, IncludeClosed=True, IncludeIssues=True, IncludePullRequests=True, Repository=dotnet/runtime)
[Tool] Found 177 issues, 66 comments, 177 returned results (11562 ms)
Triage for dotnet/runtime#117161.
Repo filter: All networking issues.
MihuBot version:
a1770b.Ping MihaZupan for any issues.
This is a test triage report generated by AI, aimed at helping the triage team quickly identify past issues/PRs that may be related.
Take any conclusions with a large grain of salt.
Here are the most relevant related issues and discussions for issue #117161 ("SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo test failed with 'Exception type was not an exact match'"):
1. Issue #116279 (June 2025) - System.Net.Http.Functional.Tests: Exception type was not an exact match
SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo, with the error "Exception type was not an exact match". The failures are related to the use ofAssert.Throws()in tests, where the actual exception type does not exactly match the expected type (e.g.,TaskCanceledExceptionvs.EqualException).ActivityRecorderand diagnostic tracing in HTTP tests.ActivityRecorder.2. Issue #117161 (June 2025) - SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo test failed with "Exception type was not an exact match"
System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http3.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfofailed with "Exception type was not an exact match". The log shows thatAssert.Throws()expected aTaskCanceledExceptionbut got anEqualExceptioninstead.3. Issue #116205 (June 2025) - OperationCanceledException not captured with HTTP native instrumentation
OperationCanceledExceptionis not reported as an error with native HTTP instrumentation, while it is with OpenTelemetry.Instrumentation.Http. The root cause is traced to the wayDiagnosticsHandlerhandles cancellation.OperationCanceledExceptionin HTTP diagnostics, which is the underlying theme of the test failures in #117161 and #116279.4. PR #116269 (June 2025) - Record OperationCanceledException in HttpClient native instrumentation
OperationCanceledExceptionoccurs, the activity status and error tags are set appropriately in native HTTP instrumentation.5. Issue #104699 (July 2024) - HTTP/3 Test Failure: SocketsHttpHandler_DiagnosticsTest_Http3.SendAsync_ExpectedDiagnosticCancelledLogging
Assert.Throws()expected a specific exception type but got a different one (NullReferenceExceptioninstead ofQuicException).6. Issue #25110 (Feb 2018) - SocketsHttpHandler cancellation test failures on windows
Conclusions
Recommendations
References:
Let me know if you need a more detailed summary of any specific issue or PR!