<div dir="ltr">It is much better to code review after regression tests pass (premise being human eye time is more precious than build server run time)<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 12, 2014 at 10:53 AM, Kaleb S. KEITHLEY <span dir="ltr">&lt;<a href="mailto:kkeithle@redhat.com" target="_blank">kkeithle@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">&lt;top-post&gt;<br>
How about also an auto run of regression at +1 or +2 code review?<br>
&lt;/top-post&gt;<div class=""><br>
<br>
On 05/12/2014 01:49 PM, Raghavendra G wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
+1 to create RPMs when there is atleast a +1 on code review.<br>
<br>
<br>
On Mon, May 5, 2014 at 8:06 PM, Niels de Vos &lt;<a href="mailto:ndevos@redhat.com" target="_blank">ndevos@redhat.com</a><br></div><div><div class="h5">
&lt;mailto:<a href="mailto:ndevos@redhat.com" target="_blank">ndevos@redhat.com</a>&gt;&gt; wrote:<br>
<br>
    On Mon, May 05, 2014 at 07:13:14PM +0530, Lalatendu Mohanty wrote:<br>
     &gt; On 05/02/2014 04:07 PM, Niels de Vos wrote:<br>
     &gt; &gt;Hi all,<br>
     &gt; &gt;<br>
     &gt; &gt;at the moment we have some duplicate RPM-building tests running:<br>
     &gt; &gt;<br>
     &gt; &gt;1. upon patch submission, next to smoke (compile+posix) tests<br>
     &gt; &gt;2. rpm.t in the regression tests framework<br>
     &gt; &gt;<br>
     &gt; &gt;Both have their own advantages, and both cover a little different<br>
     &gt; &gt;use-case.<br>
     &gt; &gt;<br>
     &gt; &gt;Notes and observations for 1:<br>
     &gt; &gt;<br>
     &gt; &gt;   The advantage of (1) is that the built rpm-packages are made<br>
    available<br>
     &gt; &gt;   for downloading, and users can test the change easier.<br>
     &gt; &gt;<br>
     &gt; &gt;   It is unclear to me how often this is used, many patches need<br>
    several<br>
     &gt; &gt;   revisions before they get accepted, each new revision gets new<br>
     &gt; &gt;   packages build (takes time for each patch submission). I do<br>
    not know<br>
     &gt; &gt;   how long these packages are kept, or when they are deleted.<br>
     &gt; &gt;<br>
     &gt; &gt;   Building is done for EPEL-6 and Fedora (exact version unclear<br>
    to me).<br>
     &gt; &gt;<br>
     &gt; &gt;<br>
     &gt; &gt;Notes and observations for 2:<br>
     &gt; &gt;<br>
     &gt; &gt;   Building is only done when there are changes related to the<br>
    packaging.<br>
     &gt; &gt;   When there are only changes in source code or documentation,<br>
    there is<br>
     &gt; &gt;   no need to try and build the rpms (saves ca. 5 minutes).<br>
     &gt; &gt;<br>
     &gt; &gt;   The packages are build for EPEL-5 and EPEL-6 only. The resulting<br>
     &gt; &gt;   packages are deleted automatically and can not be downloaded.<br>
     &gt; &gt;<br>
     &gt; &gt;   When writing rpm.t, we decided that building for Fedora was a<br>
    little<br>
     &gt; &gt;   dangerous, there are the occasional incompatible changes<br>
    introduced.<br>
     &gt; &gt;   We also don&#39;t want to bother every developer too much with the<br>
     &gt; &gt;   packaging.<br>
     &gt; &gt;<br>
     &gt; &gt;<br>
     &gt; &gt;Suggestion for improving the current duplicate package building:<br>
     &gt; &gt;<br>
     &gt; &gt;   Building packages takes a lot of resources. It does not seem<br>
    efficient<br>
     &gt; &gt;   to me to build packages for two EPEL-6 and Fedora for each patch<br>
     &gt; &gt;   submission. This takes additional time for a check (smoke.sh)<br>
    that is<br>
     &gt; &gt;   tried to keep quick. I also doubt that many of the generated<br>
    packages<br>
     &gt; &gt;   are actually used by anyone. Most developers (hopefully) test<br>
    their<br>
     &gt; &gt;   changes before submitting the patch(es) to Gerrit.<br>
     &gt; &gt;<br>
     &gt; &gt;   There is a definite need to verify that the packaging still<br>
    works, it<br>
     &gt; &gt;   helps to catch packaging errors as early as possible. Testing<br>
    each<br>
     &gt; &gt;   patch submission might be overkill. Creating packages as part<br>
    of the<br>
     &gt; &gt;   regression tests (and make them available) might be too late,<br>
     &gt; &gt;   regression testing tends to take quite long.<br>
     &gt; &gt;<br>
     &gt; &gt;   From my understanding, the only users that are interested in<br>
    these<br>
     &gt; &gt;   very early packages, are the QA folks. We definitely want<br>
    them to test<br>
     &gt; &gt;   whatever the developers change, so we should accommodate them<br>
    as much<br>
     &gt; &gt;   as possible.<br>
     &gt; &gt;<br>
     &gt; &gt;   After some discussion, Pranith tossed the idea about building<br>
    packages<br>
     &gt; &gt;   when at lease some review of the change has been done. I<br>
    think this is<br>
     &gt; &gt;   a great idea! So, I&#39;d like to propose building packages when<br>
    at least<br>
     &gt; &gt;   one +1 has been given on a change. Alternatively, it should be<br>
     &gt; &gt;   possible for the QA people to submit a Jenkins job that<br>
    builds the<br>
     &gt; &gt;   packages earlier already. This can then replace both current<br>
    building<br>
     &gt; &gt;   jobs.<br>
     &gt; &gt;<br>
     &gt; &gt;<br>
     &gt; &gt;Ideas and further discussions are very much welcome, thanks,<br>
     &gt; &gt;Niels<br>
     &gt; &gt;<br>
     &gt; &gt;Related: <a href="http://review.gluster.org/7610" target="_blank">http://review.gluster.org/7610</a><br>
     &gt;<br>
     &gt; I am not sure if we have a Jenkins job to create RPM for a<br>
     &gt; particular change-id. if not, we should have one. Should we also<br>
     &gt; plan for &quot;deb&quot; (Debian packages)  too? As we have quite a few users<br>
     &gt; using Debian/Ubuntu distribution.<br>
<br>
    Yes, .deb would be a next step, probably followed by NetBSD and OSX.<br>
<br>
    Any objections if the current devrpms jobs (upon patch submission) will<br>
    be removed, and inserted at a +1 Code-Review or +1 Verified? Any<br>
    volunteers that know Jenkins and its Gerrit integration well enough to<br>
    make this happen?<br>
<br>
    I have no idea how to create Jenkins jobs that can create RPMs, probably<br>
    Luis can help with that.<br>
<br>
    Thanks,<br>
    Niels<br>
    ______________________________<u></u>_________________<br>
    Gluster-devel mailing list<br></div></div>
    <a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a> &lt;mailto:<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.<u></u>org</a>&gt;<div class=""><br>

    <a href="http://supercolony.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>devel</a><br>
<br>
<br>
<br>
<br>
--<br>
Raghavendra G<br>
<br>
<br>
______________________________<u></u>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>devel</a><br>
<br>
</div></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
<br>
Kaleb</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>devel</a><br>
</div></div></blockquote></div><br></div></div>