Skip to content

HttpClient timeout during trimming tests #110707

Closed
@ericstj

Description

@ericstj

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=895126&view=logs&j=ff0f4165-94fa-565b-d5ea-6d06d02692b1
Build error leg or test failing: Build / linux-x64 release Runtime_Release / Run Trimming Tests
Pull request: #110705

Error Message

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

{
  "ErrorMessage": "",
  "ErrorPattern": [ "\\[Trimming Tests\\] .*HttpClientTest\\.cs", "The request was canceled due to the configured HttpClient\\.Timeout" ],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

error text

 [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]
##[error]eng/testing/linker/trimmingTests.targets(155,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build) 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.
  project -> /__w/1/s/artifacts/bin/trimmingTests/projects/System.Reflection.DispatchProxy.TrimmingTests/DispatchProxyTest/linux-x64/bin/Release/net8.0/linux-x64/project.dll

Report

Summary

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

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=895126
Error message validated: [\[Trimming Tests\] .*HttpClientTest\.cs The request was canceled due to the configured HttpClient\.Timeout]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 12/17/2024 4:44:51 PM UTC

Report

Build Definition Step Name Console log Pull Request
918307 dotnet/runtime Run Trimming Tests Log
918068 dotnet/runtime Run Trimming Tests Log #111401
917910 dotnet/runtime Run Trimming Tests Log #111445
917293 dotnet/runtime Run Trimming Tests Log #111401
917142 dotnet/runtime Run Trimming Tests Log
917128 dotnet/runtime Run Trimming Tests Log #111401
916810 dotnet/runtime Run Trimming Tests Log #111401
916339 dotnet/runtime Run Trimming Tests Log #111376
916226 dotnet/runtime Run Trimming Tests Log
916101 dotnet/runtime Run Trimming Tests Log
915969 dotnet/runtime Run Trimming Tests Log
915723 dotnet/runtime Run Trimming Tests Log #111159
915145 dotnet/runtime Run Trimming Tests Log #111330
913587 dotnet/runtime Run Trimming Tests Log #110336
913577 dotnet/runtime Run Trimming Tests Log
912571 dotnet/runtime Run Trimming Tests Log
911031 dotnet/runtime Run Trimming Tests Log
911027 dotnet/runtime Run Trimming Tests Log #110059
910313 dotnet/runtime Run Trimming Tests Log
910268 dotnet/runtime Run Trimming Tests Log
909337 dotnet/runtime Run Trimming Tests Log #111171
909142 dotnet/runtime Run Trimming Tests Log #111159
909005 dotnet/runtime Run Trimming Tests Log
908328 dotnet/runtime Run Trimming Tests Log #110199
897100 dotnet/runtime Run Trimming Tests Log #110765
898341 dotnet/runtime Run Trimming Tests Log

Summary

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

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=895126
Error message validated: [\[Trimming Tests\] .*HttpClientTest\.cs The request was canceled due to the configured HttpClient\.Timeout]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 12/17/2024 4:44:51 PM UTC

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Netblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'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