Discussion:
Hanging Unit Test
James Carr
2012-04-23 16:43:12 UTC
Permalink
I have a unit test that seems to hang when trying to run it on a
jenkins server. This is odd as it works fine locally, but hangs
indefinitely on the server. I tried on milestone-8 up to rc1 with no
luck

Here's the debug logs:

11:40:24.525 [QUIET] [system.out] 11:40:24.525 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
e7d3a3d6-6ef9-42e2-bac2-082bba005e41, payload: [MethodInvocation
method: startProcessing()]]
11:40:24.572 [QUIET] [system.out] 11:40:24.572 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
e7d3a3d6-6ef9-42e2-bac2-082bba005e41, payload: [MethodInvocation
method: processTestClass()]]
11:40:24.573 [QUIET] [system.out] 11:40:24.573 [DEBUG]
[org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor]
Executing test com.carfax.usage.JmsUsageWriterTest
11:40:24.575 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
c7c525d0-0370-4ae8-bcf4-860e8e37a881, payload: [MethodInvocation
method: started()]]
11:40:24.576 [DEBUG] [org.gradle.api.tasks.testing.Test] Started test
process 'Gradle Worker 1'
11:40:24.587 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
c7c525d0-0370-4ae8-bcf4-860e8e37a881, payload: [MethodInvocation
method: started()]]
11:40:24.587 [DEBUG] [org.gradle.api.tasks.testing.Test] Started test
class com.carfax.usage.JmsUsageWriterTest
11:40:24.633 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
c7c525d0-0370-4ae8-bcf4-860e8e37a881, payload: [MethodInvocation
method: output()]]
11:40:24.634 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
c7c525d0-0370-4ae8-bcf4-860e8e37a881, payload: [MethodInvocation
method: output()]]
11:40:24.635 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
c7c525d0-0370-4ae8-bcf4-860e8e37a881, payload: [MethodInvocation
method: output()]]
11:40:24.747 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
c7c525d0-0370-4ae8-bcf4-860e8e37a881, payload: [MethodInvocation
method: output()]]
11:40:24.748 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
c7c525d0-0370-4ae8-bcf4-860e8e37a881, payload: [MethodInvocation
method: output()]]
11:40:24.792 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
c7c525d0-0370-4ae8-bcf4-860e8e37a881, payload: [MethodInvocation
method: output()]]
11:40:24.794 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
c7c525d0-0370-4ae8-bcf4-860e8e37a881, payload: [MethodInvocation
method: output()]]
11:40:24.795 [DEBUG]
[org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching
request to worker: [Request consumer:
c7c525d0-0370-4ae8-bcf4-860e8e37a881, payload: [MethodInvocation
method: output()]]

I can post the test as well if needed.

Thanks,
James
Peter Niederwieser
2012-04-23 16:58:59 UTC
Permalink
We'd definitely need more information (test code, thread dump) to help.

--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Twitter: @pniederw

--
View this message in context: http://gradle.1045684.n5.nabble.com/Hanging-Unit-Test-tp5659900p5659932.html
Sent from the gradle-user mailing list archive at Nabble.com.
James Carr
2012-04-23 18:09:07 UTC
Permalink
will do... I'm currently debugging the process remotely myself to try
and figure out where the lock is occurring.
Post by Peter Niederwieser
We'd definitely need more information (test code, thread dump) to help.
--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
--
View this message in context: http://gradle.1045684.n5.nabble.com/Hanging-Unit-Test-tp5659900p5659932.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
James Carr
2012-04-23 20:47:43 UTC
Permalink
Disregard, has zilch to do with gradle. For some reason starting an
activeMQ embedded broker on the linux box our jenkins server is
running on blocks operations.

Thanks,
James
Post by James Carr
will do... I'm currently debugging the process remotely myself to try
and figure out where the lock is occurring.
Post by Peter Niederwieser
We'd definitely need more information (test code, thread dump) to help.
--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
--
View this message in context: http://gradle.1045684.n5.nabble.com/Hanging-Unit-Test-tp5659900p5659932.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
Loading...