All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Theodore Ts'o <tytso@mit.edu>
Cc: Tahsin Erdogan <tahsin@google.com>,
	fstests@vger.kernel.org,
	Zhao Hongjiang <zhaohongjiang@huawei.com>
Subject: Re: [PATCH] generic/310: make ext[2-4] error patterns more specific
Date: Fri, 13 Nov 2015 07:28:54 +1100	[thread overview]
Message-ID: <20151112202854.GJ14311@dastard> (raw)
In-Reply-To: <20151112161550.GA3431@thunk.org>

On Thu, Nov 12, 2015 at 11:15:50AM -0500, Theodore Ts'o wrote:
> On Wed, Nov 11, 2015 at 04:36:30PM -0800, Tahsin Erdogan wrote:
> > This test watches for ext[2-4] filesystem errors in kernel messages but it
> > incorrectly identifies unrelated messages that contain string "error" as
> > a failure condition.
> > 
> > Make grep pattern more specific to catch only relevant messages.
> > 
> > Signed-off-by: Tahsin Erdogan <tahsin@google.com>
> 
> The problem is this is a "generic" test, so it will be run on file
> systems other than just ext[234].  So making the regexp's specific to
> just ext[234] is probably going to be something acceptable for
> xfstests upstream.
> 
> (For context, the problem was that there were some kernel messages
> coming fom an i2c device driver that happened to be spit out while
> generic/310 was running, this was causing a false test failure.)
> 
> Alternate possible fixes:
> 
> (1) we could make an ext4 version of this test, and then make
> generic/310 not run for ext4.  In that case we can use the EXT[234]-fs
> specific error.
> 
> (2) we can fiter out the i2c error in generic/310
> 
> (3) we can figure out why the i2c device driver is randomly spitting
> out errors and ask the team responsible for that driver to fix _that_
> bug
> 
> (4) we can try to enumerate the file system specific error messages
> instead of assuming that any random kernel message that happens to
> contain the string "error" automatically means that there is a file
> system problem.
> 
> We should probably do (3) no matter what,

Yes.

> and arguably generic/310 is
> a badly written test and if there is some way we can do (4), that
> would be desirable.

Well, it should really just use the test harness' dmesg checking.
i.e. all that explicit reading and checking for error types can just
go away completely, as the test harness with capture
errors/warnings/bugs that are emitted to dmesg during the test run
and fail the test.

> As a fall back, we could do (2), and see if that
> is acceptable for xfstests upstream.

No. filtering dmesg errors from random drivers/subsystems on random
kernels is a path we are not going to walk down.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

      reply	other threads:[~2015-11-12 20:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12  0:36 [PATCH] generic/310: make ext[2-4] error patterns more specific Tahsin Erdogan
2015-11-12 16:15 ` Theodore Ts'o
2015-11-12 20:28   ` Dave Chinner [this message]

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=20151112202854.GJ14311@dastard \
    --to=david@fromorbit.com \
    --cc=fstests@vger.kernel.org \
    --cc=tahsin@google.com \
    --cc=tytso@mit.edu \
    --cc=zhaohongjiang@huawei.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.