Received: from eggs.gnu.org ([2001:4830:134:3::10]:35400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm4dO-0007c2-7y for qemu-devel@nongnu.org; Mon, 19 Sep 2016 15:53:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bm4dM-0006qT-C8 for qemu-devel@nongnu.org; Mon, 19 Sep 2016 15:53:45 -0400 References: <1474306544-24708-1-git-send-email-berrange@redhat.com> <1474306544-24708-2-git-send-email-berrange@redhat.com> From: Eric Blake Message-ID: <5a389739-00eb-48a2-188b-31030337e3eb@redhat.com> Date: Mon, 19 Sep 2016 14:53:36 -0500 MIME-Version: 1.0 In-Reply-To: <1474306544-24708-2-git-send-email-berrange@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wbU8fWbOaV8VejXXtDICfefstmKav6Dvd" Subject: Re: [Qemu-devel] [PATCH 1/6] iotests: throw away test timings if args change List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Max Reitz This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wbU8fWbOaV8VejXXtDICfefstmKav6Dvd From: Eric Blake To: "Daniel P. Berrange" , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Max Reitz Message-ID: <5a389739-00eb-48a2-188b-31030337e3eb@redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/6] iotests: throw away test timings if args change References: <1474306544-24708-1-git-send-email-berrange@redhat.com> <1474306544-24708-2-git-send-email-berrange@redhat.com> In-Reply-To: <1474306544-24708-2-git-send-email-berrange@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/19/2016 12:35 PM, Daniel P. Berrange wrote: > The 'check' program records timings for each test that > is run. These timings are only valid, however, for a > particular format/protocol combination. So if frequently > running 'check' with a variety of different formats or > protocols, the times printed can be very misleading. >=20 > Record the protocol/format in the check.time file and > throw it away if it doesn't mach the current run args. >=20 > Signed-off-by: Daniel P. Berrange > --- > tests/qemu-iotests/check | 21 +++++++++++++++++++-- > 1 file changed, 19 insertions(+), 2 deletions(-) Rather than completely throwing things away, would it be worth updating the check.time file format to track multiple entries? For every distinct args seen, track a timing for that combination of args, then when starting a test, if a line in the file contains the current args, report that old time; if not, then append a line with the new args. The file grows according to how many distinct args combinations you use, and it's probably easier to make 'a b' and 'b a' report as different timings even if they have the same effect and could share a timing. We'd also want an operation to clean out timings without running tests, particularly if timings can otherwise grow huge due to every possible args combination. What do you think? --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --wbU8fWbOaV8VejXXtDICfefstmKav6Dvd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX4EJAAAoJEKeha0olJ0NqUe0H/3adeO/jloQ/72vQVhN6cKS6 yI63IEQHksCIFdSZ4Yt8h2upHlz+Qv5Ucmzn0ROjrdoMemwiQg8M/lvKChG0YdHo fyO7Dw4ICyvZZHvloAn0aJIo0fUGQNugIW/3P/uvZJHMFrr1sz2su4dZUSt0Okef UANnQpJ6GCemA1UJram9sdQahHrNq54OBhOx1Gf3tH6n3/1i9hZGTturEjuyctTN C+shNVryJ42XWo86vuQRsgz5wg50bwQz4LtnjSVaKPccTGaC3MD+ATGqHjgUqf/P b8xvZBqoHXYt0fuaIGVJfA55Xxt0i6aAsvCYQXiN5pJP1TJ649PxCJfqzwjyg6I= =ldfn -----END PGP SIGNATURE----- --wbU8fWbOaV8VejXXtDICfefstmKav6Dvd--