[openstack-dev] [Infra] Cross-repository testing

Sylwester Brzeczkowski sbrzeczkowski at mirantis.com
Fri Mar 25 12:31:02 UTC 2016


Jeremy:

Thanks for your response! So the solution I proposed fits in common
openstack practices, that's cool.

I will definitely use zuul-cloner as it works for this case, but I would
use it inside our script and
then invoke the script in job macro. That will ensure that we will have the
same mechanism
working on local machine and on CI.

What do you think?

Regards

On Thu, Mar 24, 2016 at 2:50 PM, Jeremy Stanley <fungi at yuggoth.org> wrote:

> On 2016-03-24 11:44:16 +0100 (+0100), Sylwester Brzeczkowski wrote:
> > We want to enable proper testing for Nailgun (fuel-web) extensions. We
> want
> > to implement a script which will clone all required repos for test and
> > actually run the tests.
> >
> > The script will be placed in openstack/fuel-web [0] repo and should work
> > locally and also on openstack CI (gate jobs). All Nailgun Extensions
> should
> > have Nailgun in it's requirements so I think it's ok.
> >
> > What do you think about the idea? Is it a good approach?
> > Am I missing some already existing solutions for this problem?
> [...]
>
> This is basically what devstack-gate does for testing OpenStack
> deployments with DevStack. The logic for getting change dependencies
> right is far more complex than simply cloning a bunch of
> repositories. You need to make sure you try to fetch appropriate Zuul
> refs for all of them when available, fallback to sane branch
> selections when not all of the repos have the same branches, make
> use of repo caches for improved performance and update them to
> current state from our remote mirror, et cetera.
>
> Zuul includes a standalone command-line tool which also performs
> these operations, and we make it available on all our job workers at
> /usr/zuul-env/bin/zuul-cloner. Check job macros in the
> project-config directory for numerous examples of creating clonemaps
> and invoking zuul-cloner in jobs.
> --
> Jeremy Stanley
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



-- 
*Sylwester Brzeczkowski*
Python Software Engineer
Product Development-Core : Product Engineering
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160325/3474a81b/attachment.html>


More information about the OpenStack-dev mailing list