Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14385

Chain flaky xwiki-enterprise-test-wysiwyg tests caused by random deaths of the test instance

    XMLWordPrintable

Details

    • N/A
    • N/A

    Description

      For some reason, the test instance gets killed half way through execution, making all the following tests fail to execute.

      Example:

      The first test fails with a selenium timeout error, showing the wysiwyg editor in the screenshot.

      All following tests fail with:

      Error Message
      
      [tmDrawerActivator] isn't present.
      

      and with the browser`s standard "Unable to connect" gray error, as screenshot.

      The last test in the list (i.e. the test suite - AllTests) fails with:

      Error Message
      
      Failed to shutdown PersistentTestContext
      
      Stacktrace
      
      java.lang.RuntimeException: Failed to shutdown PersistentTestContext
      	at org.xwiki.test.ui.PageObjectSuite.afterTests(PageObjectSuite.java:101)
      	at org.xwiki.test.integration.XWikiExecutorSuite.run(XWikiExecutorSuite.java:197)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      Caused by: java.lang.RuntimeException: Process failed to close properly after [300000] seconds, process ended [true]. Exit code [143], message [Process exited with an error: 143 (Exit value: 143)]. Failing test.
      	at org.xwiki.test.integration.XWikiExecutor.waitForProcessToFinish(XWikiExecutor.java:390)
      	at org.xwiki.test.integration.XWikiExecutor.stop(XWikiExecutor.java:354)
      	at org.xwiki.test.ui.PersistentTestContext.shutdown(PersistentTestContext.java:114)
      	at org.xwiki.test.ui.PageObjectSuite.afterTests(PageObjectSuite.java:99)
      	... 8 more
      
      Standard Output
      
      13:13:25.670 [Thread-15] INFO  o.x.t.i.XWikiLogOutputStream - Lock file [/var/tmp/xwiki-8080.lck] is missing. Aborting stop.
      

      Attachments

        1. flaky-chain-wysiwyg-tests.png
          102 kB
          Eduard Moraru
        2. flaky-job-97.png
          712 kB
          Vincent Massol

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              enygma Eduard Moraru
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: