<div dir="ltr">Jeremy:<div><br></div><div>Thanks for your response! So the solution I proposed fits in common openstack practices, that's cool. </div><div><br></div><div>I will definitely use zuul-cloner as it works for this case, but I would use it inside our script and</div><div>then invoke the script in job macro. That will ensure that we will have the same mechanism</div><div>working on local machine and on CI.</div><div><br></div><div>What do you think?</div><div><br></div><div>Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 24, 2016 at 2:50 PM, Jeremy Stanley <span dir="ltr"><<a href="mailto:fungi@yuggoth.org" target="_blank">fungi@yuggoth.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2016-03-24 11:44:16 +0100 (+0100), Sylwester Brzeczkowski wrote:<br>
> We want to enable proper testing for Nailgun (fuel-web) extensions. We want<br>
> to implement a script which will clone all required repos for test and<br>
> actually run the tests.<br>
><br>
> The script will be placed in openstack/fuel-web [0] repo and should work<br>
> locally and also on openstack CI (gate jobs). All Nailgun Extensions should<br>
> have Nailgun in it's requirements so I think it's ok.<br>
><br>
> What do you think about the idea? Is it a good approach?<br>
> Am I missing some already existing solutions for this problem?<br>
</span>[...]<br>
<br>
This is basically what devstack-gate does for testing OpenStack<br>
deployments with DevStack. The logic for getting change dependencies<br>
right is far more complex than simply cloning a bunch of<br>
repositories. You need to make sure you try to fetch appropriate Zuul<br>
refs for all of them when available, fallback to sane branch<br>
selections when not all of the repos have the same branches, make<br>
use of repo caches for improved performance and update them to<br>
current state from our remote mirror, et cetera.<br>
<br>
Zuul includes a standalone command-line tool which also performs<br>
these operations, and we make it available on all our job workers at<br>
/usr/zuul-env/bin/zuul-cloner. Check job macros in the<br>
project-config directory for numerous examples of creating clonemaps<br>
and invoking zuul-cloner in jobs.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Jeremy Stanley<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><b>Sylwester Brzeczkowski</b><br></div>Python Software <span>Engineer</span><br>Product Development-Core : Product Engineering<br></div></div></div></div>
</div>