Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpClient timeout during trimming tests #110707

Open
ericstj opened this issue Dec 13, 2024 · 2 comments
Open

HttpClient timeout during trimming tests #110707

ericstj opened this issue Dec 13, 2024 · 2 comments
Labels
area-System.Net blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab test-bug Problem in test source code (most likely)
Milestone

Comments

@ericstj
Copy link
Member

ericstj commented Dec 13, 2024

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
2 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

@ericstj ericstj added area-System.Net blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Dec 13, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Dec 13, 2024
Copy link
Contributor

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

@ericstj ericstj changed the title HttpClinet timeout during trimming tests HttpClient timeout during trimming tests Dec 16, 2024
@MihaZupan MihaZupan added this to the 10.0.0 milestone Jan 16, 2025
@MihaZupan MihaZupan added test-bug Problem in test source code (most likely) and removed untriaged New issue has not been triaged by the area owner labels Jan 16, 2025
@MihaZupan
Copy link
Member

This test was deleted in #104718 (in time for 9.0). The failures are only impacting release/8.0 branches.
We can backport the test change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Net blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab test-bug Problem in test source code (most likely)
Projects
None yet
Development

No branches or pull requests

2 participants