From: Graeme Gregory <dp@xora.org.uk>
To: openembedded-devel@lists.openembedded.org
Subject: Re: OE recipe tree quality
Date: Fri, 30 Jul 2010 09:56:00 +0100 [thread overview]
Message-ID: <4C5293A0.70802@xora.org.uk> (raw)
In-Reply-To: <AANLkTi=TVh2WE6zsN3wYUBBy-sN-zvhCKvHem9J1E1CD@mail.gmail.com>
On 30/07/10 09:48, Frans Meulenbroeks wrote:
> 2010/7/30 Graeme Gregory <dp@xora.org.uk>
>
>> On 30/07/10 09:22, Koen Kooi wrote:
>>> On 30-07-10 09:21, Esben Haabendal wrote:
>>>> On Thu, Jul 29, 2010 at 2:07 PM, Philip Balister
>>> <philip@balister.org> wrote:
>>>>>
>>>>> On 07/29/2010 05:45 AM, Koen Kooi wrote:
>>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>>> Hash: SHA1
>>>>>>
>>>>>> On 29-07-10 10:50, Frans Meulenbroeks wrote:
>>>>>>> Dear all,
>>>>>>>
>>>>>>> Given the discussions on quality that sometimes pop up (and also
>>>>>>> triggered
>>>>>>> by Robert's message), I decided to kick off a bitbake -k world.
>>>>>> Could you first explain to me why 'bitbake world' is a good way to
>>>>>> measure quality?
>>>>>>
>>>>>> I would think that building something like console-image and
>>> looking at
>>>>>> the following would be a much better metric:
>>>>>>
>>>>>> * does it build?
>>>>>> * are all the rootfs types working?
>>>>>> * does the image do what it is supposed to do?
>>>>>> * Are all the licenses of the output packages correct?
>>>>>> * Do the output packages have any spurious deps?
>>>>>> * Is the content of the output packages correct?
>>>>>> * Are there any known CVEs in the resulting packages?
>>>>>> * Did packaged-staging do its job?
>>>>>> * What kind of QA errors and warnings were raised?
>>>>>> * Did all recipes pass recipe_sanity?
>>>>>> * Did all recipes conform to oe-stylize.py?
>>>>>>
>>>>>> etc
>>>>>>
>>>>>> I would actually advocate removing the 'world' feature from
>> bitbake/OE
>>>>>> to stop people from wasting time on looking at bitbake world and have
>>>>>> them fix actual problems.
>>>>> bitbake world seems to be the source of pointless listserv
>>> discussions. Does
>>>>> it serve any purpose?
>>>> Pointless or not really depends on how you look at quality.
>>>> If you look at it as you, Koen and other OE long-timers, yes, it looks
>>>> rather pointless to have bitbake world.
>>>> But for those of us who have a different view on what quality is, then
>>>> bitbake world serves a purpose.
>>> As Thomas points out, as soon as you start blacklisting things (which
>>> actually increases quality), bitbake world doesn't work anymore.
>>> That alone should be enough to kill it.
>> Time to jump in the cage here.
>>
>> "Quality" is achieved by comparing a set of known specifications against
>> a known data set. In the software case this means we need a good set of
>> specifications which we are testing against. We also need to know in
>> detail what we are testing against this set of specifications.
>>
>> bitbake world meets neither of these criteria. You have no idea what
>> your testing against, you also have no idea what you are submitting for
>> test. A random selection of 8500 files in OE. It also doesn't take into
>> account known combinations which always fail. Angstrom took care of
>> these known failures by creating the concept of a blacklist.
>>
>> In fact if you tell me bitbake world fails, I would actually suggest
>> that is a test pass, it is an expected fail.
>>
>> Graeme
>>
>> Actually I expect it to fail, but I am eager to learn which recipes fail.
> And yes, it might well be that this is not a good test. If you have
> suggestions for a better test that tests all our recipes feel free to speak
> up.
>
> The dependency analysis of bitbake world already showed that there are
> several issues (as listed above).
> E.g. there are apparently dependencies on non existing recipes.
> Instead of shooting the messenger and killing the tool it would be better
> to resolve these (by either fixing them as I have seen JaMa did for some
> recipes in the past) or by removing the recipes.
> Keeping them around as junk does not improve things.
>
> And failure of bitbake -k world is not necessarily bad. At least it will
> give some insight in the weak spots.
>
More interesting to me would be an algorithm more like.
while recipe in recips/*.bb; do
rm -rf tmp/ ; bitbake recipe
done
with the test noting if the fail is due to a blacklisted dependency, a
totally missing dependency (recipe been deleted sometime in past) or an
actual compile fail due to a missing DEPENDS entry somewhere in the tree.
But this is going to burn CPU time like never before.
Graeme
next prev parent reply other threads:[~2010-07-30 8:56 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-29 8:50 OE recipe tree quality Frans Meulenbroeks
2010-07-29 9:42 ` Thomas Zimmermann
2010-07-29 9:45 ` Koen Kooi
2010-07-29 10:32 ` Frans Meulenbroeks
2010-07-29 12:07 ` Philip Balister
2010-07-29 12:15 ` Frans Meulenbroeks
2010-07-30 7:21 ` Esben Haabendal
2010-07-30 8:22 ` Koen Kooi
2010-07-30 8:31 ` Graeme Gregory
2010-07-30 8:48 ` Frans Meulenbroeks
2010-07-30 8:56 ` Graeme Gregory [this message]
2010-07-30 9:07 ` Frans Meulenbroeks
2010-07-30 9:09 ` Graeme Gregory
2010-07-30 9:36 ` Marcin Juszkiewicz
2010-07-30 8:54 ` Esben Haabendal
2010-07-30 8:34 ` Frans Meulenbroeks
2010-07-30 8:41 ` Koen Kooi
2010-07-30 9:01 ` Frans Meulenbroeks
2010-07-30 15:39 ` Dr. Michael Lauer
2010-07-31 23:12 ` Richard Purdie
2010-08-01 5:10 ` Frans Meulenbroeks
2010-08-01 14:05 ` Philip Balister
2010-08-01 18:48 ` Richard Purdie
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=4C5293A0.70802@xora.org.uk \
--to=dp@xora.org.uk \
--cc=openembedded-devel@lists.openembedded.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 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.