Skip to content

HttpClient timeout during trimming tests #110707

Closed

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

Activity

  1. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    Known Build ErrorUse this to report build issues in the .NET Helix tab
    on Dec 13, 2024
  2. dotnet-policy-service commented on Dec 13, 2024

    @dotnet-policy-service
    Contributor

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

  3. changed the title [-]HttpClinet timeout during trimming tests[/-] [+]HttpClient timeout during trimming tests[/+] on Dec 16, 2024
  4. added this to the 10.0.0 milestone on Jan 16, 2025
  5. added
    test-bugProblem in test source code (most likely)
    and removed
    untriagedNew issue has not been triaged by the area owner
    on Jan 16, 2025
  6. MihaZupan commented on Jan 16, 2025

    @MihaZupan
    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.

  7. locked and limited conversation to collaborators on Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions