qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Max Reitz <mreitz@redhat.com>
To: Eric Blake <eblake@redhat.com>, qemu-block@nongnu.org
Cc: qemu-devel@nongnu.org, Kevin Wolf <kwolf@redhat.com>,
	Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 4/5] iotests: Make 083 less flaky
Date: Thu, 9 Nov 2017 22:00:34 +0100	[thread overview]
Message-ID: <f13d3d95-0a46-88c9-2acc-95dfdd6d8486@redhat.com> (raw)
In-Reply-To: <73d1bcb3-aeaf-24d1-5cf0-359c58de0283@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1346 bytes --]

On 2017-11-09 21:58, Eric Blake wrote:
> On 11/09/2017 02:30 PM, Max Reitz wrote:
>> 083 has (at least) two issues:
>>
>> 1. By launching the nbd-fault-injector in background, it may not be
>>    scheduled until the first grep on its output file is executed.
>>    However, until then, that file may not have been created yet -- so it
>>    either does not exist yet (thus making the grep emit an error), or it
>>    does exist but contains stale data (thus making the rest of the test
>>    case work connect to a wrong address).
>>    Fix this by explicitly overwriting the output file before executing
>>    nbd-fault-injector.
>>
>> 2. The nbd-fault-injector prints things other than "Listening on...".
>>    It also prints a "Closing connection" message from time to time.  We
>>    currently invoke sed on the whole file in the hope of it only
>>    containing the "Listening on..." line yet.  That hope is sometimes
>>    shattered by the brutal reality of race conditions, so invoke grep
>>    before sed.
> 
> Comment is now stale; s/invoke grep before sed/make the sed script more
> robust/

*sigh*

It appears my hope of easily fixing patches is often shattered by the
brutal reality, too.

> Reviewed-by: Eric Blake <eblake@redhat.com>

Thanks!  I'll fix the sentence when applying the series.

Max


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 512 bytes --]

  reply	other threads:[~2017-11-09 21:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-09 20:30 [Qemu-devel] [PATCH v2 0/5] iotests: Make some tests less flaky Max Reitz
2017-11-09 20:30 ` [Qemu-devel] [PATCH v2 1/5] iotests: Make 030 " Max Reitz
2017-11-09 20:30 ` [Qemu-devel] [PATCH v2 2/5] iotests: Add missing 'blkdebug::' in 040 Max Reitz
2017-11-09 20:30 ` [Qemu-devel] [PATCH v2 3/5] iotests: Make 055 less flaky Max Reitz
2017-11-09 20:30 ` [Qemu-devel] [PATCH v2 4/5] iotests: Make 083 " Max Reitz
2017-11-09 20:58   ` Eric Blake
2017-11-09 21:00     ` Max Reitz [this message]
2017-11-10 10:02   ` [Qemu-devel] [Qemu-block] " Alberto Garcia
2017-11-10 15:18     ` Max Reitz
2017-11-10 15:51       ` Alberto Garcia
2017-11-10 17:29         ` Max Reitz
2017-11-10 18:26           ` Eric Blake
2017-11-09 20:30 ` [Qemu-devel] [PATCH v2 5/5] iotests: Make 136 " Max Reitz
2017-11-09 22:29 ` [Qemu-devel] [PATCH v2 0/5] iotests: Make some tests " Max Reitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f13d3d95-0a46-88c9-2acc-95dfdd6d8486@redhat.com \
    --to=mreitz@redhat.com \
    --cc=eblake@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).