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

Parallel Build Fork Timeout - Impossible To Find Bad Test

    XMLWordPrintableJSON

    Details

      Description

      In any maven project that contains more than a few modules, with a lot of tests, it's nearly impossible to understand from the build log what test caused a surefire fork timeout when there's only a message with the following line:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project <XXX>: There was a timeout or other error in the fork -> [Help 1]

      In my case, we have a Maven project with more than 200 modules, and nearly 20k unit tests.
      Lately we've noticed we don't fail our build upon surefire fork timeout, so we changed our build behavior (TeamCity in our case) to fail the build in case there was any timeout for some test.
      But quickly afterwards when the build did start to fail on that issue, we came to understatement that it's impossible to find this needle in a haystack, and understand what test (not a specific @Test method, but just the test class name).

      The error message should be more informative and contain useful information for debugging.

        Attachments

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              m_a M A
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: