[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Speeding up the test suite

timfox do-not-reply at jboss.com
Tue Jul 31 05:06:01 EDT 2007


But there is another issue with Hudson.

Since Hudson uses VMWare, and does not fully utilise the machines, it is:

a) Significantly slower than running the test suite on a dedicated machine

b) More seriously, because of the virtualization, any timing issues are brought to the front. Although it still runs a Java program "correctly" you will observer wild differences in thread scheduling and timing which is good for showing up race conditions but extremely bad for any tests that rely on timing to give correct results.
Unfortunately, for messaging, some tests do rely on timing. E.g. testing that the expiration of a message happens pretty much on time (also scheduled delivery etc).
Now, of course Java even without virtualization is not real time, and gc can happen anytime screwing the timing, but, in practice without virtualization if we add a small margin of error in our timing tests they give good results, this is not the case with virtualization in to play - the required margin of error because so large as to make the test pointless.
This may mean I will separate any timing sensitive tests into their own (small) testsuite and this will need to be run on a dedicated team.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069069#4069069

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069069



More information about the jboss-dev-forums mailing list