[Top] [All Lists]

Re: [RFC] [PATCH 0/18] xfstests: move tests out of top level

To: Ben Myers <bpm@xxxxxxx>
Subject: Re: [RFC] [PATCH 0/18] xfstests: move tests out of top level
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 22 Aug 2012 08:09:26 +1000
Cc: Mark Tinguely <tinguely@xxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <20120821163337.GC29979@xxxxxxx>
References: <1343294892-20991-1-git-send-email-david@xxxxxxxxxxxxx> <5032ABBD.80504@xxxxxxx> <20120820224306.GF19235@dastard> <20120821163337.GC29979@xxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Tue, Aug 21, 2012 at 11:33:37AM -0500, Ben Myers wrote:
> Hey Dave,
> On Tue, Aug 21, 2012 at 08:43:06AM +1000, Dave Chinner wrote:
> > On Mon, Aug 20, 2012 at 04:27:25PM -0500, Mark Tinguely wrote:
> > > On 07/26/12 04:27, Dave Chinner wrote:
> > > >Alt-Subject: Games with Sed, Grep and Awk.
> > > >
> > > >This series is based on top of the large filesystem test series.
> > > >
> > > >This moves all the tests into a ./tests subdirectory, and sorts them into
> > > >classes of related tests. Those are:
> > > >
> > > > tests/generic:  valid for all filesystems
> > > > tests/shared:   valid for a limited number of filesystems
> > > > tests/xfs:      xfs specific tests
> > > > tests/btrfs     btrfs specific tests
> > > > tests/ext4      ext4 specific tests
> > > > tests/udf       udf specific tests
> > > 
> > > The SGI XFS group talked about your proposed changes to xfstests and
> > > the response is very positive.
> > > 
> > > The couple concerns are:
> > > 
> > > 1) There is a consensus in the group that the benchmark framework
> > >    should remain until there is a common benchmark available.
> > > 
> > >    Could the benchmark infrastructure be placed into its own directory
> > >    until a new common benchmark framework has been adopted?
> > 
> > Keeping it just complicates things. The benchmark infrastructure
> > is bitrotted and was largely just a hack tacked on to the side of
> > the regression test suite.
> > 
> > For it to be useful in an automated test environment, it would need
> > to be re-implemented from scratch with reliable recording of results
> > and the ability to determine if a result is unusual or not. None of
> > this exists - it's just a framework to run a couple of benchmarks
> > and dump some output to stdout using the xfstests machine config
> > files....
> > 
> > I have tried integrating other benchmarks into xfstests a while back
> > (e.g. compile bench, fsmark, etc) and using the results for some
> > kind of meaningful performance regression test. I rapidly came to
> > the conclusion that the infrastructure was not up to scratch and
> > that my simple handwritten standalone test scripts to iterate
> > through benchmarks and capture results was much easier to use and
> > modify than to jump through the weird bench infrastructure hoops.
> > 
> > So, no, I don't think it's worth keeping at all.
> You've already made it clear that you feel the current bench implementation is
> not worth keeping.  Once a suitable replacement for the bench infrastructure
> has been implemented we can remove the old one.  Until then we prefer to keep
> what we have in the tree.

That's not how the process works - if it's cruft that no-one is
using that gets in the way of progress, it goes.  It's still in the
revision history so it's not like it is lost forever. If you have an
actual reason for keeping it other than "there isn't a replacement",
then tells us what that reason is.

i.e. are you trying to tell us that SGI uses it internally without
actually saying so? If so, why not just say that straight up? If
not, then why is removing an unused hack a problem?

As it is, I've been removing hacky functionality and then
re-implementing it in a sane manner after everything has been moved
about if it is still useful (e.g. expunged tests). The bench stuff
is no different - I just don't see it as a useful addition to
xfstests, so I haven't readded it.

Hence, if you really want to keep the bench functionality as viable,
long term supported fucntionality, then send me patches that
re-implement it cleanly on top of the patchset I posted. There's
nothing stopping you from helping with this re-org of xfstests by
contributing patches to provide the functionality you'd like to

> > > 2) Could there be a single result directory rather than mirroring the
> > >    test hierarchy? A single directory can eventually become uniquely
> > >    identified and also be easier to upload to a result depository.
> > 
> > One of the features requested for splitting up the test
> > directories is to allow duplicate test names in different test
> > directories. You can't have a single result directory if you allow
> > duplicate test names....
> Being able to have duplicate test names in different directories makes perfect
> sense.
> An additional idea that we kicked around is to (optionally) do a
> results/<timestamp-hostname> style results directory on a per-run basis.  This
> would enable us to keep all of the results history and maybe upload the 
> results
> to a central location.

That's the reason the results directory can be supplied as an
environment variable - so an external controlling script (like an
automated QA harness) can direct the results to somewhere that it
controls and archives. External results directories don't completely
work in the patchset I posted - I have more patches that get
closer to supporting that goal....


Dave Chinner

<Prev in Thread] Current Thread [Next in Thread>