qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: Stefan Hajnoczi <stefanha@gmail.com>, Fam Zheng <famz@redhat.com>,
	qemu-devel@nongnu.org, WenchaoXia <xiawenc@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH v3 0/6] Add cache mode option to qemu-iotests, and change default mode to "writeback"
Date: Fri, 22 Nov 2013 09:57:35 +0100	[thread overview]
Message-ID: <20131122085735.GB18096@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <20131121141623.GH3454@dhcp-200-207.str.redhat.com>

On Thu, Nov 21, 2013 at 03:16:23PM +0100, Kevin Wolf wrote:
> Am 21.11.2013 um 13:43 hat Stefan Hajnoczi geschrieben:
> > On Wed, Nov 20, 2013 at 03:44:11PM +0800, Fam Zheng wrote:
> > > This series adds cache mode option in the iotests framework. Test cases are
> > > updated to make use of cache mode and mask supported modes.
> > > 
> > > v3: Change _unsupported_qemu_io_options to _supported_cache_modes.
> > >     Change default mode to "writeback".
> > >     Clean up some whitespaces in the end of series.
> > >     Fix "026.out.nocache" case.
> > >     Fix 048 case on tmpfs.
> > > 
> > > 
> > > Fam Zheng (6):
> > >   qemu-iotests: Add "-c <cache-mode>" option
> > >   qemu-iotests: Honour cache mode in iotests.py
> > >   qemu-iotests: Add _supported_cache_modes
> > >   qemu-iotests: Change default cache mode to "writeback"
> > >   qemu-iotests: Force qcow2 in error path test in 048
> > >   qemu-iotests: Clean up spaces in usage output
> > > 
> > >  tests/qemu-iotests/026        |  2 +-
> > >  tests/qemu-iotests/039        |  2 +-
> > >  tests/qemu-iotests/048        |  8 +++++++-
> > >  tests/qemu-iotests/052        |  3 +--
> > >  tests/qemu-iotests/check      |  2 +-
> > >  tests/qemu-iotests/common     | 37 +++++++++++++++++++++++++++----------
> > >  tests/qemu-iotests/common.rc  | 20 ++++++++++----------
> > >  tests/qemu-iotests/iotests.py |  3 ++-
> > >  8 files changed, 50 insertions(+), 27 deletions(-)
> > 
> > In principle I'm happy with the series but there are two instances where
> > you are silently changing what the test does (overriding cache mode and
> > image format).
> > 
> > Please skip tests that cannot run instead of silently testing something
> > else.
> 
> Skipping isn't really a good solution either. For example, I almost
> never test 039, because I always run ./check -nocache. What would be
> most useful is to use a working cache mode for this test rather than
> leaving it untested over weeks and months.
> 
> I mean we can make things as sophisticated as we want, and introduce a
> list of cache modes in the order of their preference, so that I can say
> ./check -c none,writethrough, but that's probably a bit overengineered.

Why not just:

# Before sending a block pull request
./check -c none
./check -c writeback

That covers both O_DIRECT and buffered I/O.

I think 1:1 behavior is important to keep it easy to reason about test
cases.  If test cases go off an change behavior behind the scenes it's
possible to get confused or draw the wrong conclusions.

Stefan

  reply	other threads:[~2013-11-22  8:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-20  7:44 [Qemu-devel] [PATCH v3 0/6] Add cache mode option to qemu-iotests, and change default mode to "writeback" Fam Zheng
2013-11-20  7:44 ` [Qemu-devel] [PATCH v3 1/6] qemu-iotests: Add "-c <cache-mode>" option Fam Zheng
2013-11-20  7:44 ` [Qemu-devel] [PATCH v3 2/6] qemu-iotests: Honour cache mode in iotests.py Fam Zheng
2013-11-20  7:44 ` [Qemu-devel] [PATCH v3 3/6] qemu-iotests: Add _supported_cache_modes Fam Zheng
2013-11-21 12:39   ` Stefan Hajnoczi
2013-11-21 12:46     ` Fam Zheng
2013-11-20  7:44 ` [Qemu-devel] [PATCH v3 4/6] qemu-iotests: Change default cache mode to "writeback" Fam Zheng
2013-11-20  7:44 ` [Qemu-devel] [PATCH v3 5/6] qemu-iotests: Force qcow2 in error path test in 048 Fam Zheng
2013-11-21 12:41   ` Stefan Hajnoczi
2013-11-21 12:50     ` Fam Zheng
2013-11-20  7:44 ` [Qemu-devel] [PATCH v3 6/6] qemu-iotests: Clean up spaces in usage output Fam Zheng
2013-11-21 12:43 ` [Qemu-devel] [PATCH v3 0/6] Add cache mode option to qemu-iotests, and change default mode to "writeback" Stefan Hajnoczi
2013-11-21 14:16   ` Kevin Wolf
2013-11-22  8:57     ` Stefan Hajnoczi [this message]
2013-11-22  9:30       ` Kevin Wolf
2013-11-22 15:51         ` Stefan Hajnoczi

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=20131122085735.GB18096@stefanha-thinkpad.redhat.com \
    --to=stefanha@redhat.com \
    --cc=famz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=xiawenc@linux.vnet.ibm.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).