Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1932

Periodic failure caused by parallel execution of tests

    XMLWordPrintableJSON

    Details

      Description

      For parallel testing is used next stack of technologies: java 8 (openjdk version "1.8.0_292", OpenJDK Runtime Environment (build 1.8.0_292-b10), OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)), Jenkins, Selenium, Selenide, Selenoid etc.

      From time to time during execution I encounter different problem associated with maven surefire. I perform parallel testing using Jenkins and jenkins file:

       

      stage('First suite'){
                  parallel {
                      stage('1 test'){
                      }
                      stage('2 test'){
                      }
                  }
      }
      

      but periodically got error and failed stage due to failed test. Fragment of trace with error:

      ExecutionException Error creating properties files for forking org.apache.maven.surefire.booter.SurefireBooterForkException: ExecutionException Error creating properties files for forking at org.apache.maven.plugin.surefire.booterclient.ForkStarter.awaitResultsDone(ForkStarter.java:532) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkOnceMultiple(ForkStarter.java:405) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:321) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:266) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1314) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1159) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:932) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289) at org.apache.maven.cli.MavenCli.main(MavenCli.java:193) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: Error creating properties files for forking at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:604) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.access$700(ForkStarter.java:121) at org.apache.maven.plugin.surefire.booterclient.ForkStarter$1.call(ForkStarter.java:393) at org.apache.maven.plugin.surefire.booterclient.ForkStarter$1.call(ForkStarter.java:370) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createTempFile(File.java:2063) at org.apache.maven.surefire.booter.SystemPropertyManager.writePropertiesFile(SystemPropertyManager.java:77) at org.apache.maven.plugin.surefire.booterclient.BooterSerializer.serialize(BooterSerializer.java:187) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:585) ... 7 more
      
      

      As well I described my problem here in stackoverflow but with another trace (URL is attached).

       
       
       

        Attachments

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              estratov EVGENII STRATOVICH
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: