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.Diagnostics.Tests.ProcessTests/GetProcesses_RemoteMachinePath_ReturnsExpected #29339

Closed
ghost opened this issue Apr 22, 2019 · 5 comments
Assignees
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Apr 22, 2019

Opened on behalf of @AriNuer

The test System.Diagnostics.Tests.ProcessTests/GetProcesses_RemoteMachinePath_ReturnsExpected has failed.

Failure Message:

System.Security.Authentication.AuthenticationException : The user name or password is incorrect.\r
---- System.DirectoryServices.DirectoryServicesCOMException : The user name or password is incorrect.

Stack Trace:

   at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName) in F:\workspace\_work\1\s\src\System.DirectoryServices\src\System\DirectoryServices\ActiveDirectory\PropertyManager.cs:line 155
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context) in F:\workspace\_work\1\s\src\System.DirectoryServices\src\System\DirectoryServices\ActiveDirectory\Domain.cs:line 110
   at System.Diagnostics.Tests.ProcessTests.GetProcesses_RemoteMachinePath_ReturnsExpected() in F:\workspace\_work\1\s\src\System.Diagnostics.Process\tests\ProcessTests.cs:line 1069
----- Inner Stack Trace -----
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) in F:\workspace\_work\1\s\src\System.DirectoryServices\src\System\DirectoryServices\DirectoryEntry.cs:line 526
   at System.DirectoryServices.PropertyValueCollection.PopulateList() in F:\workspace\_work\1\s\src\System.DirectoryServices\src\System\DirectoryServices\PropertyValueCollection.cs:line 189
   at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName) in F:\workspace\_work\1\s\src\System.DirectoryServices\src\System\DirectoryServices\PropertyValueCollection.cs:line 33
   at System.DirectoryServices.PropertyCollection.get_Item(String propertyName) in F:\workspace\_work\1\s\src\System.DirectoryServices\src\System\DirectoryServices\PropertyCollection.cs:line 42
   at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName) in F:\workspace\_work\1\s\src\System.DirectoryServices\src\System\DirectoryServices\ActiveDirectory\PropertyManager.cs:line 141

Build : 3.0 - 20190421.5 (Core Tests)
Failing configurations:

  • Windows.10.Arm64-arm64
    • Release

Details:
https://mc.dot.net/#/product/netcore/30/source/official~2Fdotnet~2Fcorefx~2Frefs~2Fheads~2Fmaster/type/test~2Ffunctional~2Fcli~2F/build/20190421.5/workItem/System.Diagnostics.Process.Tests/analysis/xunit/System.Diagnostics.Tests.ProcessTests~2FGetProcesses_RemoteMachinePath_ReturnsExpected

@karelz
Copy link
Member

karelz commented Apr 24, 2019

@AriNuer can you please add area labels to test failures? Thanks!

@wtgodbe
Copy link
Member

wtgodbe commented May 16, 2019

Looks like I added this test back in 2017, so I'll take this one 😄

@wtgodbe wtgodbe self-assigned this May 16, 2019
@wtgodbe
Copy link
Member

wtgodbe commented May 16, 2019

This issue isn't with Process, but with System.DirectoryServices, and only on Arm64. We see the same failure in FindByTransportType_ForestNoDomainAssociatedWithName_ThrowsActiveDirectoryOperationException_NoUap and GetForest_NonNullNameAndNotRootedDomain_NonUap(type: Forest, name: "\0".

The first is in a call to ActiveDirectoryInterSiteTransport.FindByTransportType: https://github.com/dotnet/corefx/blob/374833115e24d6384da62fa631acde2e65101eb8/src/System.DirectoryServices/tests/System/DirectoryServices/ActiveDirectory/ActiveDirectoryInterSiteTransportTests.cs#L55

The second is in a call to Forest.GetForest() : https://github.com/dotnet/corefx/blob/374833115e24d6384da62fa631acde2e65101eb8/src/System.DirectoryServices/tests/System/DirectoryServices/ActiveDirectory/ForestTests.cs#L62.

All three instances of this (that I've seen) are hitting the exception in PropertyManager.GetPropertyValue(): https://github.com/dotnet/corefx/blob/374833115e24d6384da62fa631acde2e65101eb8/src/System.DirectoryServices/src/System/DirectoryServices/ActiveDirectory/PropertyManager.cs#L133-L159

It just so happens that this test in System.Diagnostics.Process is the only place in the repo where we call GetComputerDomain(). Moving this to DirectoryServices.

@wtgodbe
Copy link
Member

wtgodbe commented May 16, 2019

Same issue as https://github.com/dotnet/corefx/issues/35940

@karelz
Copy link
Member

karelz commented May 16, 2019

Duplicate of #28925

@karelz karelz closed this as completed May 16, 2019
@msftgits msftgits transferred this issue from dotnet/corefx Feb 1, 2020
@msftgits msftgits added this to the 3.0 milestone Feb 1, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants