You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2017/12/02 19:09:00 UTC

[jira] [Commented] (SUREFIRE-1441) Parallel Build Fork Timeout - Impossible To Find Bad Test

    [ https://issues.apache.org/jira/browse/SUREFIRE-1441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16275716#comment-16275716 ] 

Tibor Digana commented on SUREFIRE-1441:
----------------------------------------

[~m_a]
Provide me with details, stack trace and your project and how the test looks like, otherwise I have to close this issue.
Thx.

> Parallel Build Fork Timeout - Impossible To Find Bad Test
> ---------------------------------------------------------
>
>                 Key: SUREFIRE-1441
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1441
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.7+ (parallel) support, process forking
>    Affects Versions: 2.19.1, 2.20.1
>            Reporter: M A
>            Assignee: Tibor Digana
>
> 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.  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)