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

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

Open
carlossanlop opened this issue Feb 6, 2025 · 3 comments
Open

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

carlossanlop opened this issue Feb 6, 2025 · 3 comments
Labels
arch-x64 area-System.Net.Http Known Build Error Use this to report build issues in the .NET Helix tab os-linux Linux OS (any supported distro) test-bug Problem in test source code (most likely)
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Feb 6, 2025

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

Build Definition Step Name Console log Pull Request
947339 dotnet/runtime Run Trimming Tests Log #111410
941950 dotnet/runtime Run Trimming Tests Log
939880 dotnet/runtime Run Trimming Tests Log #112143

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 3
@carlossanlop carlossanlop added arch-x64 area-System.Net.Http Known Build Error Use this to report build issues in the .NET Helix tab os-linux Linux OS (any supported distro) labels Feb 6, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Feb 6, 2025
Copy link
Contributor

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

@MihaZupan
Copy link
Member

This test was deleted from 8.0-staging in #111488 (Jan 16).
Would you like us to port it to 8.0 as well?

@MihaZupan MihaZupan added the test-bug Problem in test source code (most likely) label Feb 6, 2025
@MihaZupan MihaZupan added this to the 8.0.x milestone Feb 6, 2025
@carlossanlop
Copy link
Member Author

No, we can keep the issue open until I flow staging to the base branch on code complete day.

@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-x64 area-System.Net.Http Known Build Error Use this to report build issues in the .NET Helix tab os-linux Linux OS (any supported distro) test-bug Problem in test source code (most likely)
Projects
None yet
Development

No branches or pull requests

2 participants