Skip to content

x/build: we should run at least one windows builder as each of Administrator and non-Administrator #23294

@alexbrainman

Description

@alexbrainman

Some tests do not run unless they are run by Administrator.

Compare normal user runs:

c:\>go test -v -short os | grep -i skip
--- SKIP: TestStatError (0.00s)
        testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestReaddirNValues (0.00s)
        os_test.go:515: test.short; skipping
--- SKIP: TestReaddirStatFailures (0.00s)
        os_test.go:601: skipping test on windows
--- SKIP: TestSymlink (0.00s)
        testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestLongSymlink (0.00s)
        testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestLargeWriteToConsole (0.00s)
        os_test.go:1817: skipping console-flooding test; enable with -large_write
--- SKIP: TestStatRelativeSymlink (0.00s)
        testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestSleep (0.00s)
        os_test.go:2072: Skipping in short mode
--- SKIP: TestRemoveAllRace (0.00s)
        os_test.go:2182: skipping on windows
--- SKIP: TestPipeThreads (0.00s)
        os_test.go:2217: skipping on Windows; issue 19098
--- SKIP: TestDirectorySymbolicLink (0.03s)
        os_windows_test.go:397: skipping some tests, could not enable "SeCreateSymbolicLinkPrivilege": Not all privileges or groups referenced are assigned to the caller.
--- SKIP: TestNetworkSymbolicLink (0.00s)
        testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestShareNotExistError (0.00s)
        os_windows_test.go:547: slow test that uses network; skipping
--- SKIP: TestStatSymlinkLoop (0.00s)
        testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestRemoveAllLarge (0.00s)
        path_test.go:176: skipping in short mode
--- SKIP: TestMkdirAllWithSymlink (0.00s)
        testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestMkdirAllAtSlash (0.00s)
        path_test.go:234: skipping on windows

c:\>

to Administrator runs:

c:\>go test -v -short os | grep -i skip
--- SKIP: TestReaddirNValues (0.00s)
        os_test.go:515: test.short; skipping
--- SKIP: TestReaddirStatFailures (0.00s)
        os_test.go:601: skipping test on windows
--- SKIP: TestLargeWriteToConsole (0.00s)
        os_test.go:1817: skipping console-flooding test; enable with -large_write
--- SKIP: TestSleep (0.00s)
        os_test.go:2072: Skipping in short mode
--- SKIP: TestRemoveAllRace (0.00s)
        os_test.go:2182: skipping on windows
--- SKIP: TestPipeThreads (0.00s)
        os_test.go:2217: skipping on Windows; issue 19098
--- SKIP: TestShareNotExistError (0.00s)
        os_windows_test.go:547: slow test that uses network; skipping
--- SKIP: TestRemoveAllLarge (0.00s)
        path_test.go:176: skipping in short mode
--- SKIP: TestMkdirAllAtSlash (0.00s)
        path_test.go:234: skipping on windows

c:\>

We have 5 windows builders at this moment. Perhaps we could make some run as Administrator to cover more tests.

Thank you.

Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buildersx/build issues (builders, bots, dashboards)OS-Windows

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions