Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-27006

Several maven.itests tests fail sporadically due to timeouts (missing wait statement or short time period)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 4.14.0.Final
    • 4.14.0.AM1
    • maven
    • None
    • devex #178 Jan 2020, devex #179 Jan/Feb 2020
    • 5
    • Hide

      Run maven.itests several times on Jenkins and see several tests failing sporadically due to timeouts.

      Show
      Run maven.itests several times on Jenkins and see several tests failing sporadically due to timeouts.
    • Workaround Exists
    • Hide

      Run maven.itests several times, tests sometimes finish without error.

      Show
      Run maven.itests several times, tests sometimes finish without error.
    • Medium

    Description

      List and description of found and fixed issues:

      • The hasNature() issue - tests are calling the hasNature() method in AbstractMavenSWTBotTest abstract class, where a wait condition is missing. While working with the Project facets a popup window with progress bar sometimes show up. During testing it has shown up, that 10 seconds is not enought -> I am putting there 60 seconds
      • The createEJBProject() issue - wait statement with too short period of time :
      • The createWebProject() issue - wait statement with too short period of time :
      • The createBasicMavenProject() issue - wait statement with too short period of time
      • The prepareProject() issue - wait statement with too short period of time
      • The testAddRepositoryLinkInConversionWizard() issue - wait statement with too short period of time
      • The convertToMavenProject() issue - wait statement with too short period of time
      • The testMaterializeLibrary() issue - wait statement with too short period of time
      • The createJSFProject() issue - wait statement with too short period of time

      See the hasNature() issue stacktrace:

      org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException: Timeout after: 10 s.: window is available
      	at org.eclipse.reddeer.jface.preference.PreferenceDialog.ok(PreferenceDialog.java:119)
      	at org.jboss.tools.maven.ui.bot.test.AbstractMavenSWTBotTest.hasNature(AbstractMavenSWTBotTest.java:117)
      	at org.jboss.tools.maven.ui.bot.test.configurator.AbstractConfiguratorsTest.checkProjectWithRuntime(AbstractConfiguratorsTest.java:94)
      	at org.jboss.tools.maven.ui.bot.test.configurator.JSFConfiguratorTest.testJSFConfigurator(JSFConfiguratorTest.java:82)
      

      See the createEJBProject() issue stacktrace:

      org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException: Timeout after: 60 s.: The following jobs are still running:
      	Validating testEJB_CDI
      
      	at org.jboss.tools.maven.ui.bot.test.configurator.AbstractConfiguratorsTest.createEJBProject(AbstractConfiguratorsTest.java:109)
      	at org.jboss.tools.maven.ui.bot.test.configurator.CDIConfiguratorTest.testCDIConfiguratorEjbSeamInternational(CDIConfiguratorTest.java:123)
      

      See the createWebProject() issue stacktrace:

      org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException: Timeout after: 60 s.: The following jobs are still running:
      	loading https://maven.apache.org/xsd/maven-4.0.0.xsd
      
      org.jboss.tools.maven.ui.bot.test.AbstractMavenSWTBotTest.createWebProject(AbstractMavenSWTBotTest.java:280)
      	at org.jboss.tools.maven.ui.bot.test.conversion.MavenConversionTest.createWithRuntime(MavenConversionTest.java:204)
      	at org.jboss.tools.maven.ui.bot.test.conversion.MavenConversionTest.changeIdentifiedDependency(MavenConversionTest.java:123)
      

      See the createBasicMavenProject() issue stackstrace:

      org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException: Timeout after: 10 s.: The following jobs are still running:
      	Validating test
      
      	at org.eclipse.reddeer.eclipse.core.resources.AbstractResource.open(AbstractResource.java:78)
      	at org.jboss.tools.maven.ui.bot.test.AbstractMavenSWTBotTest.openPom(AbstractMavenSWTBotTest.java:331)
      	at org.jboss.tools.maven.ui.bot.test.apt.APTPropertiesPageTest.setCompilerArguments(APTPropertiesPageTest.java:298)
      	at org.jboss.tools.maven.ui.bot.test.apt.APTPropertiesPageTest.testCompilerArguments(APTPropertiesPageTest.java:128)
      

      See the prepareProject() issue stackstrace:

      org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException: Timeout after: 10 s.: The following jobs are still running:
      	Validating test
      
      
      	at org.jboss.tools.maven.ui.bot.test.apt.APTPropertiesPageTest.prepareProject(APTPropertiesPageTest.java:410)
      	at org.jboss.tools.maven.ui.bot.test.apt.APTPropertiesPageTest.testProcessorCustomOutput(APTPropertiesPageTest.java:192)
      

      See the testAddRepositoryLinkInConversionWizard() issue stackstrace:

      org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException: Timeout after: 60 s.: The following jobs are still running:
      	Validating WebProject
      
      	at org.jboss.tools.maven.ui.bot.test.conversion.MavenConversionTest.testAddRepositoryLinkInConversionWizard(MavenConversionTest.java:172)
      

      See the convertToMavenProject() issue stackstrace:

      at org.eclipse.reddeer.common.wait.WaitWhile.throwWaitTimeOutException(WaitWhile.java:116)
      	at org.jboss.tools.maven.ui.bot.test.AbstractMavenSWTBotTest.convertToMavenProject(AbstractMavenSWTBotTest.java:241)
      	at org.jboss.tools.maven.ui.bot.test.configurator.JSFConfiguratorTest.testJSFConfigurator(JSFConfiguratorTest.java:81)
      

      See the testMaterializeLibrary() issue stackstrace:

      org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException: Timeout after: 60 s.: The following jobs are still running:
      	Validating example
      
      	at org.jboss.tools.maven.ui.bot.test.conversion.MaterializeLibraryTest.testMaterializeLibrary(MaterializeLibraryTest.java:86)
      

      See the createJSFProject() issue stackstrace:

      org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException: 
      Timeout after: 60 s.: The following jobs are still running:
      	Launching JSFProject7_1.2
      	Validating JSFProject7_1.2
      
      	at org.jboss.tools.maven.ui.bot.test.project.JSFProjectTest.createJSFProject(JSFProjectTest.java:72)
      	at org.jboss.tools.maven.ui.bot.test.project.JSFProjectTest.createJSFProjectTest_AS7_JSFv2(JSFProjectTest.java:46)
      

      Attachments

        Activity

          People

            zcervink Zbyněk Červinka (Inactive)
            zcervink Zbyněk Červinka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: