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 failed: System.Net.NameResolution.Tests.GetHostEntryTest.DnsGetHostEntry_LocalHost_AddressFamilySpecific #47103

Closed
VincentBu opened this issue Jan 18, 2021 · 4 comments · Fixed by #47171
Labels
arch-x64 area-System.Net os-linux Linux OS (any supported distro)
Milestone

Comments

@VincentBu
Copy link
Contributor

Job: runtime-libraries-coreclr outerloop 20210117.2

Failed tests:

net6.0-Linux-Release-x64-CoreCLR_release-(Centos.8.Amd64.Open)Ubuntu.1604.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:centos-8-helix-20201229003624-c1bf759
        - System.Net.NameResolution.Tests.GetHostEntryTest.DnsGetHostEntry_LocalHost_AddressFamilySpecific(useAsync: True, host: \"localhost\", addressFamily: InterNetwork)
        - System.Net.NameResolution.Tests.GetHostAddressesTest.DnsGetHostAddresses_LocalHost_AddressFamilySpecific(useAsync: True, host: \"localhost\", addressFamily: InterNetwork)


Error message:

Assert.All() Failure: 1 out of 2 items in the collection did not pass.\n[0]: Item: ::1\n     Xunit.Sdk.EqualException: Assert.Equal() Failure\n     Expected: InterNetwork\n     Actual:   InterNetworkV6\n        at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer1 comparer) in C:\\Dev\\xunit\\xunit\\src\\xunit.assert\\Asserts\\EqualityAsserts.cs:line 40\n at Xunit.Assert.Equal[T](T expected, T actual) in C:\\Dev\\xunit\\xunit\\src\\xunit.assert\\Asserts\\EqualityAsserts.cs:line 24\n at System.Net.NameResolution.Tests.GetHostEntryTest.<>c__DisplayClass15_0.<DnsGetHostEntry_LocalHost_AddressFamilySpecific>b__0(IPAddress address) in /_/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs:line 242\n at Xunit.Assert.All[T](IEnumerable1 collection, Action`1 action) in C:\Dev\xunit\xunit\src\xunit.assert\Asserts\CollectionAsserts.cs:line 36

stack trace:
   at System.Net.NameResolution.Tests.GetHostEntryTest.DnsGetHostEntry_LocalHost_AddressFamilySpecific(Boolean useAsync, String host, AddressFamily addressFamily) in /_/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs:line 242
--- End of stack trace from previous location ---
@VincentBu VincentBu added os-linux Linux OS (any supported distro) arch-x64 labels Jan 18, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added area-System.Net untriaged New issue has not been triaged by the area owner labels Jan 18, 2021
@ghost
Copy link

ghost commented Jan 18, 2021

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

Issue Details

Job: runtime-libraries-coreclr outerloop 20210117.2

Failed tests:

net6.0-Linux-Release-x64-CoreCLR_release-(Centos.8.Amd64.Open)Ubuntu.1604.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:centos-8-helix-20201229003624-c1bf759
        - System.Net.NameResolution.Tests.GetHostEntryTest.DnsGetHostEntry_LocalHost_AddressFamilySpecific(useAsync: True, host: \"localhost\", addressFamily: InterNetwork)
        - System.Net.NameResolution.Tests.GetHostAddressesTest.DnsGetHostAddresses_LocalHost_AddressFamilySpecific(useAsync: True, host: \"localhost\", addressFamily: InterNetwork)


Error message:

Assert.All() Failure: 1 out of 2 items in the collection did not pass.\n[0]: Item: ::1\n     Xunit.Sdk.EqualException: Assert.Equal() Failure\n     Expected: InterNetwork\n     Actual:   InterNetworkV6\n        at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer1 comparer) in C:\\Dev\\xunit\\xunit\\src\\xunit.assert\\Asserts\\EqualityAsserts.cs:line 40\n at Xunit.Assert.Equal[T](T expected, T actual) in C:\\Dev\\xunit\\xunit\\src\\xunit.assert\\Asserts\\EqualityAsserts.cs:line 24\n at System.Net.NameResolution.Tests.GetHostEntryTest.<>c__DisplayClass15_0.<DnsGetHostEntry_LocalHost_AddressFamilySpecific>b__0(IPAddress address) in /_/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs:line 242\n at Xunit.Assert.All[T](IEnumerable1 collection, Action`1 action) in C:\Dev\xunit\xunit\src\xunit.assert\Asserts\CollectionAsserts.cs:line 36

stack trace:
   at System.Net.NameResolution.Tests.GetHostEntryTest.DnsGetHostEntry_LocalHost_AddressFamilySpecific(Boolean useAsync, String host, AddressFamily addressFamily) in /_/src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs:line 242
--- End of stack trace from previous location ---
Author: VincentBu
Assignees: -
Labels:

arch-x64, area-System.Net, os-linux, untriaged

Milestone: -

@wfurt
Copy link
Member

wfurt commented Jan 19, 2021

I'm wondering if the resolver can return different address family beyond hint

cc: : @gfoidl @scalablecory

@gfoidl
Copy link
Member

gfoidl commented Jan 19, 2021

I believe to hunted the 🐛 down. Need to verify that's the cause, then a PR will come.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jan 19, 2021
@gfoidl
Copy link
Member

gfoidl commented Jan 19, 2021

#47171 should (hopefully) fix the problem.

@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jan 22, 2021
@karelz karelz added this to the 6.0.0 milestone Jan 26, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Feb 25, 2021
@karelz karelz removed the untriaged New issue has not been triaged by the area owner label Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-System.Net os-linux Linux OS (any supported distro)
Projects
None yet
4 participants