Received: from eggs.gnu.org ([2001:4830:134:3::10]:34911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcHFK-00062n-A3 for qemu-devel@nongnu.org; Tue, 23 Aug 2016 15:20:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcHFC-00076m-2N for qemu-devel@nongnu.org; Tue, 23 Aug 2016 15:20:25 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:57154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcHFB-00076S-Q2 for qemu-devel@nongnu.org; Tue, 23 Aug 2016 15:20:18 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u7NJEPwN080961 for ; Tue, 23 Aug 2016 15:20:17 -0400 Received: from e06smtp09.uk.ibm.com (e06smtp09.uk.ibm.com [195.75.94.105]) by mx0a-001b2d01.pphosted.com with ESMTP id 250sbxstas-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 23 Aug 2016 15:20:16 -0400 Received: from localhost by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 23 Aug 2016 20:20:14 +0100 From: Sascha Silbe In-Reply-To: <96c36073-dc7e-a52a-9267-b1d87bf45efc@redhat.com> References: <20160819131202.19369-1-mreitz@redhat.com> <874m6blnfa.fsf@oc4731375738.ibm.com> <31b27429-bde0-016b-ce2a-ff965571fa61@redhat.com> <87vayrk1sq.fsf@oc4731375738.ibm.com> <96c36073-dc7e-a52a-9267-b1d87bf45efc@redhat.com> Date: Tue, 23 Aug 2016 21:20:12 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <878tvnjnrn.fsf@oc4731375738.ibm.com> Subject: Re: [Qemu-devel] [PATCH for-2.8] iotests: Do not rely on unavailable domains in 162 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi Dear Max, Max Reitz writes: > On 2016-08-23 at 10:17, Sascha Silbe wrote: >> Max Reitz writes: [tests/qemu-iotests/162] >>> Good idea. We can just let the script generate a random port; >>> $(($RANDOM+32768)) should do the trick. >> >> Which will fail just the same as the original version if anything (not >> just qemu-nbd) is already occupying the port you happened to >> choose. > > But I think figuring that out from the error log will be rather trivial: > > > +Failed to bind socket: Address already in use Once a human starts digging into the logs, yes. [...] > If you think this test failing is really an issue that we should fix,=20 > then I'd rather put the qemu-nbd launch inside of a loop, retrying until= =20 > it succeeds with some random port. Seems to be the least ugly approach for now. And yeah, fixing it would be important IMO. Having automated tests and CI systems fail randomly is really annoying. People stop running the tests resp. ignore the CI mails pretty quickly if there are false positives. Sascha --=20 Softwareentwicklung Sascha Silbe, Niederhofenstra=C3=9Fe 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641