[
https://issues.jboss.org/browse/JBIDE-18818?page=com.atlassian.jira.plugi...
]
Alexey Kazakov edited comment on JBIDE-18818 at 12/5/14 2:56 AM:
-----------------------------------------------------------------
I noticed that actually in all javaee test timeouts o.j.t.jsf.ui.test killed first but
despite of that sometimes jsf.verification.test is started anyway and killed too.
Both jsf.ui and verification tests pass when I run them locally on my machine (mvn clean
install ...) but I tend to blame *Display.getCurrent().readAndDispatch()* method which we
use wildly in our tests and which may cause a deadlock and sometimes I see it when running
locally too.
I have no idea how we can fix this problem w/o removing a majority of our UI tests :(
But again, if jenkins could provide a stack trace before killing the job it would be very
useful to spot the problematic code in our tests.
Can we run a script in parallel with jenkins build and run jstack or any other tool which
can provide a stack trace of the jvm process just before the timeout is reached?
The idea is to get a stack trace of the jvm process which is about to killed by timeout.
Console output and Eclipse/Surefire logs are not very useful here.
[~nickboldt], [~mickael_istria], [~dgolovin], WDYT?
was (Author: akazakov):
I noticed that actually in all javaee test timeouts o.j.t.jsf.ui.test killed first but
despite of that sometimes jsf.verification.test is started anyway and killed too.
Both jsf.ui and verification tests pass when I run them locally on my machine (mvn clean
install ...) but I tend to blame Display.getCurrent().readAndDispatch() method which we
use wildly in our tests and which may cause a deadlock and sometimes I see it when running
locally too.
I have no idea how we can fix this problem w/o removing a majority of our UI tests :(
But again, if jenkins could provide a stack trace before killing the job it would be very
useful to spot the problematic code in our tests.
Can we run a script in parallel with jenkins build and run jstack or any other tool which
can provide a stack trace of the jvm process just before the timeout is reached?
The idea is to get a stack trace of the jvm process which is about to killed by timeout.
Console output and Eclipse/Surefire logs are not very useful here.
[~nickboldt], [~mickael_istria], [~dgolovin], WDYT?
Test timeout in org.jboss.tools.jsf.verification.test
-----------------------------------------------------
Key: JBIDE-18818
URL:
https://issues.jboss.org/browse/JBIDE-18818
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsf
Affects Versions: 4.2.1.CR1
Reporter: Nick Boldt
Assignee: Alexey Kazakov
Priority: Blocker
Fix For: 4.2.x, 4.3.x
Tests that time out due to blocking UI or other thread lock result in builds that are
recorded as ABORTED [0]. This isn't a problem in terms of publishing new content
because the build runs quickly, publishes the new bits, and THEN starts running tests.
[0]
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-javaee_4....
But where it IS a problem is where we use a buildflow job to run the whole stack of JBT
projects. Buildflows will also abort if they encounter an aborted job [1].
[1]
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-buildflow...
Why is this a problem? Because when we do a weekend spin (or respin) not all the projects
in the stack are guaranteed to rebuild to verify all the downstream component tests all
still work.
--
If you cannot fix these tests so they run cleanly in Jenkins, please disable them or move
them such that they can still be run LOCALLY using a profile, but will be skipped in
Jenkins.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)