Repository navigation
Closed
Labels
area-System.Netos-macosmacOS aka OSXmacOS aka OSXtest-run-coreTest failures in .NET Core test runsTest failures in .NET Core test runs
Milestone
Description
Unhandled Exception of Type System.Net.Internals.SocketExceptionFactory+ExtendedSocketException
System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Connection refused 127.0.0.1:1191
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) in /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx-TGroup_netcoreapp+CGroup_Debug+AGroup_x64+TestOuter_false_prtest/src/System.Net.Sockets/src/System/Net/Sockets/Socket.cs:line 4592
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) in /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx-TGroup_netcoreapp+CGroup_Debug+AGroup_x64+TestOuter_false_prtest/src/System.Net.Sockets/src/System/Net/Sockets/Socket.cs:line 824
at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port) in /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx-TGroup_netcoreapp+CGroup_Debug+AGroup_x64+TestOuter_false_prtest/src/System.Net.Sockets/src/System/Net/Sockets/Socket.cs:line 929
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port) in /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx-TGroup_netcoreapp+CGroup_Debug+AGroup_x64+TestOuter_false_prtest/src/System.Net.Sockets/src/System/Net/Sockets/Socket.cs:line 940
at System.Net.Sockets.Socket.Connect(String host, Int32 port) in /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx-TGroup_netcoreapp+CGroup_Debug+AGroup_x64+TestOuter_false_prtest/src/System.Net.Sockets/src/System/Net/Sockets/Socket.cs:line 889
at System.Net.Tests.HttpListenerFactory.GetConnectedSocket() in /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx-TGroup_netcoreapp+CGroup_Debug+AGroup_x64+TestOuter_false_prtest/src/System.Net.HttpListener/tests/HttpListenerFactory.cs:line 155
at System.Net.Tests.HttpListenerResponseTestBase..ctor() in /Users/dotnet-bot/j/workspace/dotnet_corefx/master/osx-TGroup_netcoreapp+CGroup_Debug+AGroup_x64+TestOuter_false_prtest/src/System.Net.HttpListener/tests/HttpListenerResponseTests.cs:line 22
at System.Net.Tests.HttpListenerResponseCookiesTests..ctor()
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions)
Metadata
Metadata
Assignees
Labels
area-System.Netos-macosmacOS aka OSXmacOS aka OSXtest-run-coreTest failures in .NET Core test runsTest failures in .NET Core test runs
Activity
davidsh commentedon Sep 11, 2017
This looks like a networking problem on Mac OS where it is refusing to allow listening on a loopback port.
mellinoe commentedon Sep 12, 2017
Similar error on a different test case on OSX:
https://mc.dot.net/#/user/mellinoe/pr~2Fjenkins~2Fdotnet~2Fcorefx~2Fmaster~2F/test~2Ffunctional~2Fcli~2F/97aec401633ef56a56542597bc0b40460cc24464/workItem/System.Net.HttpListener.Tests/analysis/xunit/System.Net.Tests.HttpListenerRequestTests~2FCookies_GetProperty_ReturnsExpected(cookieString:%20%5C%22cookie:%20name=value,name=value%5C%22,%20expected:%20%5Bname=value%5D)
KristinXie1 commentedon Sep 13, 2017
The following test failed with same issue, detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170913.01/workItem/System.Net.HttpListener.Tests/analysis/xunit/System.Net.Tests.HttpListenerResponseHeadersTests~2FStatusDescription_SetNull_ThrowsArgumentNullException
The test
System.Net.Tests.HttpListenerResponseHeadersTests/StatusDescription_SetNull_ThrowsArgumentNullExceptionhas failed.System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Connection refused 127.0.0.1:1200
Build : Master - 20170913.01 (Core Tests)
Failing configurations:
mellinoe commentedon Sep 13, 2017
Hit another failure: https://mc.dot.net/#/user/mellinoe/pr~2Fjenkins~2Fdotnet~2Fcorefx~2Fmaster~2F/test~2Ffunctional~2Fcli~2F/c188b2e869c18c912d1b95662af20512b77cbb22/workItem/System.Net.HttpListener.Tests/analysis/xunit/System.Net.Tests.HttpListenerRequestTests~2FIsWebSocketRequest_GetProperty_ReturnsExpected(webSocketString:%20%5C%22Connection:%20Upgrade%5C%5Cr%5C%5CnUpgrade:%20websocket%5C%22,%20expected:%20True)
danmoseley commentedon Sep 15, 2017
Broke CI again. https://mc.dot.net/#/user/pentp/pr~2Fjenkins~2Fdotnet~2Fcorefx~2Fmaster~2F/test~2Ffunctional~2Fcli~2F/3692488cefc099535d257116308f973d7cc6e263/workItem/System.Net.HttpListener.Tests/analysis/xunit/System.Net.Tests.HttpListenerRequestTests~2FUserHostName_GetProperty_ReturnsExpected
@Priya91 any idea why this specific test is getting so unlucky? Although I also see StatusDescription_SetNull_ThrowsArgumentNullException above. What is flaky about localhost on OSX and what can we do to stop it breaking CI?
KristinXie1 commentedon Oct 20, 2017
This issue is repro in Master branch - Core Tests, detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20171020.01/workItem/System.Net.HttpListener.Tests/analysis/xunit/System.Net.Tests.HttpListenerResponseHeadersTests~2FStatusDescription_SetCustom_Success(statusDescription:%20%5C%22%20%20StatusDescription%20%20%5C%22,%20expectedStatusDescription:%20%5C%22%20%20StatusDescription%20%20%5C%22,%20expect...
KristinXie1 commentedon Oct 30, 2017
The following test failed with same issue: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20171030.01/workItem/System.Net.HttpListener.Tests/analysis/xunit/System.Net.Tests.HttpListenerResponseHeadersTests~2FAppendHeader_NullOrEmptyName_ThrowsArgumentNullException(name:%20%5C%22%5C%22)
The test
System.Net.Tests.HttpListenerResponseHeadersTests/AppendHeader_NullOrEmptyName_ThrowsArgumentNullException(name: \"\")has failed.System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Connection refused 127.0.0.1:1210
karelz commentedon Dec 24, 2017
Original test
Cookies_GetSet_ReturnsExpecteddidn't fail in official Helix runs history since 2017/5.General Mac problems with "Connection refused" are tracked by #22287.
Duplicate of #22287