Skip to content

[8.0] System.Net.Http trimming tests fail with timeout #112220

Open
@carlossanlop

Description

@carlossanlop

Note: I enabled "BuildRetry", maybe that will reduce the hits.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=939880
Build error leg or test failing: System.Net.Http/tests/TrimmingTests/HttpClientTest.cs

Error Message

{
  "ErrorMessage" : ["The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing", "trimmingTests.targets(155,5): error : Error: [Failed Test]"],
  "BuildRetry" : true,
  "ExcludeConsoleLog" : false
}
[Trimming Tests] Running test: /__w/1/s/src/libraries/System.Net.Http/tests/TrimmingTests/HttpClientTest.cs ...
  Unhandled exception. System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
   ---> System.TimeoutException: The operation was canceled.
   ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
   ---> System.IO.IOException: The read operation failed, see inner exception.
   ---> System.ObjectDisposedException: Cannot access a disposed object.
  Object name: 'System.Net.Sockets.NetworkStream'.
     at System.Net.Sockets.NetworkStream.ThrowIfDisposed()
     at System.Net.Sockets.NetworkStream.ReadAsync(Memory`1, CancellationToken )
     at System.Net.Security.AsyncReadWriteAdapter.ReadAsync(Stream, Memory`1, CancellationToken)
     at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken, Int32)
     at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16)
     at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory`1, CancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory`1, CancellationToken)
     at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16)
     at System.Net.Http.HttpConnection.InitialFillAsync(Boolean)
     at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage, Boolean, CancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage, Boolean, CancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage, Boolean, Boolean, CancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage, Boolean, CancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken)
     --- End of inner exception stack trace ---
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpClient.HandleFailure(Exception, Boolean, HttpResponseMessage, CancellationTokenSource, CancellationToken, CancellationTokenSource)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken)
     at Program.Main(String[]) in /_/artifacts/bin/trimmingTests/projects/System.Net.Http.TrimmingTests/HttpClientTest/linux-x64/HttpClientTest.cs:line 20
     at Program.<Main>(String[])
/__w/1/s/eng/testing/linker/trimmingTests.targets(155,5): error : Error: [Failed Test]: /__w/1/s/src/libraries/System.Net.Http/tests/TrimmingTests/HttpClientTest.cs. The Command /__w/1/s/artifacts/bin/trimmingTests/projects/System.Net.Http.TrimmingTests/HttpClientTest/linux-x64/bin/Release/net8.0/linux-x64/publish/project return a non-success exit code. [/__w/1/s/src/libraries/System.Net.Http/tests/TrimmingTests/System.Net.Http.TrimmingTests.proj]

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=939880
Error message validated: [The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing trimmingTests.targets(155,5): error : Error: [Failed Test]]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 2/6/2025 1:10:42 AM UTC

Report

Summary

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarch-x64area-System.Net.Httpos-linuxLinux OS (any supported distro)test-bugProblem in test source code (most likely)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions