Thanks for the input, Mark!

I have tried setting up the tests locally with the maven "target"
folder as the web-app temp directory instead. I assume this will be
independent for the two builds, so it should work. I'll commit the
fixes and see what happens.

Nils-H

On Nov 26, 2007 1:18 AM, Mark Chaimungkalanont <[EMAIL PROTECTED]> wrote:
> Nils,
>
> I think the problem is that the tests in Struts2PortletTest can't be
> run in parallel.
>
> If you check out two test histories in the Java6 project VS MAIN:
>
> http://opensource.bamboo.atlassian.com/browse/STRUTS-MAINJ6/test/
> org.apache.struts2.portlet.test.Struts2PortletTest:testFormExample
> http://opensource.bamboo.atlassian.com/browse/STRUTS-MAIN/test/
> org.apache.struts2.portlet.test.Struts2PortletTest:testTokenExample
>
> The failures match pretty closely and the time when the two builds
> started was also the same. Looking at the logs for the two projects
> this seems to be the case (it looks like Jetty uses the same /tmp
> directory for its temps files, so it's writing over itself).
>
> I'm not sure if it's possible to get Jetty to use a different temp
> dir. I could try passing to the command:
> -Djava.io.tmpdir=/tmp/${bamboo.buildKey} and see if that helps?
>
> Or else I could setup the MAINJ6 to run as a dependent build of MAIN
> (so it won't run simultaneously).
>
> Cheers,
>
> Mark C
>
> On 25/11/2007, at 7:39 PM, Nils-Helge Garli Hegvik wrote:
>
> > It has happened before as well. Everything runs nice on the CI machine
> > for a while, and everything runs perfectly on my local machine, but
> > for some reason the Struts2PortletTest fails now and then on the CI
> > machine. Like "java.io.FileNotFoundException: no such file: /tmp/
> > Jetty_0_0_0_0_0_webapp__test__-111m18/​jsp/​org/​apache/​jsp/
> > WEB_002dINF/​view/​tokenExampleInput_jsp.class". Are there some
> > special restrictions or anything with the tmp folder that could
> > explain this failure? I guess I'll exclude the tests from the build
> > for now, but I would really like to have them running...
> >
> > Nils-H
> >
> > On Nov 25, 2007 10:25 AM, Tom Schneider <[EMAIL PROTECTED]> wrote:
> >> I checked in a very minor change for WW-2328 and now the
> >> Struts2PortletTest is failing in both the java5 and java6 bamboo
> >> builds--but with different exceptions.  I have a clean checkout of
> >> struts2 and everything builds fine locally with a mvn -Pall
> >> build.  So
> >> is this a case of gremlins in the s2 build, or did I really break
> >> something and just can't reproduce it?
> >> Tom
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to