[ 
http://jira.codehaus.org/browse/SUREFIRE-690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=260174#action_260174
 ] 

Kristian Rosenvold edited comment on SUREFIRE-690 at 3/15/11 5:12 AM:
----------------------------------------------------------------------

The issue you're seeing now is actually a design problem with parallel surefire 
providers and redirectTestOuputToFile=true, because you're running parallel 
junit (and parallel m3, which is not relevant).  (All the others issues we've 
been having with 2.7.X and redirectTestOuputToFile= true have been just basic 
thread safety issues that affect all users of redirectTestOuputToFile).

Until we fixed SUREFIRE-700 there was no way to fix this issue, but now that 
this is done it should be much simpler. I am working on this for 2.8.1. Until 
then, the only way to make this reliable is either to turn off parallel junit 
*or* redirectTestOuputToFile.


      was (Author: krosenvold):
    The issue you're seeing now is actually a design problem with parallel 
surefire providers and redirectTestOuputToFile=true, because you're running 
parallel junit (and parallel m3, which is not relevant).  (All the others 
issues we've been having with 2.7.X and redirectTestOuputToFile= true have been 
just basic thread safety issues that affect all users of 
redirectTestOuputToFile).

Until we fixed SUREFIRE-700 there was no way to fix this issue, but now that 
this is done it should be much simpler. I am working on this for 2.8.1. Until 
then, the only way to make this reliable is either to turn of parallel junit 
*or* redirectTestOuputToFile.

  
> testSetCompleted called before testSetStarting when using m3 parallel builds
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-690
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-690
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.7+ (parallel) support
>    Affects Versions: 2.7.1
>            Reporter: Gin-Ting Chen
>            Assignee: Kristian Rosenvold
>
> This is running m3 with -T 1C (8 core build machine).
> [17:52:38]: [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) on 
> project hornet-stinger: Error while executing forked tests.; nested exception 
> is java.lang.IllegalStateException: testSetCompleted called before 
> testSetStarting -> [Help 1]
> Seems like it doesn't happen as frequently as previously

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to