Re: [Gluster-devel] GlusterFS unit test framework
On 06/03/2014, at 9:01 PM, Luis Pabon wrote: Hi all, The patch is now live in GlusterFS. This patch will allow you to write unit tests for your new patches or if you want, you can start writing unit tests for older code. Writing unit tests for older code is a great way to learn the code (which I will be doing :-)). I have also created a presentation to help explain what unit tests are: http://slides-lpabon.rhcloud.com/feb24_glusterfs_unittest.html#/ The framework will also help in situations where developers are depending on APIs from other contributors. In this situation, the developer can write their patch and test their code by mocking any APIs their code is dependent on. This method allows for parallel development without the need to wait for the APIs to be available. It turns out this patch is breaking the build on EL5. :( Looking through the docs on your cmockery2 GitHub repo, it's hard to tell which platforms are supported. Should it work on EL5? :) Regards and best wishes, Justin Clift -- Open Source and Standards @ Red Hat twitter.com/realjustinclift ___ Gluster-devel mailing list Gluster-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/gluster-devel
Re: [Gluster-devel] GlusterFS unit test framework
Hi all, The patch is now live in GlusterFS. This patch will allow you to write unit tests for your new patches or if you want, you can start writing unit tests for older code. Writing unit tests for older code is a great way to learn the code (which I will be doing :-)). I have also created a presentation to help explain what unit tests are: http://slides-lpabon.rhcloud.com/feb24_glusterfs_unittest.html#/ The framework will also help in situations where developers are depending on APIs from other contributors. In this situation, the developer can write their patch and test their code by mocking any APIs their code is dependent on. This method allows for parallel development without the need to wait for the APIs to be available. - Luis On 02/20/2014 02:00 PM, Luis Pabon wrote: Hi all, I have uploaded my patch to add unit test support to GlusterFS. The unit test framework provides integration with Jenkins and coverage support. The patch is: http://review.gluster.org/#/c/7145/ * Documentation: https://github.com/lpabon/glusterfs/blob/xunit/doc/hacker-guide/en-US/markdown/unittest.md * Integration with Jenkins: http://build.gluster.org/job/glusterfs-unittests/ * Tracker Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1067059 This is just the start. If this is accepted, we would need developers to start adding unit tests as part of their patches. Imagine, hundreds, no wait, thousands of unit tests running on every patch submit :-). Let me know what you think. - Luis ___ Gluster-devel mailing list Gluster-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/gluster-devel ___ Gluster-devel mailing list Gluster-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/gluster-devel
Re: [Gluster-devel] GlusterFS unit test framework
Sweet... FWIW, I think it would be fairly easy to add in support to have the infrastructure use Puppet-Gluster to automatically build and test a few different complete clusters. I'm happy to help out if someone wants to undertake this, or work on it outright if someone wants to sponsor it. With more engineering this could even test things like: build cluster, add files, measure performance, add hosts, expand cluster, change files, re-measure performance ... Cheers, James On Thu, Feb 20, 2014 at 2:00 PM, Luis Pabon lpa...@redhat.com wrote: Hi all, I have uploaded my patch to add unit test support to GlusterFS. The unit test framework provides integration with Jenkins and coverage support. The patch is: http://review.gluster.org/#/c/7145/ * Documentation: https://github.com/lpabon/glusterfs/blob/xunit/doc/hacker-guide/en-US/markdown/unittest.md * Integration with Jenkins: http://build.gluster.org/job/glusterfs-unittests/ * Tracker Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1067059 This is just the start. If this is accepted, we would need developers to start adding unit tests as part of their patches. Imagine, hundreds, no wait, thousands of unit tests running on every patch submit :-). Let me know what you think. - Luis ___ Gluster-devel mailing list Gluster-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/gluster-devel ___ Gluster-devel mailing list Gluster-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/gluster-devel
Re: [Gluster-devel] GlusterFS unit test framework
This is just the start. If this is accepted, we would need developers to start adding unit tests as part of their patches. Imagine, hundreds, no wait, thousands of unit tests running on every patch submit :-). We're definitely going to need more test servers. ___ Gluster-devel mailing list Gluster-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/gluster-devel
Re: [Gluster-devel] GlusterFS unit test framework
On Thu, Feb 27, 2014 at 10:23 PM, Jeff Darcy jda...@redhat.com wrote: We're definitely going to need more test servers. So I had this dream... To build a test cluster on ARM servers... I've saved up a bunch of cheap USB keys for storage... Anyone have a rack of ARM servers or a bunch of Beaglebone's or similar? Could be a cool lightweight way to test GlusterFS... Could be a cool way to provide better scaling/performance for smaller (TB wise) clusters... Someone with hardware, ping me :) James ___ Gluster-devel mailing list Gluster-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/gluster-devel