You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test failure: System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Cancellation_Test / GetAsync_CancelDuringResponseBodyReceived_Buffered_TaskCanceledQuickly #25760
area-System.Net.Httpdisabled-testThe test is disabled in source code against the issuein-prThere is an active PR which will close this issue when it is mergedtest-bugProblem in test source code (most likely)test-run-coreTest failures in .NET Core test runs
Test System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Cancellation_Test.GetAsync_CancelDuringResponseBodyReceived_Buffered_TaskCanceledQuickly has failed.
MESSAGE:
Elapsed time 00:00:31.6655081 should be less than 30 seconds, was 31.6655081\r\nExpected: True\r\nActual: False
STACK TRACE:
at System.Net.Http.Functional.Tests.HttpClientHandler_Cancellation_Test.ValidateClientCancellationAsync(Func`1 clientBodyAsync) in D:\j\workspace\outerloop_net---92764178\src\System.Net.Http\tests\FunctionalTests\HttpClientHandlerTest.Cancellation.cs:line 372 at System.Net.Http.Functional.Tests.HttpClientHandler_Cancellation_Test.<>c__DisplayClass2_2.<<GetAsync_CancelDuringResponseBodyReceived_Buffered_TaskCanceledQuickly>b__0>d.MoveNext() in D:\j\workspace\outerloop_net---92764178\src\System.Net.Http\tests\FunctionalTests\HttpClientHandlerTest.Cancellation.cs:line 128 --- End of stack trace from previous location where exception was thrown --- at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in D:\j\workspace\outerloop_net---92764178\src\Common\tests\System\Net\Http\LoopbackServer.cs:line 67 at System.Net.Http.Functional.Tests.HttpClientHandler_Cancellation_Test.GetAsync_CancelDuringResponseBodyReceived_Buffered_TaskCanceledQuickly(Boolean chunkedTransfer, Boolean connectionClose, CancellationMode mode) in D:\j\workspace\outerloop_net---92764178\src\System.Net.Http\tests\FunctionalTests\HttpClientHandlerTest.Cancellation.cs:line 110 --- End of stack trace from previous location where exception was thrown ---
changed the title [-]Test System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Cancellation_Test.GetAsync_CancelDuringResponseBodyReceived_Buffered_TaskCanceledQuickly failed in CI.[/-][+]Test failure: System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Cancellation_Test / GetAsync_CancelDuringResponseBodyReceived_Buffered_TaskCanceledQuickly[/+]on Apr 4, 2018
I ran this test locally in a loop 100+ times and everything completed successfully. Can the issue be fixed already? Or, do we believe it happens only on the cloud?
@wfurt used to run entire test suite in a loop on his machine. Sometimes other tests may interact. If that does not hir the problem, it was usually good sign to try to re-enable the test and observe if it fails in CI.
This also may be dependent on HW configuration e.g. CPU count and others. Maybe we can move them to OuterLoop for now so we get some CI runs while keeping this open.
Also, it seems like old failures were on Win 7/8 queue. What OS did you use @alnikola ?
While back, we had issues when running tests on single-core CPU.
Ather option I see is to wrap the test(s) with timer and Assert() on failures.
That should produce core file now, and we may be able to diagnose if this happens ever again.
I ran it on Win 10. Today, I also artificially slowed down the test execution by binding it to one core with "Idle" priority and running another CPU-consuming process on the same core, but didn't get any failures either. So, I will follow the above suggestion to wrap the test with a time and enable it.
area-System.Net.Httpdisabled-testThe test is disabled in source code against the issuein-prThere is an active PR which will close this issue when it is mergedtest-bugProblem in test source code (most likely)test-run-coreTest failures in .NET Core test runs
Activity
[-]Test System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Cancellation_Test.GetAsync_CancelDuringResponseBodyReceived_Buffered_TaskCanceledQuickly failed in CI.[/-][+]Test failure: System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Cancellation_Test / GetAsync_CancelDuringResponseBodyReceived_Buffered_TaskCanceledQuickly[/+]ViktorHofer commentedon Oct 20, 2019
Timing out again: https://dnceng.visualstudio.com/public/_build/results?buildId=394779&view=ms.vss-test-web.build-test-results-tab&runId=12301110&resultId=178961&paneView=attachments
@stephentoub @davidsh
ahsonkhan commentedon Oct 21, 2019
Time out again in dotnet/corefx#41845
netcoreapp-Windows_NT-Debug-x64-Windows.81.Amd64.Open
https://helix.dot.net/api/2019-06-17/jobs/f1180365-05b8-4a6e-af0e-6703f5088588/workitems/System.Net.Http.Functional.Tests/console
alnikola commentedon Feb 7, 2020
I ran this test locally in a loop 100+ times and everything completed successfully. Can the issue be fixed already? Or, do we believe it happens only on the cloud?
stephentoub commentedon Feb 7, 2020
I don't know if the issue has been fixed, but often these sporadic failures only manifest under load, and even then only sometimes.
karelz commentedon Feb 8, 2020
@wfurt used to run entire test suite in a loop on his machine. Sometimes other tests may interact. If that does not hir the problem, it was usually good sign to try to re-enable the test and observe if it fails in CI.
wfurt commentedon Feb 9, 2020
This also may be dependent on HW configuration e.g. CPU count and others. Maybe we can move them to OuterLoop for now so we get some CI runs while keeping this open.
Also, it seems like old failures were on Win 7/8 queue. What OS did you use @alnikola ?
While back, we had issues when running tests on single-core CPU.
Ather option I see is to wrap the test(s) with timer and Assert() on failures.
That should produce core file now, and we may be able to diagnose if this happens ever again.
alnikola commentedon Feb 10, 2020
I ran it on Win 10. Today, I also artificially slowed down the test execution by binding it to one core with "Idle" priority and running another CPU-consuming process on the same core, but didn't get any failures either. So, I will follow the above suggestion to wrap the test with a time and enable it.
ManickaP commentedon Sep 20, 2023
Triage: either fix the test, replace it with something simpler, don't run it in CI or get rid off it.
Re-enable GetAsync_CancelDuringResponseBodyReceived_Buffered test
[HTTP] Re-enable GetAsync_CancelDuringResponseBodyReceived_Buffered t…
[HTTP] Re-enable GetAsync_CancelDuringResponseBodyReceived_Buffered t…