runtime icon indicating copy to clipboard operation
runtime copied to clipboard

System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker Test failure

Open buyaa-n opened this issue 1 year ago • 5 comments

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=511843 Build error leg or test failing: System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded Pull request: https://github.com/dotnet/runtime/pull/96362

Error Message

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

{
  "ErrorMessage": "Not found:  \"System.Net.Http.HttpRequestException\"",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

From Log:

System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded [FAIL]
      Assert.Contains() Failure: Item not found in collection
      Collection: ["System.Threading.Tasks.TaskCanceledException", "response_ended"]
      Not found:  "System.Net.Http.HttpRequestException"
      Stack Trace:
        /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs(103,0): at System.Net.Http.Functional.Tests.HttpMetricsTestBase.VerifyRequestDuration(String instrumentName, Double measurement, KeyValuePair`2[] tags, Uri uri, Version protocolVersion, Nullable`1 statusCode, String method, String[] acceptedErrorTypes)
        /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs(79,0): at System.Net.Http.Functional.Tests.HttpMetricsTestBase.VerifyRequestDuration(Measurement`1 measurement, Uri uri, Version protocolVersion, Nullable`1 statusCode, String method, String[] acceptedErrorTypes)
        /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs(862,0): at System.Net.Http.Functional.Tests.HttpMetricsTest_Http11.<>c__DisplayClass5_0.<<RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded>b__0>d.MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(120,0): at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(90,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
        /_/src/libraries/Common/tests/System/Net/Http/GenericLoopbackServer.cs(44,0): at System.Net.Test.Common.LoopbackServerFactory.<>c__DisplayClass6_0.<<CreateClientAndServerAsync>b__0>d.MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs(107,0): at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
        /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs(846,0): at System.Net.Http.Functional.Tests.HttpMetricsTest_Http11.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded()

Report

Build Definition Test Pull Request
658516 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#101151
658006 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100951
656502 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#101576
656161 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#101531
655963 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100949
655669 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#101392
655003 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#101507
655011 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_Cookies_Http3.GetAsync_DefaultCoookieContainer_NoCookieSent dotnet/runtime#101221
653833 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#99490
653677 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100697
652318 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http3.ReadAsStreamAsync_HandlerProducesWellBehavedResponseStream dotnet/runtime#101392
649585 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100918
649002 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#101279
645791 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_AltSvc_Test_Http3.AltSvc_ConnectionFrame_UpgradeFrom20_Success dotnet/runtime#101138
644959 dotnet/runtime System.Net.Http.Functional.Tests.SocksProxyTest_Http2.TestLoopbackAsync dotnet/runtime#100389
644343 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100898
642020 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100980
640857 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100954
634800 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100685
632605 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100713
632593 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100712
632078 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100693
629637 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100617
629177 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#98712
626423 dotnet/runtime System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded dotnet/runtime#100503

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 11 25

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=511843 Error message validated: Not found: "System.Net.Http.HttpRequestException" Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 1/2/2024 7:25:41 PM UTC

buyaa-n avatar Jan 02 '24 17:01 buyaa-n

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

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=511843 Build error leg or test failing: System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded Pull request: https://github.com/dotnet/runtime/pull/96362

Error Message

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

{
  "ErrorMessage": "Not found:  "System.Net.Http.HttpRequestException"",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

From Log:

System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded [FAIL]
      Assert.Contains() Failure: Item not found in collection
      Collection: ["System.Threading.Tasks.TaskCanceledException", "response_ended"]
      Not found:  "System.Net.Http.HttpRequestException"
      Stack Trace:
        /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs(103,0): at System.Net.Http.Functional.Tests.HttpMetricsTestBase.VerifyRequestDuration(String instrumentName, Double measurement, KeyValuePair`2[] tags, Uri uri, Version protocolVersion, Nullable`1 statusCode, String method, String[] acceptedErrorTypes)
        /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs(79,0): at System.Net.Http.Functional.Tests.HttpMetricsTestBase.VerifyRequestDuration(Measurement`1 measurement, Uri uri, Version protocolVersion, Nullable`1 statusCode, String method, String[] acceptedErrorTypes)
        /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs(862,0): at System.Net.Http.Functional.Tests.HttpMetricsTest_Http11.<>c__DisplayClass5_0.<<RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded>b__0>d.MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(120,0): at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(90,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
        /_/src/libraries/Common/tests/System/Net/Http/GenericLoopbackServer.cs(44,0): at System.Net.Test.Common.LoopbackServerFactory.<>c__DisplayClass6_0.<<CreateClientAndServerAsync>b__0>d.MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs(107,0): at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
        /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs(846,0): at System.Net.Http.Functional.Tests.HttpMetricsTest_Http11.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded()
Author: buyaa-n
Assignees: -
Labels:

area-System.Net.Http, blocking-clean-ci, Known Build Error

Milestone: -

ghost avatar Jan 02 '24 17:01 ghost

This looks like #93627.

ManickaP avatar Jan 03 '24 06:01 ManickaP

@antonfirsov should we close this as a dupe, or do you want to keep both open?

ManickaP avatar Jan 03 '24 06:01 ManickaP

I closed the old one, this one has more info in the issue description.

antonfirsov avatar Jan 04 '24 15:01 antonfirsov

Does this have enough information to well, fix it?

AraHaan avatar Mar 25 '24 09:03 AraHaan

Failed in: runtime-coreclr crossgen2 20240528.1

Failed tests:

net9.0-osx-Release-x64-TestReadyToRun_Release-OSX.1200.Amd64.Open
    - System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded

Error message:

 Assert.Contains() Failure: Item not found in collection
Collection: ["System.Threading.Tasks.TaskCanceledException", "response_ended"]
Not found:  "System.Net.Http.HttpRequestException"

Stack trace:

   at System.Net.Http.Functional.Tests.HttpMetricsTestBase.VerifyRequestDuration(String instrumentName, Double measurement, KeyValuePair`2[] tags, Uri uri, Version protocolVersion, Nullable`1 statusCode, String method, String[] acceptedErrorTypes) in /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs:line 102
   at System.Net.Http.Functional.Tests.HttpMetricsTestBase.VerifyRequestDuration(Measurement`1 measurement, Uri uri, Version protocolVersion, Nullable`1 statusCode, String method, String[] acceptedErrorTypes) in /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs:line 79
   at System.Net.Http.Functional.Tests.HttpMetricsTest_Http11.<>c__DisplayClass5_0.<<RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded>b__0>d.MoveNext() in /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs:line 861
--- End of stack trace from previous location ---
   at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 120
--- End of stack trace from previous location ---
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 90
   at System.Net.Test.Common.LoopbackServerFactory.<>c__DisplayClass6_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in /_/src/libraries/Common/tests/System/Net/Http/GenericLoopbackServer.cs:line 44
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in /_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 107
   at System.Net.Http.Functional.Tests.HttpMetricsTest_Http11.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded() in /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs:line 846
--- End of stack trace from previous location ---
Queued Pipeline Pipeline_Configuration OS Arch Test Outcome Properties BuildReason
2024-02-02T23:01:22.324Z runtime-nativeaot-outerloop Release osx.1200.arm64.open arm64 System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded PassedOnRerun {"configuration":"Release","architecture":"arm64","BuildId":"551534","DefinitionId":"265","Project":"public","System.JobAttempt":"1","System.PhaseName":"build_osx_arm64_Release_NativeAOT_Libs","AzurePipelinesTestRunId":"13119248","runtimeFlavor":"coreclr","CollectionUri":"https://dev.azure.com/dnceng-public/","operatingSystem":"OSX.1200.ARM64.Open","BuildNumber":"20240202.3","System.StageAttempt":"1","System.StageName":"Build","DefinitionName":"runtime-nativeaot-outerloop","System.PhaseAttempt":"1","Reason":"Schedule","System.JobName":"__default","System.JobId":"81f19b99-bbe6-5a12-eb99-6b7b5bb4d46c"} Schedule
2024-02-02T21:33:28.326Z runtime-extra-platforms Release ubuntu.2204.amd64.open.rt x64 System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded PassedOnRerun {"configuration":"Release","architecture":"x64","System.StageAttempt":"1","CollectionUri":"https://dev.azure.com/dnceng-public/","System.PhaseAttempt":"1","System.JobAttempt":"1","DefinitionName":"runtime-extra-platforms","runtimeFlavor":"coreclr","System.StageName":"Build","AzurePipelinesTestRunId":"13116602","System.PhaseName":"libraries_test_run_release_coreclr_linux_x64_Release","BuildNumber":"20240202.3","DefinitionId":"154","operatingSystem":"(openSUSE.15.2.Amd64.Open)[email protected]/dotnet-buildtools/prereqs:opensuse-15.2-helix-amd64","BuildId":"551535","Reason":"Schedule","Project":"public","System.JobName":"__default","System.JobId":"52ad279b-b059-569b-870a-4d7b21a81589"} Schedule

v-wenyuxu avatar May 30 '24 01:05 v-wenyuxu

Failed in: runtime-coreclr crossgen2 20240602.1

Failed tests:

net9.0-osx-Release-x64-TestReadyToRun_Release-OSX.1200.Amd64.Open
    - System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded

Error message:

 Assert.Contains() Failure: Item not found in collection
Collection: ["System.Threading.Tasks.TaskCanceledException", "response_ended"]
Not found:  "System.Net.Http.HttpRequestException"

Stack trace:

   at System.Net.Http.Functional.Tests.HttpMetricsTestBase.VerifyRequestDuration(String instrumentName, Double measurement, KeyValuePair`2[] tags, Uri uri, Version protocolVersion, Nullable`1 statusCode, String method, String[] acceptedErrorTypes) in /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs:line 102
   at System.Net.Http.Functional.Tests.HttpMetricsTestBase.VerifyRequestDuration(Measurement`1 measurement, Uri uri, Version protocolVersion, Nullable`1 statusCode, String method, String[] acceptedErrorTypes) in /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs:line 79
   at System.Net.Http.Functional.Tests.HttpMetricsTest_Http11.<>c__DisplayClass5_0.<<RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded>b__0>d.MoveNext() in /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs:line 861
--- End of stack trace from previous location ---
   at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 120
--- End of stack trace from previous location ---
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 90
   at System.Net.Test.Common.LoopbackServerFactory.<>c__DisplayClass6_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in /_/src/libraries/Common/tests/System/Net/Http/GenericLoopbackServer.cs:line 44
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in /_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 107
   at System.Net.Http.Functional.Tests.HttpMetricsTest_Http11.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded() in /_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs:line 846
--- End of stack trace from previous location ---

v-wenyuxu avatar Jun 04 '24 01:06 v-wenyuxu

What is needed is a sort of xfail system for this so if it does fail it does not fail the entire test legs of the CI (sort of a try the test and if it fails it is as if it was skipped).

AraHaan avatar Jun 05 '24 00:06 AraHaan

@rokonec why did you close this? If it's fixed by any PR, please link it here, same for duplicates.

ManickaP avatar Jun 18 '24 08:06 ManickaP

@ManickaP Sorry, my bad. It was closed by mistake, I have added it to my personal project, and moved it to Done by mistake, I missed the fact that moving it from Done to InProgress do not reopen issues.

rokonec avatar Jun 18 '24 15:06 rokonec

removing blocking-clean-ci as it has not failed in 30 days

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

jeffschwMSFT avatar Jul 16 '24 15:07 jeffschwMSFT