From: Marius Mauch <genone@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] tests
Date: Wed, 2 May 2007 01:32:20 +0200 [thread overview]
Message-ID: <20070502013220.7a3ae9a4@sheridan.genone.homeip.net> (raw)
In-Reply-To: <200705011508.57220.peper@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 2689 bytes --]
On Tue, 1 May 2007 15:08:56 +0200
Piotr Jaroszyński <peper@gentoo.org> wrote:
> Hello,
>
> There was some discussion about forcing/not forcing tests in EAPI-1,
> but there was clearly no compromise. Imho, tests are very important
> and thus I want to discuss them a little more, but in more sensible
> fashion.
>
> Firstly each test can be(not all categories are mutually exclusive):
> - not existant
> - non-functional
> - not runnable from ebuild
> - useful but unreasonable resource-wise
> - useful and reasonable resource-wise
> - necessary
> - known to partially fail but with a way of skipping failing tests
> - known to partially fail but with no easy way of skipping failing
> tests Is that list comprehensive?
I'd approach it a bit different: Before creating fixed classification
groups I'd first identify the attributes of tests that should be used
for those classifications.
a) cost (in terms of runtime, resource usage, additional deps)
b) effectiveness (does a failing/working test mean the package is
broken/working?)
c) importance (is there a realistic chance for the test to be useful?)
d) correctness (does the test match the implementation? overlaps a bit
with effectiveness)
e) others?
Each of these needs to be considered if we want to find a good
compromise of which tests to run and which not. A test with high cost
can still be worth running if effectiveness, correctness and importance
are also high, on the other hand a test with little effectiveness,
correctness and/or importance probably isn't worth running even with
zero cost.
Now the tricky question is how to actually measure those attributes.
> Secondly we must answer the question how precisely we want to
> distinguish them, so users/dev can choose which categories of tests
> they want to run. What comes to mind is:
> - run all tests
> - run only necessary tests
> - run only reasonable tests
> - don't run tests at all
> Again, is that list comprehensive?
Problem is that terms like "reasonable" or "necessary" are quite
subjective (regarding both humans and machines), and in this special
context even "all" could be interpreted in different ways (btw, could
someone give some real examples for packages with "necessary" tests?).
So I think a more fine grained classification is needed that can be
adopted for specific use cases (e.g. the mips+embedded profiles might
want different defaults than the amd64+desktop profiles).
Marius
--
Public Key at http://www.genone.de/info/gpg-key.pub
In the beginning, there was nothing. And God said, 'Let there be
Light.' And there was still nothing, but you could see a bit better.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-05-01 23:34 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-01 13:08 [gentoo-dev] tests Piotr Jaroszyński
2007-05-01 13:24 ` Josh Sled
2007-05-01 13:32 ` Ciaran McCreesh
2007-05-01 15:50 ` Alec Warner
2007-05-01 16:04 ` Daniel Gryniewicz
2007-05-01 16:23 ` Vlastimil Babka
2007-05-01 17:18 ` Maurice van der Pot
2007-05-01 17:35 ` Ciaran McCreesh
2007-05-01 19:53 ` Maurice van der Pot
2007-05-01 20:05 ` Piotr Jaroszyński
2007-05-02 5:58 ` Rémi Cardona
2007-05-02 6:53 ` Danny van Dyk
2007-05-01 21:52 ` Josh Saddler
2007-05-01 22:31 ` Stephen Bennett
2007-05-01 22:28 ` Josh Saddler
2007-05-01 22:47 ` Piotr Jaroszyński
2007-05-01 23:08 ` Ciaran McCreesh
2007-05-01 23:06 ` Ciaran McCreesh
2007-05-01 17:58 ` Piotr Jaroszyński
2007-05-01 19:24 ` Rémi Cardona
2007-05-01 20:10 ` Jure Varlec
2007-05-01 22:06 ` Robin H. Johnson
2007-05-01 20:25 ` [gentoo-dev] tests Piotr Jaroszyński
2007-05-01 23:32 ` Marius Mauch [this message]
2007-05-01 23:46 ` [gentoo-dev] tests Daniel Gryniewicz
2007-05-01 23:55 ` Ciaran McCreesh
2007-05-02 0:34 ` Brian Harring
2007-05-02 11:52 ` Ciaran McCreesh
2007-05-02 0:08 ` Robin H. Johnson
2007-05-02 0:12 ` Stephen Bennett
2007-05-02 1:51 ` Daniel Gryniewicz
2007-05-02 6:49 ` Danny van Dyk
2007-05-02 11:56 ` Ciaran McCreesh
2007-05-01 23:56 ` Ciaran McCreesh
2007-05-02 10:54 ` Philipp Riegger
2007-05-02 20:05 ` Mike Frysinger
2007-05-02 20:12 ` Ciaran McCreesh
2007-05-06 8:39 ` Mike Frysinger
2007-05-05 21:17 ` [gentoo-dev] tests Ryan Hill
2007-05-06 4:27 ` Alistair John Bush
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=20070502013220.7a3ae9a4@sheridan.genone.homeip.net \
--to=genone@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/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