X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham version=3.4.0-r929098 Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q04HIFlf160109 for ; Wed, 4 Jan 2012 11:18:16 -0600 X-ASG-Debug-ID: 1325697494-005fe612a82297b0001-NocioJ Received: from mail.hq.newdream.net (mail.hq.newdream.net [66.33.206.127]) by cuda.sgi.com with ESMTP id 7nRyhQ2tC3imKTal for ; Wed, 04 Jan 2012 09:18:14 -0800 (PST) X-Barracuda-Envelope-From: elder@dreamhost.com X-Barracuda-Apparent-Source-IP: 66.33.206.127 Received: from mail.hq.newdream.net (localhost [127.0.0.1]) by mail.hq.newdream.net (Postfix) with ESMTP id 7EC6AC064; Wed, 4 Jan 2012 09:29:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=dreamhost.com; h=message-id :subject:from:reply-to:to:cc:date:in-reply-to:references :content-type:content-transfer-encoding:mime-version; q=dns; s= dreamhost.com; b=RJBsKxo9ciPaYy2UW3BcDo9Sm/gWZx8j0jc8QD37KaCN1W4 v++EzBF/HVgt4HH2C/B4Jafzo7RZpNUiID4xwuH2djg1ABlKIB/+xtfnmqdYZHks C4xmzgVIGa0PHNlTDrnoy4WoZejfjj7nnnR0cOiRKwd6ke3B7h74qVX4S2bU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=dreamhost.com; h= message-id:subject:from:reply-to:to:cc:date:in-reply-to :references:content-type:content-transfer-encoding:mime-version; s=dreamhost.com; bh=/m+Ummya5X7Uk3VcPteuBSWoPJ8=; b=TymkClSv0HF 1AtzYqTHLnyn+8FlM6Keu82R2D8atJtgigoqvIAz3/gtltVrL2WDSkMV5eLiKs2i tPfoAJqldYg+TENEjOju8tEjiW26HJ4b1iA1ZG6sOCgjYeNPf6za+mol/rCFCBTJ 0r+BwDgWPEN2TbegGOt3A+8JMef8E9mg= Received: from [172.22.22.65] (c-71-193-71-178.hsd1.mn.comcast.net [71.193.71.178]) by mail.hq.newdream.net (Postfix) with ESMTPSA id 0285BC062; Wed, 4 Jan 2012 09:29:42 -0800 (PST) Message-ID: <1325697491.3346.18.camel@doink> Subject: Re: [LSF/MM TOPIC] [ATTEND] xfstests: what do we need to do to make it better? From: Alex Elder X-ASG-Orig-Subj: Re: [LSF/MM TOPIC] [ATTEND] xfstests: what do we need to do to make it better? Reply-To: elder@dreamhost.com To: Dave Chinner Cc: lsf-pc@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, xfs@oss.sgi.com Date: Wed, 04 Jan 2012 11:18:11 -0600 In-Reply-To: <20120103234455.GU23662@dastard> References: <20120103234455.GU23662@dastard> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.1- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Barracuda-Connect: mail.hq.newdream.net[66.33.206.127] X-Barracuda-Start-Time: 1325697494 X-Barracuda-URL: http://cuda.sgi.com:80/cgi-mod/mark.cgi X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: by bsmtpd at sgi.com X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=DKIM_SIGNED, DKIM_VERIFIED X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.85021 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- -0.00 DKIM_VERIFIED Domain Keys Identified Mail: signature passes verification 0.00 DKIM_SIGNED Domain Keys Identified Mail: message has a signature X-Virus-Status: Clean On Wed, 2012-01-04 at 10:44 +1100, Dave Chinner wrote: > Given that more people are using xfstests and developing tests, we > need to consider how to make it friendlier to hack on. The current > structure of the tree is difficult to work with, the way tests are > organised and numbered make it difficult to co-ordinate new tests > and results in patch conflicts, etc. Coordination of numbers is not a big deal, the test names/numbers can be easily fixed up at commit time. I also thought that the numbers--though meaningless on their own--also avoided having to decide where a particular test belongs. I.e., a test that exercises several categories of things (maybe preallocation, quota, and ENOSPC) won't be hidden in any sort of "enospc" test directory. I do think the growing number of tests is making it a bit unwieldy though, so I think some sort of reorganization is a good plan. > We also see problems arising from people not really understanding how > the xfstests harness is designed and how it really is supposed to > work, so an overview of the underlying principles of operation would > probably be helpful to a lot of people. It will also save > review and rework time if we can avoid having people make the same > mistakes the first time they submit tests.... This is very important. And the gist of it ought to be captured somewhere if it is not already. > I'd also like to discuss some potential infrastructure changes to > make it easier to add new tests without conflicts with others > developing new tests. Some of the ideas Christoph and I have > previously tossed around include: > > - break tests up into groups in their own subdirectories. > e.g. generic tests, xfs/ext4/btrfs specific tests, stress > tests, performance tests, large FS tests, etc > - change the way we define groups of tests so we don't have > a single registry of tests and their groups > - allow different naming of tests, such as desciptive text > names rather than just plain numbers > - allow duplicate test names in different groups Despite what I said above, I don't disagree with any of this. Perhaps the tests can be buried in one or more subdirectories, but each FSTYP defines its own groups file to drive testing. > I'm sure that other users of xfstests will have some ideas on how to > improve it for the way they run it, so I'd like to gather and > incorporate these ideas into any structural change we make to > xfstests. Should be a good discussion. It might be useful to have a proposal or two to work with as a starting point, or maybe an outline of the types of changes (naming, directory structure, etc.), to help keep things focused. -Alex > Cheers, > > Dave.