Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-2076

Clean up tests output and some error logs

    XMLWordPrintable

    Details

    • Type: Clean up
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 19
    • Component/s: Infrastructure, Testing

      Description

      Tests are showing errors like:

      11:48:59 ============= LAUNCHING STUDIO TESTS FOR cap-5.9.2 (packages: nuxeo-dm-5.9.2) =================
      11:49:03 Nuxeo EP Started
      11:49:03 ======================================================================
      11:49:03 = Component Loading Status: Pending: 1 / Unstarted: 0 / Total: 86
      11:49:03   * service:org.nuxeo.ecm.automation.server.auth.config requires [service:org.nuxeo.ecm.platform.ui.web.auth.defaultConfig]
      

      Also the following error can happen in tests as well as on the server when parsing bad user registries:

      11:41:04 Running com.nuxeo.studio.core.readers.TestOperationsReader
      11:41:04 Failed to parse registry from file:/home/hudson/hudson2.ws/workspace/nuxeo-studio-master/nuxeo-studio-ui/target/test-classes/test-buggy-operations.json.
      11:41:04 net.sf.json.JSONException: Found starting '{' but missing '}' at the end. at character 0 of null
      11:41:04 	at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:499)
      11:41:04 	at net.sf.json.util.JSONTokener.<init>(JSONTokener.java:85)
      11:41:04 	at net.sf.json.JSONObject._fromString(JSONObject.java:1201)
      11:41:04 	at net.sf.json.JSONObject.fromObject(JSONObject.java:165)
      11:41:04 	at net.sf.json.JSONObject.fromObject(JSONObject.java:134)
      11:41:04 	at com.nuxeo.studio.core.readers.AbstractJSONResourceReader.loadResources(AbstractJSONResourceReader.java:48)
      11:41:04 	at com.nuxeo.studio.core.readers.TestOperationsReader.testBuggyContribution(TestOperationsReader.java:39)
      11:41:04 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      11:41:04 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      11:41:04 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      11:41:04 	at java.lang.reflect.Method.invoke(Method.java:601)
      11:41:04 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      11:41:04 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      11:41:04 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      11:41:04 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      11:41:04 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
      11:41:04 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      11:41:04 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      11:41:04 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      11:41:04 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      11:41:04 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      11:41:04 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      11:41:04 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      11:41:04 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      11:41:04 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      11:41:04 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      11:41:04 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      11:41:04 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      11:41:04 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      

      This should be avoided when registry is not a builitin one (or in tests)

      Also there's a maven warning:

      [WARNING] Some problems were encountered while building the effective model for com.nuxeo.studio:nuxeo-studio-ui:jar:19-SNAPSHOT
      [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.nuxeo.ecm.automation:nuxeo-automation-core:jar -> duplicate declaration of version (?) @ line 91, column 17
      

      And output is full of

      12:17:19 Caused by: java.lang.LinkageError: Failed to load com.google.common.collect.AbstractMapBasedMultimap
      12:17:19 	at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:326)
      12:17:19 	at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:236)
      12:17:19 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      12:17:19 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      12:17:19 	at java.lang.Class.forName0(Native Method)
      12:17:19 	at java.lang.Class.forName(Class.java:247)
      

      see NXBT-741

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.