<font face="arial" size="2"><p style="margin:0;padding:0;">Hey Sal,</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">I'm not a Quantum dev but I may have some ideas. I'm sure most everyone knows that a lot of the projects have moved to using testr as the test runner in order to execute tests in parallel. Since that seems like something you guys are not moving to right away then maybe there is a quicker solution.</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">Have you seen 'eatmydata' (http://www.makelinux.net/man/1/E/eatmydata) I use it when running tests and it cuts the time in half. Just 'apt-get install eatmydata' if you're on ubuntu.</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">-Alex</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">-----Original Message-----<br />From: "Salvatore Orlando" <sorlando@nicira.com><br />Sent: Wednesday, February 6, 2013 3:21pm<br />To: "OpenStack Development Mailing List" <openstack-dev@lists.openstack.org><br />Subject: [openstack-dev] [Quantum] Question on unit tests<br /><br /></p>
<div id="SafeStyles1360184349">
<p style="margin:0;padding:0;">Hi,<br /><br />As some of you have noticed, the number of unit tests arose to above<br />3,000 with recent merges.<br />The XML support is adding most of them, by doing something similar to<br />what the API tests for Quantum v1 did (execute the whole test cases<br />with both format).<br />While I understand and support this approach, there are two things to be noted:<br />- Unit test execution times have more than doubled<br />- With Quantum v2 we adopted a slightly different approach, by<br />separating API and DB tests. The formers tests (that we have for the<br />core API as well as many extensions) are the ones aimed at validating<br />correct serialization/deserialization. If we keep following this<br />approach, we might be able to save a lot of format-specific unit tests<br />for DB logic. From my perspective I don't think we will be losing any<br />coverage - but I might be missing something fundamental.<br /><br />I recall Aaron and BobK in recent posts were suggesting to move to<br />parallel testing; this one of the first things we should address in<br />Havana. In the meanwhile, let me know if you think we can do something<br />to reduce the amount of resources used by unit tests.<br /><br />I am also noticing that the memory leaks which were reduced a lot<br />during G-1 are hitting again, on low memory workers (2Gb); probably no<br />new leak has been introduced, it's just that the effect of the few<br />ones which were left it's now being felt more.<br /><br />Salvatore<br /><br />_______________________________________________<br />OpenStack-dev mailing list<br />OpenStack-dev@lists.openstack.org<br />http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</p>
</div></font>