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

Test: System.Net.Http.WinHttpHandlerFunctional.Tests.WinHttpHandlerTest/SendAsync_SlowServerAndCancel_ThrowsTaskCanceledException failed with "Xunit.Sdk.ThrowsException" #21631

Closed
ghost opened this issue May 11, 2017 · 6 comments
Labels
area-System.Net.Http test-bug Problem in test source code (most likely) test-run-core Test failures in .NET Core test runs test-run-desktop Test failures in .NET Framework "Desktop" test runs (running CoreFX test assets)
Milestone

Comments

@ghost
Copy link

ghost commented May 11, 2017

Opened on behalf of @JiayiLi1

The test System.Net.Http.WinHttpHandlerFunctional.Tests.WinHttpHandlerTest/SendAsync_SlowServerAndCancel_ThrowsTaskCanceledException has failed.

Assert.Throws() Failure\r
Expected: typeof(System.AggregateException)\r
Actual: (No exception was thrown)

    Stack Trace:

       at System.Net.Http.WinHttpHandlerFunctional.Tests.WinHttpHandlerTest.<SendAsync_SlowServerAndCancel_ThrowsTaskCanceledException>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Build : Master - 20170510.02 (Portable Core Tests)
Failing configurations:

  • Windows.10.Amd64-x64
    • Release

Detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fportable~2Fcli~2F/build/20170510.02/workItem/System.Net.Http.WinHttpHandler.Functional.Tests/analysis/xunit/System.Net.Http.WinHttpHandlerFunctional.Tests.WinHttpHandlerTest~2FSendAsync_SlowServerAndCancel_ThrowsTaskCanceledException

@davidsh
Copy link
Contributor

davidsh commented May 11, 2017

This should have been disabled (related issue #20675) similar to test:

        [ActiveIssue(17234)]
        [OuterLoop] // TODO: Issue dotnet/runtime#18406
        [Fact]
        [OuterLoop]
        public void SendAsync_SlowServerRespondsAfterDefaultReceiveTimeout_ThrowsHttpRequestException()
        {

And needs to use a loopback server in order to better control "slow server" behavior.

@KristinXie1
Copy link

The test System.Net.Http.WinHttpHandlerFunctional.Tests.WinHttpHandlerTest/SendAsync_SlowServerAndCancel_ThrowsTaskCanceledException failed again.

Assert.Throws() Failure\r
Expected: typeof(System.AggregateException)\r
Actual: (No exception was thrown)

    Stack Trace:

       at System.Net.Http.WinHttpHandlerFunctional.Tests.WinHttpHandlerTest.<SendAsync_SlowServerAndCancel_ThrowsTaskCanceledException>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Build : 2.0.0 - 20170822.02 (Core Tests)
Failing configurations:

  • Windows.81.Amd64-x86
    • Release

Detail: https://mc.dot.net/#/product/netcore/200/source/official~2Fcorefx~2Frelease~2F2.0.0-msrc~2F/type/test~2Ffunctional~2Fcli~2F/build/20170822.02/workItem/System.Net.Http.WinHttpHandler.Functional.Tests/analysis/xunit/System.Net.Http.WinHttpHandlerFunctional.Tests.WinHttpHandlerTest~2FSendAsync_SlowServerAndCancel_ThrowsTaskCanceledException

@karelz
Copy link
Member

karelz commented Dec 22, 2017

Seems to be gone. Official Helix runs have only 3 failures in 2017/8, then nothing:

Day Build OS
8/8 20170808.02 Win8.1
8/23 20170823.04 Win10
8/23 20170823.04 Win10

Closing. Please reopen if it happens again.

@karelz karelz closed this as completed Dec 22, 2017
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 2.1.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 23, 2020
@antonfirsov
Copy link
Member

Happened again in #47230:
https://dev.azure.com/dnceng/public/_build/results?buildId=961825&view=ms.vss-test-web.build-test-results-tab&runId=30306908&resultId=103650&paneView=debug

Single occurence according to kusto, very likely CI overload, not reopenig.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Http test-bug Problem in test source code (most likely) test-run-core Test failures in .NET Core test runs test-run-desktop Test failures in .NET Framework "Desktop" test runs (running CoreFX test assets)
Projects
None yet
Development

No branches or pull requests

6 participants