From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHvNH-0006wc-Fr for qemu-devel@nongnu.org; Tue, 28 Jun 2016 11:56:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHvNC-0005vx-CE for qemu-devel@nongnu.org; Tue, 28 Jun 2016 11:56:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHvNC-0005vs-4J for qemu-devel@nongnu.org; Tue, 28 Jun 2016 11:56:26 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7D27E70AA3 for ; Tue, 28 Jun 2016 15:56:25 +0000 (UTC) Date: Tue, 28 Jun 2016 17:56:23 +0200 From: Niels de Vos Message-ID: <20160628155623.GH10557@ndevos-x240.usersys.redhat.com> References: <20160628090209.GD10557@ndevos-x240.usersys.redhat.com> <20160628141044.GH6800@noname.redhat.com> <72a6e933-55fc-f448-a0bc-3861b030b73c@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dFWYt1i2NyOo1oI9" Content-Disposition: inline In-Reply-To: <72a6e933-55fc-f448-a0bc-3861b030b73c@redhat.com> Subject: Re: [Qemu-devel] Automated testing of block/gluster.c with upstream Gluster List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?B?THVrw6HFoQ==?= Doktor Cc: Kevin Wolf , areis@redhat.com, qemu-devel@nongnu.org, Xu Tian , Hao Liu --dFWYt1i2NyOo1oI9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 28, 2016 at 05:20:03PM +0200, Luk=C3=A1=C5=A1 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, > > >=20 > > > it seems we broke the block/gluster.c functionality with a recent pat= ch > > > 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 Cent= OS > > > 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. > > >=20 > > > 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 s= ome > > > of the scripts for it. At the moment, I am thinking to so it like thi= s: > > > - 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 > >=20 > > 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=C3=A1=C5=A1 who probably can (a= nd I think > > it shouldn't be hard anyway). > >=20 > > Kevin > >=20 >=20 > Hello guys, >=20 > 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 fol= ks > who might give you some pointers (cc Xu nad Hao). >=20 > Regarding the building the CI I use the combination of Jenkins, Jenkins j= ob > 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 --dFWYt1i2NyOo1oI9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJXcp4nAAoJECXo5AApwsWzduwP/0XPfliklTPE74hQiiQeaO9P 3ppmbsTpAZE+b2Oorfoohp35rvS/DjAecqkZtYU9zDtyLE9aip3GzdRti9EZpuGL 0lkSi7nALu0h9oAoYVqgtiOGp4AHb1L0siJ+U3cS2bpAQVV9W8fHY60S+VCnorfK dHAjlfTkVOOe1agUE9qcieZJjCQ3I7sHT2vIVYq52NcK2I+TmDpD3vzgxNOyvX59 1BGaGDNzZlvwf26eAeI1d2Tm/LkghVit38Flq4fEVk06+ukHBb6s71wBtvVnkakG 4tEHx9LS7bR6f4/8IQmWcrLfGOwfOSeR2d0ZzSwOH1Te+cC5sgXnwjV4T8kw7Acs HmirYxiIp4pmi37BRne4shWWhm0Vb6CCFc8fl2q2opnpmMUfeQ6F0FPz40dAV9sR lWJIOQtYI/PlbP2vmzCJ+hz7PWJJ7guCrRYO1Id73nlPiiysFP8UUL8tKaGO+juK pIvxiZjcQU28wfKmYwGlYQemL+zinycRX1er/fBc0tpJbmr16qyB591VgHmiebB8 m18n3ObTcmcTW8CETt3DOOvyMavMpP0153uzfZjfvQUOY5URfVM2xDLxZkuvE2Fy QgqkVUtyfSkIK6ZCCSKxN2b/4YK4/7iH+89BTxfrtoLSaFycpQnTfg3M5bl4cyo6 UG0mN0U/SfWKhSpy0BPa =vBTZ -----END PGP SIGNATURE----- --dFWYt1i2NyOo1oI9--