We too had this issue with our CI. The problem was the xvfb-run. When
the build finished, this process was still running and when another
build ran, it caused a out-of-memory error and hung our CI. We found
out that the command used to kill xvfb-run, wasn't actually killing
the process on CI and creating a zombie process.
So I added the following profile to the parent pom:
.....
<profiles>
<profile>
<id>unix</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>kill-xvfb</id>
<configuration>
<tasks>
<exec executable="killall">
<arg value="-s" />
<arg value="9" />
<arg value="Xvfb" />
</exec>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
.......
Then in the child pom I added:
.....
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>kill-xvfb</id>
<phase>verify</phase>
</execution>
</executions>
</plugin>
...
And that did it for us. It was only hanging only on CI which is a unix
machine, so the profile is only for unix machines.
Hope this helps...
Miguel
On May 14, 2:40 pm, Marvin Froeder <[email protected]> wrote:
> Did you changed anything?
>
> VELO
>
> On Fri, May 14, 2010 at 3:32 PM, Eric Feminella
> <[email protected]>wrote:
>
>
>
>
>
> > Well, actually, not yet because no builds have been hanging today J -
> > Like I said it’s intermittent. Typically happens every third build or so.
> > I’m actually quite surprised I haven’t received any hung build emails today…
> > maybe I should manually check.
>
> > *From:* Marvin Froeder [mailto:[email protected]]
> > *Sent:* Friday, May 14, 2010 2:30 PM
>
> > *To:* Eric Feminella
> > *Cc:* [email protected]
> > *Subject:* Re: [flex-mojos] Flash Player intermittently Hanging in CI
> > (Bamboo)
>
> > Didn't -X gave you any extra clue?
>
> > VELO
>
> > On Fri, May 14, 2010 at 3:25 PM, Eric Feminella <[email protected]>
> > wrote:
>
> > Well there’s only one Flex build ever happening at a time on each build
> > machine. Actually, there is only one build happening at a time on each build
> > machine, regardless of what type of project it is. So there would never be
> > more than one Flash Player instance opened at a time.
>
> > Best,
>
> > Eric
>
> > *From:* Marvin Froeder [mailto:[email protected]]
> > *Sent:* Friday, May 14, 2010 2:23 PM
>
> > *To:* Eric Feminella
> > *Cc:* [email protected]
> > *Subject:* Re: [flex-mojos] Flash Player intermittently Hanging in CI
> > (Bamboo)
>
> > And what about a different task? From another project....
>
> > On Fri, May 14, 2010 at 3:21 PM, Eric Feminella <[email protected]>
> > wrote:
>
> > Velo,
>
> > Thanks for giving some more thought to this. I actually considered it as
> > well before and it’s just not the case, because the way we have it set up is
> > that each build agent runs in series, so if buildA is running, then buildB
> > won’t run until buildA is compeleted. Of course, when buildA hangs then it
> > effectively hangs the entire build agent – which is why I am seriously
> > trying to resolve this J
>
> > Thanks,
>
> > Eric
>
> > *From:* Marvin Froeder [mailto:[email protected]]
> > *Sent:* Friday, May 14, 2010 8:46 AM
>
> > *To:* Eric Feminella
> > *Cc:* [email protected]
> > *Subject:* Re: [flex-mojos] Flash Player intermittently Hanging in CI
> > (Bamboo)
>
> > Another thing that occurs to me (but I have no idea if it is related or
> > not), don't you have more then one build being kick out at same time?
>
> > I have no idea how xvfb-run will react if you try to open 2 application at
> > same time.
>
> > VELO
>
> > On Thu, May 13, 2010 at 2:51 PM, Eric Feminella <[email protected]>
> > wrote:
>
> > I haven’t tried it yet without the custom runner (was hoping to avoid that)
> > as the build hierarchy is rather complex, but that was going to be my next
> > step.
>
> > Let me give it a try and I’ll let you know how that turns out.
>
> > Best,
>
> > Eric
>
> > *From:* Marvin Froeder [mailto:[email protected]]
> > *Sent:* Thursday, May 13, 2010 1:50 PM
> > *To:* Eric Feminella
> > *Cc:* [email protected]
>
> > *Subject:* Re: [flex-mojos] Flash Player intermittently Hanging in CI
> > (Bamboo)
>
> > Did you tried it w/o this custom template?
>
> > Try to run maven on CI in debug mode (add -X) it will print lots and lots
> > of extra information, may be something relevant?!
>
> > VELO
>
> > On Thu, May 13, 2010 at 2:39 PM, Eric Feminella <[email protected]>
> > wrote:
>
> > At the moment we do not have any async tests in our applications. I also do
> > not explicitly define the timeout, not sure if that matters or not.
>
> > What I am doing however that is worth mentioning is I am extending the
> > flexmojos test runners and not using the template. This is important so that
> > we can define a Test Suite which can be used by both the Maven Build and IDE
> > builds.
>
> > This UI runner uses:
> > org.sonatype.flexmojos.unitestingsupport.ControlSocket; and
> > org.sonatype.flexmojos.unitestingsupport.SocketReporter; in the same way
> > as the template.
>
> > The strange thing is, the hanging FP instances never occur when building
> > from the CL on Windows (local builds), and they only occur (intermittently)
> > when running on Linux in CI. However, the CI environment has not changed nor
> > has any other variable (flexmojos or maven version, etc.). The only change
> > was the upgrade to FlexUnit 4.
>
> > Not sure if this information helps, but I thought it may be worth
> > mentioning.
>
> > Best,
>
> > Eric
>
> > *From:* Marvin Froeder [mailto:[email protected]]
> > *Sent:* Thursday, May 13, 2010 1:32 PM
> > *To:* [email protected]
> > *Cc:* Eric Feminella
> > *Subject:* Re: [flex-mojos] Flash Player intermittently Hanging in CI
> > (Bamboo)
>
> > Do you have async tests? How long is your timeout?
>
> > If you are using more then 2 secs you need to bump flexmojos timeout
>
> >http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/test-run-m...
>
> > VELO
>
> > On Thu, May 13, 2010 at 2:22 PM, Eric Feminella <[email protected]>
> > wrote:
>
> > I have been experiencing an issue in which Flash Player intermittently
> > hangs during the test phase when building in CI (Bamboo). This happens
> > intermittently and only began once we upgraded to Flex Unit 4. I am
> > 100% certain that all legacy Flex Unit 0.90 tests have been completely
> > refactored to Flex Unit 4, so I have ruled that out of the equation.
>
> > Our environment is as follows:
>
> > 1.) Build Environment: Linux Centos 5 (2.6.18-128.el5PAE)
> > 2.) CI Environment: Atlassian Bamboo version 2.3.1 build 1402 – all
> > builds happen as webuser
> > 3.) Apache Maven Version: 2.2.1 (installed in /usr/local/apache-
> > maven-2.2.1)
> > 4.) FlexMojos version:: 3.5.0
> > 5.) Flex SDK version:: 3.2.0.3958
> > 6.) Flex Unit version:: 4.0-rc-1
> > 7.) Flash Player version: 10,0,32,18
> > - Flash Player runs on all build agents
> > - Flash Player runs in a virtual frame buffer using Xvfb and xvfb-
> > run with the proper X11 SecurityPolicy file in /etc/X11/xserver.
>
> > If anyone could point me to somewhere where someone else may have had
> > and resolved a similar issue that would be extremely helpful.
>
> > Any help is greatly appreciated.
>
> > Best,
> > Eric
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex Mojos" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<flex-mojos%2bunsubscr...@googlegrou
> > ps.com>
> > For more options, visit this group at
> >http://groups.google.com/group/flex-mojos
>
> >http://flexmojos.sonatype.org/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group athttp://groups.google.com/group/flex-mojos
>
> http://flexmojos.sonatype.org/
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/