[Gluster-infra] [Bug 1291537] [RFE] Provide mechanism to spin up reproducible test environment for all developers

bugzilla at redhat.com bugzilla at redhat.com
Mon Dec 28 08:50:45 UTC 2015


--- Comment #3 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/12753 committed in master by Raghavendra
Talur (rtalur at redhat.com) 
commit 78305ce9604329250dd4a9f2335587957d71c701
Author: Raghavendra Talur <rtalur at redhat.com>
Date:   Tue Nov 24 18:18:01 2015 +0530

    tests: Introduce a Vagrant VM based test environment

    This introduces a mechanism using which a developer
    could easily test the Gluster code in a VM environment.

    Also, it will help bring uniformity in the environments
    used by various developers.

    How to use:
    1. git checkout -b custom-branch-name
    2. Make changes
    3. Execute ./run-tests-in-vagrant.sh

    What happens in the background:
    1. A new directory is created:

       It will serve as the Vagrant dir which has the
       Vagrantfile and related ansible playbooks.

       The VM is started using Vagrant and provisioned
       using ansible.

    2. The source dir is recursively copied over to the
       VM under /home/vagrant/glusterfs.

    3. Gluster is source installed in VM.

    What happens in the foreground:
    1. run-tests.sh is executed in VM using ssh and output is displayed
       in the same terminal with option to use ctrl-c to interrupt the test
       midway. The VM would still persist and you could ssh into it.

    Also, you can checkout a different branch elsewhere and execute
    run-tests-in-vagrant.sh there to get another VM which would
    execute tests on that code.

    If you wish to make some changes in the code, you could:
    a. Change the code in host and run the script again to repeat
       the whole process.
    b. vagrant ssh into the VM and make the changes in the VM.

    Co-authored-by: Kaushal M <kaushal at redhat.com>
    Co-authored-by: Michael Adam <obnox at samba.org>

    Change-Id: Ic87801172c8b614cdecbdf2a765e1b3370a5faf7
    BUG: 1291537
    Signed-off-by: Michael Adam <obnox at samba.org>
    Signed-off-by: Raghavendra Talur <rtalur at redhat.com>
    Reviewed-on: http://review.gluster.org/12753
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Niels de Vos <ndevos at redhat.com>

You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=eeLGjub0Vi&a=cc_unsubscribe

More information about the Gluster-infra mailing list