Can the stout tests be prefixed with `ROOT_` ?

On Fri, Oct 14, 2016 at 5:15 PM, Joseph Wu <jos...@mesosphere.io> wrote:

> I'll fix this shortly.  I need to disable a couple (stout) tests that
> require Administrator privileges.  The ASF CI does not run any "ROOT"
> tests, so I'll make this change in the Jenkins job itself.
>
> On Fri, Oct 14, 2016 at 5:03 PM, Apache Jenkins Server <
> jenk...@builds.apache.org> wrote:
>
> > See <https://builds.apache.org/job/Mesos-Windows/703/changes>
> >
> > Changes:
> >
> > [josephwu] Made semantics of `os::rmdir` consistent between POSIX and
> > Windows.
> >
> > [josephwu] Cleaned up style in stout rmdir_tests.cpp.
> >
> > [josephwu] Stout: Enabled tests that pass on Windows.
> >
> > [josephwu] Libprocess: Enabled tests that pass on Windows.
> >
> > [josephwu] Windows: Updated build script to run the stout/libprocess
> tests.
> >
> > ------------------------------------------
> > [...truncated 3980 lines...]
> > [----------] 10 tests from FsTest
> > [ RUN      ] FsTest.Find
> > [       OK ] FsTest.Find (7 ms)
> > [ RUN      ] FsTest.ReadWriteString
> > [       OK ] FsTest.ReadWriteString (1 ms)
> > [ RUN      ] FsTest.Mkdir
> > [       OK ] FsTest.Mkdir (5 ms)
> > [ RUN      ] FsTest.Exists
> > [       OK ] FsTest.Exists (4 ms)
> > [ RUN      ] FsTest.Touch
> > [       OK ] FsTest.Touch (1 ms)
> > [ RUN      ] FsTest.Symlink
> > F:\jenkins\jenkins-slave\workspace\Mesos-Windows\3rdparty\
> stout\tests\os\filesystem_tests.cpp(192):
> > error: fs::symlink(file, link): 'internal::windows::create_sym
> bolic_link':
> > 'CreateSymbolicLink' call failed: A required privilege is not held by the
> > client.
> >
> >
> > [  FAILED  ] FsTest.Symlink (5 ms)
> > [ RUN      ] FsTest.Rm
> > F:\jenkins\jenkins-slave\workspace\Mesos-Windows\3rdparty\
> stout\tests\os\filesystem_tests.cpp(222):
> > error: fs::symlink(fileToSymlink, fileSymlink1):
> 'internal::windows::create_symbolic_link':
> > 'CreateSymbolicLink' call failed: A required privilege is not held by the
> > client.
> >
> >
> > [  FAILED  ] FsTest.Rm (3 ms)
> > [ RUN      ] FsTest.List
> > [       OK ] FsTest.List (2 ms)
> > [ RUN      ] FsTest.Rename
> > [       OK ] FsTest.Rename (3 ms)
> > [ RUN      ] FsTest.Close
> > [       OK ] FsTest.Close (3 ms)
> > [----------] 10 tests from FsTest (34 ms total)
> >
> > [----------] 4 tests from ProcessTest
> > [ RUN      ] ProcessTest.Process
> > [       OK ] ProcessTest.Process (7 ms)
> > [ RUN      ] ProcessTest.Processes
> > [       OK ] ProcessTest.Processes (109 ms)
> > [ RUN      ] ProcessTest.Pids
> > [       OK ] ProcessTest.Pids (18 ms)
> > [ RUN      ] ProcessTest.Pstree
> >
> > Pinging 127.0.0.1 with 32 bytes of data:
> > Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
> > Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
> >
> > Ping statistics for 127.0.0.1:
> >     Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
> > Approximate round trip times in milli-seconds:
> >     Minimum = 0ms, Maximum = 0ms, Average = 0ms
> > [       OK ] ProcessTest.Pstree (1124 ms)
> > [----------] 4 tests from ProcessTest (1259 ms total)
> >
> > [----------] 9 tests from RmdirTest
> > [ RUN      ] RmdirTest.TrivialRemoveEmptyDirectoryAbsolutePath
> > [       OK ] RmdirTest.TrivialRemoveEmptyDirectoryAbsolutePath (2 ms)
> > [ RUN      ] RmdirTest.TrivialRemoveEmptyDirectoryRelativePath
> > [       OK ] RmdirTest.TrivialRemoveEmptyDirectoryRelativePath (1 ms)
> > [ RUN      ] RmdirTest.RemoveFile
> > [       OK ] RmdirTest.RemoveFile (2 ms)
> > [ RUN      ] RmdirTest.RemoveRecursiveByDefault
> > [       OK ] RmdirTest.RemoveRecursiveByDefault (1 ms)
> > [ RUN      ] RmdirTest.TrivialFailToRemoveInvalidPath
> > [       OK ] RmdirTest.TrivialFailToRemoveInvalidPath (1 ms)
> > [ RUN      ] RmdirTest.FailToRemoveNestedInvalidPath
> > [       OK ] RmdirTest.FailToRemoveNestedInvalidPath (2 ms)
> > [ RUN      ] RmdirTest.RemoveDirectoryWithSymbolicLinkTargetDirectory
> > F:\jenkins\jenkins-slave\workspace\Mesos-Windows\
> > 3rdparty\stout\tests\os\rmdir_tests.cpp(309): error:
> > fs::symlink(targetDirectory, link): 'internal::windows::create_sym
> bolic_link':
> > 'CreateSymbolicLink' call failed: A required privilege is not held by the
> > client.
> >
> >
> > [  FAILED  ] RmdirTest.RemoveDirectoryWithSymbolicLinkTargetDirectory (2
> > ms)
> > [ RUN      ] RmdirTest.RemoveDirectoryWithSymbolicLinkTargetFile
> > F:\jenkins\jenkins-slave\workspace\Mesos-Windows\
> > 3rdparty\stout\tests\os\rmdir_tests.cpp(332): error:
> > fs::symlink(targetFile, link): 'internal::windows::create_sym
> bolic_link':
> > 'CreateSymbolicLink' call failed: A required privilege is not held by the
> > client.
> >
> >
> > [  FAILED  ] RmdirTest.RemoveDirectoryWithSymbolicLinkTargetFile (2 ms)
> > [ RUN      ] RmdirTest.RemoveDirectoryButPreserveRoot
> > [       OK ] RmdirTest.RemoveDirectoryButPreserveRoot (2 ms)
> > [----------] 9 tests from RmdirTest (18 ms total)
> >
> > [----------] 1 test from SocketTests
> > [ RUN      ] SocketTests.InitSocket
> > [       OK ] SocketTests.InitSocket (0 ms)
> > [----------] 1 test from SocketTests (0 ms total)
> >
> > [----------] 3 tests from StrerrorTest
> > [ RUN      ] StrerrorTest.ValidErrno
> > [       OK ] StrerrorTest.ValidErrno (0 ms)
> > [ RUN      ] StrerrorTest.InvalidErrno
> > [       OK ] StrerrorTest.InvalidErrno (0 ms)
> > [ RUN      ] StrerrorTest.ValidHerrno
> > [       OK ] StrerrorTest.ValidHerrno (3 ms)
> > [----------] 3 tests from StrerrorTest (3 ms total)
> >
> > [----------] 3 tests from SystemsTests
> > [ RUN      ] SystemsTests.Uname
> > [       OK ] SystemsTests.Uname (1 ms)
> > [ RUN      ] SystemsTests.Sysname
> > [       OK ] SystemsTests.Sysname (1 ms)
> > [ RUN      ] SystemsTests.Release
> > [       OK ] SystemsTests.Release (1 ms)
> > [----------] 3 tests from SystemsTests (3 ms total)
> >
> > [----------] 2 tests from RecordIOTest
> > [ RUN      ] RecordIOTest.Encoder
> > [       OK ] RecordIOTest.Encoder (1 ms)
> > [ RUN      ] RecordIOTest.Decoder
> > [       OK ] RecordIOTest.Decoder (0 ms)
> > [----------] 2 tests from RecordIOTest (1 ms total)
> >
> > [----------] 2 tests from ResultTest
> > [ RUN      ] ResultTest.TryToResultConversion
> > [       OK ] ResultTest.TryToResultConversion (0 ms)
> > [ RUN      ] ResultTest.ArrowOperator
> > [       OK ] ResultTest.ArrowOperator (0 ms)
> > [----------] 2 tests from ResultTest (0 ms total)
> >
> > [----------] 1 test from SomeTest
> > [ RUN      ] SomeTest.Some
> > [       OK ] SomeTest.Some (0 ms)
> > [----------] 1 test from SomeTest (1 ms total)
> >
> > [----------] 39 tests from StringsTest
> > [ RUN      ] StringsTest.Format
> > [       OK ] StringsTest.Format (0 ms)
> > [ RUN      ] StringsTest.Remove
> > [       OK ] StringsTest.Remove (0 ms)
> > [ RUN      ] StringsTest.Replace
> > [       OK ] StringsTest.Replace (1 ms)
> > [ RUN      ] StringsTest.Trim
> > [       OK ] StringsTest.Trim (0 ms)
> > [ RUN      ] StringsTest.Tokenize
> > [       OK ] StringsTest.Tokenize (0 ms)
> > [ RUN      ] StringsTest.TokenizeStringWithDelimsAtStart
> > [       OK ] StringsTest.TokenizeStringWithDelimsAtStart (0 ms)
> > [ RUN      ] StringsTest.TokenizeStringWithDelimsAtEnd
> > [       OK ] StringsTest.TokenizeStringWithDelimsAtEnd (1 ms)
> > [ RUN      ] StringsTest.TokenizeStringWithDelimsAtStartAndEnd
> > [       OK ] StringsTest.TokenizeStringWithDelimsAtStartAndEnd (0 ms)
> > [ RUN      ] StringsTest.TokenizeWithMultipleDelims
> > [       OK ] StringsTest.TokenizeWithMultipleDelims (0 ms)
> > [ RUN      ] StringsTest.TokenizeEmptyString
> > [       OK ] StringsTest.TokenizeEmptyString (0 ms)
> > [ RUN      ] StringsTest.TokenizeDelimOnlyString
> > [       OK ] StringsTest.TokenizeDelimOnlyString (0 ms)
> > [ RUN      ] StringsTest.TokenizeNullByteDelim
> > [       OK ] StringsTest.TokenizeNullByteDelim (0 ms)
> > [ RUN      ] StringsTest.TokenizeNZero
> > [       OK ] StringsTest.TokenizeNZero (0 ms)
> > [ RUN      ] StringsTest.TokenizeNOne
> > [       OK ] StringsTest.TokenizeNOne (0 ms)
> > [ RUN      ] StringsTest.TokenizeNDelimOnlyString
> > [       OK ] StringsTest.TokenizeNDelimOnlyString (0 ms)
> > [ RUN      ] StringsTest.TokenizeN
> > [       OK ] StringsTest.TokenizeN (0 ms)
> > [ RUN      ] StringsTest.TokenizeNStringWithDelimsAtStart
> > [       OK ] StringsTest.TokenizeNStringWithDelimsAtStart (1 ms)
> > [ RUN      ] StringsTest.TokenizeNStringWithDelimsAtEnd
> > [       OK ] StringsTest.TokenizeNStringWithDelimsAtEnd (0 ms)
> > [ RUN      ] StringsTest.TokenizeNStringWithDelimsAtStartAndEnd
> > [       OK ] StringsTest.TokenizeNStringWithDelimsAtStartAndEnd (0 ms)
> > [ RUN      ] StringsTest.TokenizeNWithMultipleDelims
> > [       OK ] StringsTest.TokenizeNWithMultipleDelims (1 ms)
> > [ RUN      ] StringsTest.SplitEmptyString
> > [       OK ] StringsTest.SplitEmptyString (0 ms)
> > [ RUN      ] StringsTest.SplitDelimOnlyString
> > [       OK ] StringsTest.SplitDelimOnlyString (0 ms)
> > [ RUN      ] StringsTest.Split
> > [       OK ] StringsTest.Split (0 ms)
> > [ RUN      ] StringsTest.SplitStringWithDelimsAtStart
> > [       OK ] StringsTest.SplitStringWithDelimsAtStart (0 ms)
> > [ RUN      ] StringsTest.SplitStringWithDelimsAtEnd
> > [       OK ] StringsTest.SplitStringWithDelimsAtEnd (0 ms)
> > [ RUN      ] StringsTest.SplitStringWithDelimsAtStartAndEnd
> > [       OK ] StringsTest.SplitStringWithDelimsAtStartAndEnd (0 ms)
> > [ RUN      ] StringsTest.SplitWithMultipleDelims
> > [       OK ] StringsTest.SplitWithMultipleDelims (0 ms)
> > [ RUN      ] StringsTest.SplitNZero
> > [       OK ] StringsTest.SplitNZero (0 ms)
> > [ RUN      ] StringsTest.SplitNOne
> > [       OK ] StringsTest.SplitNOne (0 ms)
> > [ RUN      ] StringsTest.SplitNDelimOnlyString
> > [       OK ] StringsTest.SplitNDelimOnlyString (0 ms)
> > [ RUN      ] StringsTest.SplitN
> > [       OK ] StringsTest.SplitN (0 ms)
> > [ RUN      ] StringsTest.SplitNStringWithDelimsAtStart
> > [       OK ] StringsTest.SplitNStringWithDelimsAtStart (0 ms)
> > [ RUN      ] StringsTest.SplitNStringWithDelimsAtEnd
> > [       OK ] StringsTest.SplitNStringWithDelimsAtEnd (0 ms)
> > [ RUN      ] StringsTest.SplitNStringWithDelimsAtStartAndEnd
> > [       OK ] StringsTest.SplitNStringWithDelimsAtStartAndEnd (1 ms)
> > [ RUN      ] StringsTest.SplitNWithMultipleDelims
> > [       OK ] StringsTest.SplitNWithMultipleDelims (0 ms)
> > [ RUN      ] StringsTest.Pairs
> > [       OK ] StringsTest.Pairs (1 ms)
> > [ RUN      ] StringsTest.Join
> > [       OK ] StringsTest.Join (0 ms)
> > [ RUN      ] StringsTest.StartsWith
> > [       OK ] StringsTest.StartsWith (0 ms)
> > [ RUN      ] StringsTest.Contains
> > [       OK ] StringsTest.Contains (0 ms)
> > [----------] 39 tests from StringsTest (9 ms total)
> >
> > [----------] 2 tests from SubcommandTest
> > [ RUN      ] SubcommandTest.Flags
> > [       OK ] SubcommandTest.Flags (5 ms)
> > [ RUN      ] SubcommandTest.Dispatch
> > Subcommand 'subcommand' is not available
> > Usage: command <subcommand> [OPTIONS]
> >
> > Available subcommands:
> >     help
> >     subcommand2
> >
> > Multiple subcommands have name 'subcommand'
> > [       OK ] SubcommandTest.Dispatch (2 ms)
> > [----------] 2 tests from SubcommandTest (7 ms total)
> >
> > [----------] 1 test from TryTest
> > [ RUN      ] TryTest.ArrowOperator
> > [       OK ] TryTest.ArrowOperator (0 ms)
> > [----------] 1 test from TryTest (0 ms total)
> >
> > [----------] 2 tests from UUIDTest
> > [ RUN      ] UUIDTest.Test
> > [       OK ] UUIDTest.Test (1 ms)
> > [ RUN      ] UUIDTest.MalformedUUID
> > [       OK ] UUIDTest.MalformedUUID (0 ms)
> > [----------] 2 tests from UUIDTest (1 ms total)
> >
> > [----------] 2 tests from VersionTest
> > [ RUN      ] VersionTest.Comparison
> > [       OK ] VersionTest.Comparison (1 ms)
> > [ RUN      ] VersionTest.Parse
> > [       OK ] VersionTest.Parse (1 ms)
> > [----------] 2 tests from VersionTest (2 ms total)
> >
> > [----------] Global test environment tear-down
> > [==========] 219 tests from 38 test cases ran. (2123 ms total)
> > [  PASSED  ] 214 tests.
> > [  FAILED  ] 5 tests, listed below:
> > [  FAILED  ] OsTest.System
> > [  FAILED  ] FsTest.Symlink
> > [  FAILED  ] FsTest.Rm
> > [  FAILED  ] RmdirTest.RemoveDirectoryWithSymbolicLinkTargetDirectory
> > [  FAILED  ] RmdirTest.RemoveDirectoryWithSymbolicLinkTargetFile
> >
> >  5 FAILED TESTS
> >   YOU HAVE 13 DISABLED TESTS
> >
> >
> > <https://builds.apache.org/job/Mesos-Windows/ws/build>if> 1 NEQ 0 exit
> /b
> > 1
> > Build step 'Execute Windows batch command' marked build as failure
> >
>

Reply via email to