On Tue, Jun 28, 2016 at 05:20:03PM +0200, Lukáš Doktor wrote:
Dne 28.6.2016 v 16:10 Kevin Wolf napsal(a):
Am 28.06.2016 um 11:02 hat Niels de Vos geschrieben:
Hi,
it seems we broke the block/gluster.c functionality with a recent patch
in upstream Gluster. In order to prevent this from happening in the
future, I would like to setup a Jenkins job that installs a plan CentOS
with its version of QEMU, and nightly builds of upstream Gluster.
Getting a notification about breakage the day after a patch got merged
seems like a reasonable approach.
The test should at least boot the generic CentOS cloud image (slightly
modified with libguestfs) and return a success/fail. I am wondering if
there are automated tests like this already, and if I could (re)use some
of the scripts for it. At the moment, I am thinking to so it like this:
- download the image [1]
- set kernel parameters to output on the serial console
- add a auto-login user/script
- have the script write "bootup complete" or something
- have the script poweroff the VM
- script that started the VM checks for the "bootup complete" message
- return success/fail
Sounds like something that Avocado should be able (or actually is
designed) to do. I can't tell you the details of how to write the test
case for it, but I'm adding a CC to Lukáš who probably can (and I think
it shouldn't be hard anyway).
Kevin
Hello guys,
yes, Avocado is designed to do this and I believe it even contain quite a
few Gluster tests. You can look for them in avocado-vt or ping our QA folks
who might give you some pointers (cc Xu nad Hao).
Regarding the building the CI I use the combination of Jenkins, Jenkins job
builder and Avocado (avocado-vt) to check power/arm
weekly/per-package-update. Jenkins even supports github and other triggers
if you decide you have enough resources to check each PR/commit. It all
depends on what HW you have available.
That looks promising! Its a bit more complex (or at least 'new' for me)
than that I was hoping. There is Gluster support in there, I found a
description of it here:
http://avocado-vt.readthedocs.io/en/latest/GlusterFs.html
http://avocado-vt.readthedocs.io/en/latest/RunQemuUnittests.html
Browsing through the docs does not really explain me how to put a
configuration file together that runs the QEMU tests with a VM image on
Gluster though. I probably need to read much more, but a pointer or very
minimal example would be much appreciated.
When I'm able to run avocado-vt, it should be trivial to put that in a
Jenkins job :)
Many thanks,
Niels