All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: Bruce Ashfield <bruce.ashfield@gmail.com>,
	Nicolas Dechesne <nicolas.dechesne@linaro.org>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH 4/4] yocto-check-layer: ensure that all layer dependencies are tested too
Date: Thu, 22 Jul 2021 21:46:08 +0100	[thread overview]
Message-ID: <7c8a96980bdc7d6d3d6a81e07b8ba8e1328afcff.camel@linuxfoundation.org> (raw)
In-Reply-To: <CADkTA4MfOnbxF5c9MyfD79r_pmN0Yw4KH6Gx5mjSR1nYkA9Wgg@mail.gmail.com>

On Thu, 2021-07-22 at 09:16 -0400, Bruce Ashfield wrote:
> 
> 
> On Thu, Jul 22, 2021 at 8:47 AM Nicolas Dechesne <nicolas.dechesne@linaro.org> wrote:
> > In order to be compliant with the YP compatible status, a layer also
> > needs to ensure that all its dependencies are compatible
> > too. Currently yocto-check-layer only checks the requested layer,
> > without testing any dependencies.
> > 
> 
> 
> Is that actually written into our compliance statements ? (that dependency 
> layers must also be compliant)
> 
> I had never heard that before, and in my opinion, that will actively encourage 
> people to copy recipes if they want to be compliant but a dependent layer is 
> problematic.

It has been the case as it logically doesn't make sense otherwise but the 
YP Compat pieces need better documentation. The TSC did work on fixing this
up but we're blocked on a lack of advocacy people to help with the other 
side of the programme.

Thinking the above though, the reasoning is that if we don't require that, 
it lets anyone just push their non-compliant bits into meta-non-compatible 
and then have meta-compatible depend on meta-non-compatible. It also meant
nobody had much interest in having meta-oe or meta-virt being YP Compat.

The hope is that it causes "bad" layers to get fixed. We've put pieces in place
to try and at least ensure the core layers pass and stay passing.

>  With this change, all dependencies are also checked by default, so the
> > summary printed at the end will give a clear picture whether all
> > dependencies pass the script or not. 
> > 
> > Using --no-auto-dependency can be used to skip that.
> > 
> 
> 
> I'd actually prefer the opposite, to make the compliance runs faster by 
> default, versus someone having to find out about this option later. We 
> already get complaints about check layer speed, and doing more by default 
> won't help on that front.

I can see the arguments both ways on this. "The script says it is compatible
so I can use the badge" :/

Cheers,

Richard




  parent reply	other threads:[~2021-07-22 20:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22 12:46 [PATCH 0/4] yocto-check-layer: add support to check for dependencies Nicolas Dechesne
2021-07-22 12:46 ` [PATCH 1/4] yocto-check-layer: improve missed dependencies Nicolas Dechesne
2021-07-22 12:46 ` [PATCH 2/4] checklayer: new function get_layer_dependencies() Nicolas Dechesne
2021-07-22 12:46 ` [PATCH 3/4] checklayer: rename _find_layer_depends Nicolas Dechesne
2021-07-22 12:46 ` [PATCH 4/4] yocto-check-layer: ensure that all layer dependencies are tested too Nicolas Dechesne
2021-07-22 13:16   ` [OE-core] " Bruce Ashfield
2021-07-22 13:22     ` Armin Kuster
2021-07-22 20:46     ` Richard Purdie [this message]
2021-07-23  3:29       ` Bruce Ashfield
2021-07-22 12:51 ` [OE-core] [PATCH 0/4] yocto-check-layer: add support to check for dependencies Richard Purdie
2021-07-22 13:00   ` Nicolas Dechesne
2021-07-30  8:02 ` Richard Purdie
2021-07-30  9:08   ` Nicolas Dechesne
2021-07-30  9:27     ` Richard Purdie
2021-08-02 10:35       ` Nicolas Dechesne
2021-08-02 14:57         ` Steve Sakoman
2021-08-02 15:04           ` Richard Purdie
2021-08-02 15:07             ` Steve Sakoman
2021-08-04  2:14               ` Denys Dmytriyenko
2021-08-04 15:10                 ` Steve Sakoman

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=7c8a96980bdc7d6d3d6a81e07b8ba8e1328afcff.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=bruce.ashfield@gmail.com \
    --cc=nicolas.dechesne@linaro.org \
    --cc=openembedded-core@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.