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 failure: System.Net.Sockets.Tests.DualModeConnectAsync / DualModeConnectAsync_Static_DnsEndPointToHost_Helper #22225

Open
danmoseley opened this issue Jun 10, 2017 · 21 comments
Labels
area-System.Net.Sockets disabled-test The test is disabled in source code against the issue test-bug Problem in test source code (most likely) test-run-core Test failures in .NET Core test runs
Milestone

Comments

@danmoseley
Copy link
Member

Types of failures

Timed out while waiting for connection
Expected: True
Actual:   False
at System.Net.Sockets.Tests.DualModeConnectAsync.DualModeConnectAsync_Static_DnsEndPointToHost_Helper(IPAddress listenOn, Boolean dualModeServer) in /root/corefx-1213655/src/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs:line 610

History of failures

Day Build OS
2017/9/14 20170914.01 OSX10.12
2017/10/29 20171029.01 OSX10.12
2017/12/11 20171211.05 Fedora25
3/31 20180331.05 OSX10.12

Original report

https://ci.dot.net/job/dotnet_corefx/job/master/job/osx10.12_release_prtest/4505/consoleFull#18036880242d31e50d-1517-49fc-92b3-2ca637122019

19:07:03         Timed out while waiting for connection
19:07:03         Expected: True
19:07:03         Actual:   False
19:07:03         Stack Trace:
19:07:03   Using as the test runtime folder.
19:07:03   ls: /cores: No such file or directory
19:07:03   Running tests... Start time: 19:07:03
19:07:03   Commands:
19:07:03   python DumplingHelper.py install_dumpling
19:07:03   __TIMESTAMP=`python DumplingHelper.py get_timestamp`
19:07:03   chmod +x /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx10.12_release_prtest/bin/testhost/netcoreapp-OSX-Release-x64//dotnet
19:07:03   /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx10.12_release_prtest/bin/testhost/netcoreapp-OSX-Release-x64//dotnet xunit.console.netcore.exe System.Text.Encoding.CodePages.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonosxtests  -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
19:07:03   python DumplingHelper.py collect_dump $\ `pwd`  System.Text.Encoding.CodePages.Tests /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx10.12_release_prtest/bin/runtime/netcoreapp-OSX-Release-x64/,/Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx10.12_release_prtest/bin/AnyOS.AnyCPU.Release/System.Text.Encoding.CodePages.Tests/netstandard/
19:07:03   /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx10.12_release_prtest/bin/AnyOS.AnyCPU.Release/System.Text.Encoding.CodePages.Tests/netstandard /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx10.12_release_prtest/src/System.Text.Encoding.CodePages/tests
19:07:03            /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx10.12_release_prtest/src/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs(654,0): at System.Net.Sockets.Tests.DualModeConnectAsync.DualModeConnectAsync_Static_DnsEndPointToHost_Helper(IPAddress listenOn, Boolean dualModeServer)
19:07:03      System.Net.Sockets.Tests.DualModeConnectionlessSendTo.SendToV4IPEndPointToV4Host_Success [FAIL]
19:07:03         System.TimeoutException : The operation has timed out.
19:07:03         Stack Trace:
19:07:03            /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx10.12_release_prtest/src/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs(1151,0): at System.Net.Sockets.Tests.DualModeConnectionlessSendTo.DualModeSendTo_IPEndPointToHost_Helper(IPAddress connectTo, IPAddress listenOn, Boolean dualModeServer, Boolean expectedToTimeout)
19:07:03      System.Net.Sockets.Tests.DualModeConnectionlessBeginSendTo.BeginSendToV6IPEndPointToV6Host_Success [FAIL]
19:07:03         System.TimeoutException : The operation has timed out.
19:07:03         Stack Trace:
19:07:03            /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx10.12_release_prtest/src/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs(1252,0): at System.Net.Sockets.Tests.DualModeConnectionlessBeginSendTo.DualModeBeginSendTo_EndPointToHost_Helper(IPAddress connectTo, IPAddress listenOn, Boolean dualModeServer, Boolean expectedToTimeout)
19:07:03   Using as the test runtime fold
@karelz karelz changed the title DualModeConnectAsync_Static_DnsEndPointToHost_Helper(listenOn: 127.0.0.1, dualModeServer: False) timed out Test failure: System.Net.Sockets.Tests.DualModeConnectAsync / DualModeConnectAsync_Static_DnsEndPointToHost_Helper Dec 29, 2017
@wfurt wfurt self-assigned this Aug 13, 2018
@wfurt
Copy link
Member

wfurt commented Aug 13, 2018

This failed once in last four month (5/17) I'm not sure if it is worth of keeping it open @karelz

@wfurt
Copy link
Member

wfurt commented Jan 8, 2019

it did not fail in last three months. It seems like old intermittent infrastructure problem.

@wfurt wfurt closed this as completed Jan 8, 2019
@danmoseley
Copy link
Member Author

Failed again, now flaky on UWP (or at least, failed once)


Error message
Timed out while waiting for connection\r\nExpected: True\r\nActual: False

Stack trace
   at System.Net.Sockets.Tests.DualModeConnectAsync.DualModeConnectAsync_Static_DnsEndPointToHost_Helper(IPAddress listenOn, Boolean dualModeServer) in /_/src/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs:line 613

@ahsonkhan
Copy link
Member

Failed again here dotnet/corefx#40303 for Windows Build UWP_CoreCLR_x64_Debug:
https://helix.dot.net/api/2019-06-17/jobs/21c7efa2-5a7f-49bf-9c9b-9f3d793613e3/workitems/System.Net.Sockets.Tests/console

Starting:    System.Net.Sockets.Tests (parallel test collections = on, max threads = 2)
    System.Net.Sockets.Tests.DualModeConnectAsync.DualModeConnectAsync_DnsEndPointToHost_Helper(listenOn: 127.0.0.1, dualModeServer: False) [FAIL]
      Timed out while waiting for connection
      Expected: True
      Actual:   False
      Stack Trace:
        /_/src/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs(588,0): at System.Net.Sockets.Tests.DualModeConnectAsync.DualModeConnectAsync_DnsEndPointToHost_Helper(IPAddress listenOn, Boolean dualModeServer)
  Finished:    System.Net.Sockets.Tests

@AriNuer
Copy link

AriNuer commented Aug 20, 2019

Test System.Net.Sockets.Tests.DualModeConnectAsync.DualModeConnectAsync_Static_DnsEndPointToHost_Helper failed again:


Error message
Timed out while waiting for connection\r\nExpected: True\r\nActual: False

Stack trace
   at System.Net.Sockets.Tests.DualModeConnectAsync.DualModeConnectAsync_Static_DnsEndPointToHost_Helper(IPAddress listenOn, Boolean dualModeServer) in /_/src/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs:line 613

Details:
https://dnceng.visualstudio.com/public/_build/results?buildId=316080&view=ms.vss-test-web.build-test-results-tab&runId=9143850&resultId=148005&paneView=debug

@ViktorHofer ViktorHofer reopened this Aug 29, 2019
@ViktorHofer
Copy link
Member

Failed again but this time on netcoreapp: https://dnceng.visualstudio.com/public/_build/results?buildId=334906&view=ms.vss-test-web.build-test-results-tab&runId=9862974&resultId=177921&paneView=debug

Configuration: netcoreapp-Windows_NT-Release-x86-Windows.10.Amd64.Client19H1.Open

Timed out while waiting for connection\r\nExpected: True\r\nActual: False

   at System.Net.Sockets.Tests.DualModeConnectAsync.DualModeConnectAsync_Static_DnsEndPointToHost_Helper(IPAddress listenOn, Boolean dualModeServer) in /_/src/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs:line 614

@ViktorHofer
Copy link
Member

@davidsh
Copy link
Contributor

davidsh commented Sep 18, 2019

@wfurt
Copy link
Member

wfurt commented Sep 18, 2019

It is disabled on UWP but I'm not sure if the run was. It seems like 32bit windows from brief look.

@davidsh
Copy link
Contributor

davidsh commented Sep 18, 2019

@wfurt Can you take a look?

@wfurt
Copy link
Member

wfurt commented Sep 19, 2019

I can check if I can reproduce it locally. If not, we will need some way how to re-create CI environment.

@ViktorHofer
Copy link
Member

This happened again on netcoreapp-Windows_NT-Release-x86-Windows.10.Amd64.Client19H1.Open: https://dnceng.visualstudio.com/public/_build/results?buildId=367004&view=ms.vss-test-web.build-test-results-tab&runId=11106936&paneView=debug

Can somebody please take another look? RetryHelper / LoopbackServer might help here?

@ViktorHofer
Copy link
Member

cc @davidsh @wfurt @eiriktsarpalis happened again in master: https://dnceng.visualstudio.com/public/_build/results?buildId=371143&view=ms.vss-test-web.build-test-results-tab&runId=11295054&resultId=176777&paneView=debug

Configuration: netcoreapp-Windows_NT-Release-x86-Windows.10.Amd64.Client19H1.Open

Timed out while waiting for connection\r\nExpected: True\r\nActual: False

   at System.Net.Sockets.Tests.DualModeConnectAsync.DualModeConnectAsync_Static_DnsEndPointToHost_Helper(IPAddress listenOn, Boolean dualModeServer) in /_/src/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs:line 614

@ViktorHofer
Copy link
Member

Any idea why DualModeConnectAsync_Static_DnsEndPointToHost_Helper is timing out so often?

@davidsh
Copy link
Contributor

davidsh commented Oct 17, 2019

This issue was specific to the UAP implementation of the networking stack which had a different implementation for things like HTTP and WebSockets.

As of PR dotnet/corefx#41759, we no longer build the separate implementation for the UAP platform. So, this issue can't occur anymore with .NET 5 because we now will be using the same .NET Core implementation as on Windows, Linux, Mac.

@davidsh davidsh closed this as completed Oct 17, 2019
@ViktorHofer ViktorHofer reopened this Oct 17, 2019
@davidsh
Copy link
Contributor

davidsh commented Oct 17, 2019

@wfurt Another test failure in Sockets to investigate.

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 5.0 milestone Jan 31, 2020
@karelz karelz modified the milestones: 5.0, Future May 7, 2020
@VincentBu
Copy link
Contributor

Similar test failed in runtime-libraries-coreclr outerloop 20210531.3

Failed test:

net6.0-Linux-Release-arm-CoreCLR_release-(Debian.9.Arm32.Open)[email protected]/dotnet-buildtools/prereqs:debian-9-helix-arm32v7-bfcd90a-20200121150037

- System.Net.Sockets.Tests.DualModeConnectionlessReceiveFromAsync.ReceiveFromAsyncV6BoundToAnyV6_Success

Error message:

System.TimeoutException : The operation has timed out.


Stack trace
   at System.Net.Sockets.Tests.DualModeConnectionlessReceiveFromAsync.ReceiveFromAsync_Helper(IPAddress listenOn, IPAddress connectTo, Boolean expectedToTimeout) in /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs:line 1764
   at System.Net.Sockets.Tests.DualModeConnectionlessReceiveFromAsync.ReceiveFromAsyncV6BoundToAnyV6_Success() in /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs:line 1706

@wfurt
Copy link
Member

wfurt commented Nov 30, 2022

triage: this is essentially dup of #1481. We should make DualMode tests more reliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Net.Sockets disabled-test The test is disabled in source code against the issue test-bug Problem in test source code (most likely) test-run-core Test failures in .NET Core test runs
Projects
None yet
Development

No branches or pull requests