<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 7:35 PM, Dugger, Donald D <span dir="ltr"><<a href="mailto:donald.d.dugger@intel.com" target="_blank">donald.d.dugger@intel.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well, the first goal is to get the scheduler code into a separate tree, even though that code is still utilizing common code from nova.  Right now just about every scheduler file includes some nova modules.  Ultimately yes, we want to remove the depency on nova but that is a future effort and would create way too many changes for the immediate future.<br>

</blockquote><div><br></div><div>The nova code you are trying to use isn't a public API and can change at any time. Before considering using gantt we would have to fully remove any nova imports in gantt.</div><div> </div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
When we want to cut the cord from nova it'll be easy, just remove that line from the `test-requirements.txt' file and we'll be forced to replace all of the nova code.<br></blockquote><div><br></div><div>I'm not sure it will actually be that easy.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im HOEnZb"><br>
--<br>
Don Dugger<br>
"Censeo Toto nos in Kansa esse decisse." - D. Gale<br>
Ph: <a href="tel:303%2F443-3786" value="+13034433786">303/443-3786</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">-----Original Message-----<br>
From: Robert Collins [mailto:<a href="mailto:robertc@robertcollins.net">robertc@robertcollins.net</a>]<br>
Sent: Tuesday, January 21, 2014 5:16 PM<br>
To: OpenStack Development Mailing List (not for usage questions)<br>
Subject: Re: [openstack-dev] [gantt] How to include nova modules in unit tests<br>
<br>
On 22 January 2014 11:57, Dugger, Donald D <<a href="mailto:donald.d.dugger@intel.com">donald.d.dugger@intel.com</a>> wrote:<br>
> I almost have the unit tests for gantt working except for one problem<br>
> - is there a way to have the test infrastructure allow the gantt tree<br>
> to import objects from the nova tree.<br>
><br>
><br>
><br>
> The problem is that we want to break out just the scheduler code into<br>
> the gantt tree without duplicating all of nova.  The current scheduler<br>
> has many imports of nova objects, which is not a problem except for the unit tests.<br>
> The unit tests run in an environment that doesn't include the nova<br>
> tree so all of those imports wind up failing.<br>
<br>
The goal though is to have an independent system; perhaps marking all the tests that still depend on tendrils of nova 'skipped' and then work on burning down the skips to 0 is a better approach than making it easy to have such dependencies?<br>


<br>
-Rob<br>
<br>
--<br>
Robert Collins <<a href="mailto:rbtcollins@hp.com">rbtcollins@hp.com</a>><br>
Distinguished Technologist<br>
HP Converged Cloud<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>