Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26005

Fix ITWizardAndUpdateCenterTests during nightly build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 10.3-SNAPSHOT
    • Fix Version/s: 10.3
    • Component/s: Tests, Wizard
    • Tags:
    • Sprint:
      NOS 10.3.9 - mid nov, NOS 10.10.1 - end nov
    • Story Points:
      3

      Description

      The nuxeo nightly job failed last night : https://qa.nuxeo.org/jenkins/job/Deploy/job/IT-nuxeo-master-tests-cap-tomcat/lastCompletedBuild/testReport/org.nuxeo.ftest.wizard/ITWizardAndUpdateCenterTests/runWizardAndRestart/
      with :

      org.openqa.selenium.NoSuchElementException: 
      Unable to find login screen after 10 minutes, currentUrl=http://localhost:8080/nuxeo/Restart
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'itslave01', ip: '172.17.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-104-generic', java.version: '1.8.0_181'
      Driver info: driver.version: unknown
      	at org.nuxeo.functionaltests.pages.wizard.SummaryWizardPage.restart(SummaryWizardPage.java:43)
      	at org.nuxeo.ftest.wizard.ITWizardAndUpdateCenterTests.runWizardAndRestart(ITWizardAndUpdateCenterTests.java:213)
      	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:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:117)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.junit.runners.Suite.runChild(Suite.java:128)
      	at org.junit.runners.Suite.runChild(Suite.java:27)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
      Caused by: org.openqa.selenium.NoSuchElementException: Couldn't find element 'By.id: username' after timeout
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'itslave01', ip: '172.17.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-104-generic', java.version: '1.8.0_181'
      Driver info: driver.version: unknown
      	at org.nuxeo.functionaltests.Locator.findElementWithTimeout(Locator.java:248)
      	at org.nuxeo.functionaltests.Locator.findElementWithTimeout(Locator.java:200)
      	at org.nuxeo.functionaltests.pages.AbstractPage.findElementWithTimeout(AbstractPage.java:177)
      	at org.nuxeo.functionaltests.pages.wizard.SummaryWizardPage.restart(SummaryWizardPage.java:38)
      	... 40 more
      Sortie standard
      2018-10-22 05:43:03,842 [main] WARN  [LogTestWatchman] Cannot log on server message: Starting test 'org.nuxeo.ftest.wizard.ITWizardAndUpdateCenterTests#runWizardAndRestart'
      2018-10-22 05:53:30,266 [main] ERROR [LogTestWatchman] Test 'org.nuxeo.ftest.wizard.ITWizardAndUpdateCenterTests#runWizardAndRestart' failed
      org.openqa.selenium.NoSuchElementException: Unable to find login screen after 10 minutes, currentUrl=http://localhost:8080/nuxeo/Restart
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'itslave01', ip: '172.17.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-104-generic', java.version: '1.8.0_181'
      Driver info: driver.version: unknown
      	at org.nuxeo.functionaltests.pages.wizard.SummaryWizardPage.restart(SummaryWizardPage.java:43) ~[nuxeo-functional-tests-10.3-I20181022_0125.jar:?]
      	at org.nuxeo.ftest.wizard.ITWizardAndUpdateCenterTests.runWizardAndRestart(ITWizardAndUpdateCenterTests.java:213) ~[test-classes/:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_181]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) ~[junit-4.12.jar:4.12]
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) ~[junit-4.12.jar:4.12]
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) ~[junit-4.12.jar:4.12]
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) ~[junit-4.12.jar:4.12]
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) ~[junit-4.12.jar:4.12]
      	at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:117) [nuxeo-functional-tests-10.3-I20181022_0125.jar:?]
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) [junit-4.12.jar:4.12]
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) [junit-4.12.jar:4.12]
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12]
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) [junit-4.12.jar:4.12]
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12]
      	at org.junit.runners.Suite.runChild(Suite.java:128) [junit-4.12.jar:4.12]
      	at org.junit.runners.Suite.runChild(Suite.java:27) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12]
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12]
      	at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) [surefire-junit47-2.22.0.jar:2.22.0]
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) [surefire-junit47-2.22.0.jar:2.22.0]
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) [surefire-junit47-2.22.0.jar:2.22.0]
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) [surefire-junit47-2.22.0.jar:2.22.0]
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) [surefire-junit47-2.22.0.jar:2.22.0]
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) [surefire-junit47-2.22.0.jar:2.22.0]
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383) [surefire-booter-2.22.0.jar:2.22.0]
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344) [surefire-booter-2.22.0.jar:2.22.0]
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125) [surefire-booter-2.22.0.jar:2.22.0]
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417) [surefire-booter-2.22.0.jar:2.22.0]
      Caused by: org.openqa.selenium.NoSuchElementException: Couldn't find element 'By.id: username' after timeout
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'itslave01', ip: '172.17.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-104-generic', java.version: '1.8.0_181'
      Driver info: driver.version: unknown
      	at org.nuxeo.functionaltests.Locator.findElementWithTimeout(Locator.java:248) ~[nuxeo-functional-tests-10.3-I20181022_0125.jar:?]
      	at org.nuxeo.functionaltests.Locator.findElementWithTimeout(Locator.java:200) ~[nuxeo-functional-tests-10.3-I20181022_0125.jar:?]
      	at org.nuxeo.functionaltests.pages.AbstractPage.findElementWithTimeout(AbstractPage.java:177) ~[nuxeo-functional-tests-10.3-I20181022_0125.jar:?]
      	at org.nuxeo.functionaltests.pages.wizard.SummaryWizardPage.restart(SummaryWizardPage.java:38) ~[nuxeo-functional-tests-10.3-I20181022_0125.jar:?]
      	... 40 more
      

      It seems the server was unable to restart from the wizard, and the jstack showed :

      at org.nuxeo.connect.connector.AbstractConnectConnector.execCall(AbstractConnectConnector.java:141)
          at org.nuxeo.connect.connector.AbstractConnectConnector.getDownloads(AbstractConnectConnector.java:256)
          at org.nuxeo.connect.connector.AbstractConnectConnector.getDownloads(AbstractConnectConnector.java:222)
          at org.nuxeo.connect.packages.RemotePackageSource.listPackages(RemotePackageSource.java:100)
          at org.nuxeo.connect.packages.RemotePackageSource.listPackages(RemotePackageSource.java:89)
          at org.nuxeo.connect.packages.PackageManagerImpl.getAllPackagesByID(PackageManagerImpl.java:221)
          at org.nuxeo.connect.packages.PackageManagerImpl.getAllPackages(PackageManagerImpl.java:201)
          at org.nuxeo.connect.packages.PackageManagerImpl.getAllPackages(PackageManagerImpl.java:195)
          at org.nuxeo.connect.packages.PackageManagerImpl.listAllPackages(PackageManagerImpl.java:886)
          at org.nuxeo.connect.packages.PackageManagerImpl.getPackage(PackageManagerImpl.java:644)
          at org.nuxeo.connect.packages.PackageManagerImpl.hasMatchInIdList(PackageManagerImpl.java:1043)
          at org.nuxeo.connect.packages.PackageManagerImpl.orderByDependencies(PackageManagerImpl.java:968)
          at org.nuxeo.connect.packages.PackageManagerImpl.order(PackageManagerImpl.java:909)
          - locked <0x0000000774a1bdd0> (a org.nuxeo.connect.packages.dependencies.DependencyResolution)
          at org.nuxeo.connect.packages.dependencies.CUDFHelper.buildResolution(CUDFHelper.java:682)
          at org.nuxeo.connect.packages.dependencies.P2CUDFDependencyResolver.resolve(P2CUDFDependencyResolver.java:185)
      

      So this may be related to NXCONNECT-2028.

      Note : it passed on other jobs like https://qa.nuxeo.org/jenkins/job/master/job/FT-nuxeo-master-webdriver-tomcat-wizard/

        Attachments

          Activity

            People

            • Assignee:
              yjulienne Yannis Julienne
              Reporter:
              yjulienne Yannis Julienne
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m