Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2830

[iTest] testGetAllAlternatives failed when building on Ubuntu-16.04

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0
    • Fix Version/s: backlog
    • Component/s: tests
    • Labels:
      None

      Description

      Steps to build:

      docker run -ti -u jenkins --rm -v $PWD:/tmp bigtop/slaves:trunk-ubuntu-16.04 bash -l
      cd /tmp/$BIGTOP_REPO
      mvn deploy -f bigtop-test-framework/pom.xml
      

      The result:

      Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.101 sec
      Running org.apache.bigtop.itest.posix.AlternativeTest
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.443 sec <<< FAILURE!
      Running org.apache.bigtop.itest.posix.ServiceTest
      Status []
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.042 sec
      Running org.apache.bigtop.itest.posix.UGITest
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.039 sec
      Running org.apache.bigtop.itest.shell.ShellTest
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec
      Running org.apache.bigtop.itest.TestContractGroovy
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
      Running org.apache.bigtop.itest.TestContractJava
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
      Running org.apache.bigtop.itest.TestContractJavaProc
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
      Running org.apache.bigtop.itest.TestListUtilsTest
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.072 sec
      
      Results :
      
      Failed tests:
        testGetAllAlternatives(org.apache.bigtop.itest.posix.AlternativeTest)
      
      Tests run: 45, Failures: 1, Errors: 0, Skipped: 1
      
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 01:53 min
      [INFO] Finished at: 2017-07-02T14:24:31+00:00
      [INFO] Final Memory: 21M/195M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7:test (default-test) on project itest-common: There are test failures.
      [ERROR]
      [ERROR] Please refer to /tmp/bigtop-development/commit/bigtop/bigtop-test-framework/target/surefire-reports for the individual test results.
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      

      The test report:

      -------------------------------------------------------------------------------
      Test set: org.apache.bigtop.itest.posix.AlternativeTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.443 sec <<< FAILURE!
      testGetAllAlternatives(org.apache.bigtop.itest.posix.AlternativeTest)  Time elapsed: 0.434 sec  <<< FAILURE!
      java.lang.AssertionError: there is no alternative for editor. weird.
              at org.junit.Assert.fail(Assert.java:88)
              at org.junit.Assert.assertTrue(Assert.java:41)
              at org.junit.Assert$assertTrue.callStatic(Unknown Source)
              at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:56)
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:194)
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:214)
              at org.apache.bigtop.itest.posix.AlternativeTest.testGetAllAlternatives(AlternativeTest.groovy:38)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
              at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
              at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:104)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:147)
              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:98)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:101)
              at com.sun.proxy.$Proxy0.invoke(Unknown Source)
              at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:139)
              at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:82)
              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:81)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              evans_ye Evans Ye
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: