<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, 19 Oct 2017 at 20:12 Greg Sheremeta <<a href="mailto:gshereme@redhat.com">gshereme@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Since I needed to do a bunch of ovirt-engine recompiles today and I'm disabling checks to make it go faster, I figured I'd share:<div><br></div><div>make install-dev PREFIX=/home/greg/ovirt-engine DEV_EXTRA_BUILD_FLAGS="-Danimal.sniffer.skip -Dcheckstyle.skip -Dgwt.compiler.localWorkers=1" DEV_EXTRA_BUILD_FLAGS_GWT_DEFAULTS="-Dgwt.cssResourceStyle=pretty -Dgwt.userAgent=safari" BUILD_UT=0 BUILD_GWT=1<br></div><div><br></div><div>make install-dev -- note I left out "clean", so that speeds things up<br></div><div><br></div></div></blockquote><div><br></div><div>Then this worth a new make rule for 'install-dev-quick' or similar that will have all of those inside. another option is to add a SKIP_CHECKS=1 that will achieve the same without extra rule:</div><div><br></div><div> make install-dev SKIP_CHECKS=1<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>-Danimal.sniffer.skip -- skips animal sniffer [1], which takes quite some time<br></div><div><br></div><div>-Dcheckstyle.skip -- skips checkstyle, which also takes much time<br></div><div><br></div><div>-Dgwt.cssResourceStyle=pretty -- doesn't completely obfuscate classes in GWT, which allows you to use Dev Tools to inspect elements and see exactly where they come from [example: <div class="row GHW0VSTPAD-org-ovirt-engine-ui-common-widget-uicommon-NetworkFilterParameterEditor_WidgetUiBinderImpl_GenCss_style-wrapper"> shows me I need to go right to the NetworkFilterParameterEditor class to mess with this widget, specifically the "wrapper" css style<br></div><div><br></div><div>-Dgwt.userAgent=safari -- if building GWT, build only 1 permutation for Chrome/Safari<br></div><div><br></div><div>-Dgwt.compiler.localWorkers=1 -- use 1 thread for compiling GWT. Since I only used Safari, it's not necessary to have this here on this particular compile run, but you'll want to use this when doing more than 1 permutation/browser. It'll help prevent a crash during GWT compile, which, of course, is the ultimate time waster :)<br></div><div><br></div><div>BUILD_UT=0 -- skip unit tests<br></div><div><br></div><div>BUILD_GWT=1 -- if you don't need a GWT rebuild, change to 0 for a *huge* speedup :) [there must be a way to have that auto-detected ... hmm ...]<br></div><div><br></div></div></blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>...</div><div><br></div><div>Before pushing a final version of a patch, you should enable the checks and make sure they all pass. (They do run in CI, though.)</div><div><br></div><div>Best wishes,</div><div>Greg</div><div><br></div><div><br></div><div>[1] <a href="http://www.mojohaus.org/animal-sniffer/" target="_blank">http://www.mojohaus.org/animal-sniffer/</a></div></div><div class="gmail_extra"></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 17, 2017 at 4:01 PM, shubham dubey <span dir="ltr"><<a href="mailto:sdubey504@gmail.com" target="_blank">sdubey504@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks,it worked.<br></div><div class="m_3690208604702338252HOEnZb"><div class="m_3690208604702338252h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 18, 2017 at 1:24 AM, Roy Golan <span dir="ltr"><<a href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>The answer is in the pom.xml of uicommonweb, in its groupId:</div><div> grep parent -A 1 frontend/webadmin/modules/uicommonweb/pom.xml <br></div><div><br></div><div>So change it to "-pl <b>org.ovirt.engine.ui</b>:uicommonweb"</div><div><br></div><div><br></div></div><div class="m_3690208604702338252m_827515456027717539HOEnZb"><div class="m_3690208604702338252m_827515456027717539h5"><br><div class="gmail_quote"><div dir="ltr">On Tue, 17 Oct 2017 at 21:54 shubham dubey <<a href="mailto:sdubey504@gmail.com" target="_blank">sdubey504@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,<br></div><div>I have tried to build uicommonweb alone using <br></div><div>make install-dev PREFIX="$HOME/ovirt-engine" EXTRA_BUILD_FLAGS="-pl org.ovirt.engine.core:uicommonweb"</div><div><br></div><div>but getting error that <br></div><div>[ERROR] Could not find the selected project in the reactor: org.ovirt.engine.core:uicommonweb</div><div><br></div><div>Am I doing something wrong?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 17, 2017 at 11:50 PM, shubham dubey <span dir="ltr"><<a href="mailto:sdubey504@gmail.com" target="_blank">sdubey504@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks,<br></div>This is exactly what I needed:)<br></div><div class="m_3690208604702338252m_827515456027717539m_-5943246545178880819m_6369822523252684105HOEnZb"><div class="m_3690208604702338252m_827515456027717539m_-5943246545178880819m_6369822523252684105h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 17, 2017 at 11:37 PM, Greg Sheremeta <span dir="ltr"><<a href="mailto:gshereme@redhat.com" target="_blank">gshereme@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><p style="margin:0px 0px 8.5pt;background-color:rgb(255,255,255)"><font color="#333333" face="source sans pro, open sans, helvetica neue, helvetica, arial, sans-serif">I never do it, but</font></p><p style="margin:0px 0px 8.5pt;background-color:rgb(255,255,255)"><font color="#333333" face="source sans pro, open sans, helvetica neue, helvetica, arial, sans-serif"><a href="https://www.ovirt.org/develop/developer-guide/engine/engine-development-environment" target="_blank">https://www.ovirt.org/develop/developer-guide/engine/engine-development-environment</a> has an example :</font><br></p><p style="margin:0px 0px 8.5pt;color:rgb(51,51,51);font-family:"source sans pro","open sans","helvetica neue",helvetica,arial,sans-serif;background-color:rgb(255,255,255)"><br></p><p style="margin:0px 0px 8.5pt;color:rgb(51,51,51);font-family:"source sans pro","open sans","helvetica neue",helvetica,arial,sans-serif;background-color:rgb(255,255,255)">To rebuild a single artifact, for example utils:</p><pre style="font-family:menlo,monaco,consolas,"courier new",monospace;font-size:11pt;padding:8pt;margin-top:0px;margin-bottom:8.5pt;line-height:1.42857;word-wrap:break-word;color:rgb(51,51,51);background-color:rgb(245,245,245);border:1px solid rgb(204,204,204);border-radius:4px"><code style="font-family:'menlo','monaco','consolas','courier new',monospace;font-size:inherit;padding:0px;color:inherit;background-color:transparent;border-radius:0px;white-space:pre-wrap"> make clean install-dev PREFIX=$HOME/ovirt-engine \
EXTRA_BUILD_FLAGS="-pl org.ovirt.engine.core:utils"</code></pre><div dir="auto"><br></div><div dir="auto">You can also disable animal sniffer, check style, unit tests, and GWT to speed things up. Just make sure they actually run before you push :) </div><br><div data-smartmail="gmail_signature">Greg</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_3690208604702338252m_827515456027717539m_-5943246545178880819m_6369822523252684105m_5464643324448865434h5">On Oct 17, 2017 1:56 PM, "shubham dubey" <<a href="mailto:sdubey504@gmail.com" target="_blank">sdubey504@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_3690208604702338252m_827515456027717539m_-5943246545178880819m_6369822523252684105m_5464643324448865434h5"><div dir="ltr"><div>Hi,</div><div>I have a simple query. <br></div><div><br></div><div>Whenever I do any change in my code I <br></div><div>run "make install-dev PREFIX="$HOME/ovirt-engine"".</div><div>But it takes a large time to compile. <br></div><div>I think there is a way to compile only that part of code <br></div><div>which I have changed. Like if I make changes in <br></div><div>uicommonweb then, how I compile only that part?</div><div><br></div><div>Thanks in advance.<br></div><div><br></div><div>Shubham<br></div></div>
<br></div></div>_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br></blockquote></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a></blockquote></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div><div class="gmail_extra">-- <br><div class="m_3690208604702338252gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:uppercase"><span>GREG</span> <span>SHEREMETA</span></p><p style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX</span><span style="color:rgb(170,170,170);margin:0px"></span></p><p style="font-family:overpass,sans-serif;margin:0px;font-size:10px;color:rgb(153,153,153)"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat NA<span><br><br></span></a></p><p style="font-family:overpass,sans-serif;margin:0px 0px 6px;font-size:10px;color:rgb(153,153,153)"><span style="margin:0px;padding:0px"><a href="mailto:gshereme@redhat.com" style="color:rgb(0,136,206);margin:0px" target="_blank">gshereme@redhat.com</a> </span> <span>IRC: <span>gshereme</span></span></p><table style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:medium" border="0"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"><img src="https://www.redhat.com/files/brand/email/sig-redhat.png" width="90" height="auto"></a></td></tr></tbody></table></div></div></div></div></div></div></div></div></div>
</div>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a></blockquote></div></div>