<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 17 March 2016 at 10:50, Niels de Vos <span dir="ltr">&lt;<a href="mailto:ndevos@redhat.com" target="_blank">ndevos@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Mar 09, 2016 at 08:26:44PM +0530, M S Vishwanath Bhat wrote:<br>
&gt; On 9 March 2016 at 19:39, Kaushal M &lt;<a href="mailto:kshlmster@gmail.com">kshlmster@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Wed, Mar 9, 2016 at 7:02 PM, M S Vishwanath Bhat &lt;<a href="mailto:msvbhat@gmail.com">msvbhat@gmail.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; When we were discussing about the readiness of distaf for upstream test<br>
&gt; &gt; &gt; automation, this question came up, That we should have a process or<br>
&gt; &gt; workflow<br>
&gt; &gt; &gt; for proposing, reviewing and including the tests somewhere.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Right now the tests are part of distaf repository<br>
&gt; &gt; &gt; (<a href="http://github.com/gluster/distaf" rel="noreferrer" target="_blank">github.com/gluster/distaf</a>) itself. And contributing to distaf is by<br>
&gt; &gt; sending<br>
&gt; &gt; &gt; a PR. But we want this to be included in gerrit so that review and<br>
&gt; &gt; &gt; contributing process becomes much easier. But the question still<br>
&gt; &gt; remains...<br>
&gt; &gt; &gt; where? Right now I can think of below options.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; * Use the same distaf repo in github for tests as well.<br>
&gt; &gt; &gt; * Create a separate repo distaf_gluster_tests (or something similar) and<br>
&gt; &gt; &gt; have all the tests there.<br>
&gt; &gt; &gt; * Or have a tests/distaf/ directory inside glusterfs repository. And this<br>
&gt; &gt; &gt; tests can be bundled in a rpm and distributed. This directory will have<br>
&gt; &gt; both<br>
&gt; &gt; &gt; the test cases and related library functions.<br>
&gt; &gt;<br>
&gt; &gt; I prefer this approach. It makes it easier for developers to submit<br>
&gt; &gt; tests along with their changes, as is the case with our regression<br>
&gt; &gt; tests now.<br>
&gt; &gt;<br>
&gt; &gt; By library functions, I&#39;m assuming you mean helper libraries related<br>
&gt; &gt; to gluster, which will be used in the tests which will be written.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Yes, I mean helper functions which are related to gluster. The framework<br>
&gt; itself will be  made a python package. At least that&#39;s the plan.<br>
<br>
</div></div>+1 for the tests in tests/distaf/ . I think I would like the libs to be<br>
part of the main distaf project. That would make it easier to run distaf<br>
for other projects that integrate with Gluster (like Samba,<br>
NFS-Ganesha and the like). The upstream projects can that use distaf for<br>
their integration with Gluster if they choose so.<br></blockquote><div><br></div><div>My concern with having libs in main distaf project is that, libs and test cases are very much tied together. So when someone writes a testcase, they write and/or modify the related gluster libs along with it. And the one needs to go back and forth between the testcase and gluster libs while writing and debugging the case. If they are in separate repo/package, it makes it bit difficult (not impossible) for test case writer.</div><div><br></div><div>If everyone is of the same opinion that gluster libs should be part of main distaf repo, I can still do it when I package it next week.</div><div><br></div><div>Best Regards,</div><div>Vishwanath</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
&gt; &gt; I&#39;m also in favor of including them here as well. This will help keep<br>
&gt; &gt; DiSTAF free of an Gluster specific cruft and allow it to be (possibly)<br>
&gt; &gt; reusable by others.<br>
&gt; &gt;<br>
&gt;<br>
&gt; The recent changes makes it specific to gluster, but very easy to make it<br>
&gt; generic.<br>
<br>
</span>Starting Gluster specific is fine, later on when things are in use and<br>
working the way we need it should be trivial to make it more generic.<br>
Just keep a generic way for adding new functionalities for now, and file<br>
issues in GitHub for the parts that need to get refactored.<br>
<br>
The sooner we can start using distaf and gain (more) real world<br>
experience the better.<br>
<br>
Thanks,<br>
Niels<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
&gt; Best Regards,<br>
&gt; Vishwanath<br>
&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Please let us know what your preferred option is. If you have any other<br>
&gt; &gt; &gt; ideas, please let us know as well.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Best Regards,<br>
&gt; &gt; &gt; Vishwanath<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; Gluster-devel mailing list<br>
&gt; &gt; &gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; &gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
&gt; &gt;<br>
<br>
&gt; _______________________________________________<br>
&gt; Gluster-devel mailing list<br>
&gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
<br>
</div></div></blockquote></div><br></div></div>