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

os/user: TestGroupIds fails on windows-arm #28183

Closed
alexbrainman opened this issue Oct 13, 2018 · 3 comments
Closed

os/user: TestGroupIds fails on windows-arm #28183

alexbrainman opened this issue Oct 13, 2018 · 3 comments

Comments

@alexbrainman
Copy link
Member

Our windows-arm builder fails https://build.golang.org/log/024228bdaccb0c0f92bc505bdfc1f2287b9ef818 in

--- FAIL: TestGroupIds (0.02s)
    user_test.go:141: &{Uid:S-1-5-18 Gid:S-1-5-18 Username:NT AUTHORITY\SYSTEM Name:SYSTEM HomeDir:C:\Data\Users\System}.GroupIds(): The user name could not be found.
FAIL
FAIL	os/user	0.614s

I looked at os/user.TestGroupIds windows implementation.

It appears that os/user.Current() returns NT AUTHORITY\SYSTEM. @jordanrh1 why? I expect it return some real user. Are you running builder as a service or something?

Also GroupIds() function fails with The user name could not be found. error. This is too general error to guess what happened. @jordanrh1 do you mind debugging to see what happened there?

Thank you.

Alex

@jordanrh1
Copy link
Contributor

Hi Alex,

The builder currently runs as System account. I'll look into running it under a normal user account.

I'll debug the GroupIds function. Could be related to running as System account.

Jordan

@jordanrh1
Copy link
Contributor

I restarted the builder under DefaultAccount (a standard user account), and the os/user tests are now passing :)

ok  	os/user	0.655s

@alexbrainman
Copy link
Member Author

I restarted the builder under DefaultAccount (a standard user account), and the os/user tests are now passing :)

ok  	os/user	0.655s

Indeed they are. Thank you very much. Closing this now.

Alex

@golang golang locked and limited conversation to collaborators Oct 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants