All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] CI: update for meta-zephyr changes
@ 2022-01-24 17:40 Ross Burton
  2022-01-24 17:40 ` [PATCH 2/2] CI: fix check-layer indeterminism Ross Burton
  2022-01-24 19:53 ` [PATCH 1/2] CI: update for meta-zephyr changes Jon Mason
  0 siblings, 2 replies; 5+ messages in thread
From: Ross Burton @ 2022-01-24 17:40 UTC (permalink / raw)
  To: meta-arm

As of meta-zephyr dde88ba the layer is structured different, split into
meta-zephyr-core and meta-zephyr-bsp.

As we define our own machines for use with Zephyr, we can just use
meta-zephyr-core.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 ci/meta-zephyr.yml    | 3 ++-
 ci/qemu-cortex-m3.yml | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ci/meta-zephyr.yml b/ci/meta-zephyr.yml
index 2f23f2bc..20d54649 100644
--- a/ci/meta-zephyr.yml
+++ b/ci/meta-zephyr.yml
@@ -6,4 +6,5 @@ header:
 repos:
   meta-zephyr:
     url: https://git.yoctoproject.org/git/meta-zephyr
-    refspec: master
+    layers:
+      meta-zephyr-core:
diff --git a/ci/qemu-cortex-m3.yml b/ci/qemu-cortex-m3.yml
index ab6d5c73..d9b197cb 100644
--- a/ci/qemu-cortex-m3.yml
+++ b/ci/qemu-cortex-m3.yml
@@ -4,6 +4,11 @@ header:
     - ci/base.yml
     - ci/meta-zephyr.yml
 
+repos:
+  meta-zephyr:
+    layers:
+      meta-zephyr-bsp:
+
 local_conf_header:
   tclibc: |
     TCLIBC = "newlib"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] CI: fix check-layer indeterminism
  2022-01-24 17:40 [PATCH 1/2] CI: update for meta-zephyr changes Ross Burton
@ 2022-01-24 17:40 ` Ross Burton
  2022-01-24 18:06   ` [meta-arm] " Denys Dmytriyenko
  2022-01-24 19:53 ` [PATCH 1/2] CI: update for meta-zephyr changes Jon Mason
  1 sibling, 1 reply; 5+ messages in thread
From: Ross Burton @ 2022-01-24 17:40 UTC (permalink / raw)
  To: meta-arm

yocto-check-layers is very greedy when searching for layers, and will
find the test layers in Bitbake if given the chance, for example:

bitbake/lib/layerindexlib/tests/testdata/layer4

This layer has the collection name openembedded-layer and is only
compatible with Sumo.  The selection of layer from collection name is
not deterministic, so it's possible that this layer is selected which
then fails the check as it isn't compatible.

Solve this by restricting the dependency layers in meta-arm to just
meta-arm/meta-*, so it doesn't recurse into meta-arm/work/poky/bitbake.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9a60f672..4c5d74e9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -79,7 +79,7 @@ check-layers:
   extends: .setup
   script:
     - kas shell --update --force-checkout ci/base.yml:ci/meta-openembedded.yml --command \
-      "yocto-check-layer-wrapper $CI_PROJECT_DIR/$LAYER --dependency $CI_PROJECT_DIR $KAS_WORK_DIR/meta-openembedded/meta-oe --no-auto-dependency"
+      "yocto-check-layer-wrapper $CI_PROJECT_DIR/$LAYER --dependency $CI_PROJECT_DIR/meta-* $KAS_WORK_DIR/meta-openembedded/meta-oe --no-auto-dependency"
   parallel:
     matrix:
       - LAYER: [meta-arm, meta-arm-bsp, meta-arm-toolchain, meta-gem5]
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [meta-arm] [PATCH 2/2] CI: fix check-layer indeterminism
  2022-01-24 17:40 ` [PATCH 2/2] CI: fix check-layer indeterminism Ross Burton
@ 2022-01-24 18:06   ` Denys Dmytriyenko
  2022-01-24 18:24     ` Ross Burton
  0 siblings, 1 reply; 5+ messages in thread
From: Denys Dmytriyenko @ 2022-01-24 18:06 UTC (permalink / raw)
  To: Ross Burton; +Cc: meta-arm, Richard Purdie

On Mon, Jan 24, 2022 at 05:40:12PM +0000, Ross Burton wrote:
> yocto-check-layers is very greedy when searching for layers, and will
> find the test layers in Bitbake if given the chance, for example:
> 
> bitbake/lib/layerindexlib/tests/testdata/layer4
> 
> This layer has the collection name openembedded-layer and is only
> compatible with Sumo.  The selection of layer from collection name is
> not deterministic, so it's possible that this layer is selected which
> then fails the check as it isn't compatible.
> 
> Solve this by restricting the dependency layers in meta-arm to just
> meta-arm/meta-*, so it doesn't recurse into meta-arm/work/poky/bitbake.

FWIW, I've fallen into this trap before - should this Sumo remnant be removed 
from Bitbake then?


> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
>  .gitlab-ci.yml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index 9a60f672..4c5d74e9 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -79,7 +79,7 @@ check-layers:
>    extends: .setup
>    script:
>      - kas shell --update --force-checkout ci/base.yml:ci/meta-openembedded.yml --command \
> -      "yocto-check-layer-wrapper $CI_PROJECT_DIR/$LAYER --dependency $CI_PROJECT_DIR $KAS_WORK_DIR/meta-openembedded/meta-oe --no-auto-dependency"
> +      "yocto-check-layer-wrapper $CI_PROJECT_DIR/$LAYER --dependency $CI_PROJECT_DIR/meta-* $KAS_WORK_DIR/meta-openembedded/meta-oe --no-auto-dependency"
>    parallel:
>      matrix:
>        - LAYER: [meta-arm, meta-arm-bsp, meta-arm-toolchain, meta-gem5]
> -- 
> 2.25.1
> 

-- 
Regards,
Denys Dmytriyenko <denis@denix.org>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-arm] [PATCH 2/2] CI: fix check-layer indeterminism
  2022-01-24 18:06   ` [meta-arm] " Denys Dmytriyenko
@ 2022-01-24 18:24     ` Ross Burton
  0 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2022-01-24 18:24 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: meta-arm, Richard Purdie

On Mon, 24 Jan 2022 at 18:06, Denys Dmytriyenko <denis@denix.org> wrote:
> FWIW, I've fallen into this trap before - should this Sumo remnant be removed
> from Bitbake then?

No, the layer shouldn't be found in the first place.  I'm adding a
check to the tool so that if the layer searching goes a bit haywire
and finds these it aborts early instead of giving weird failures.

Ross


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] CI: update for meta-zephyr changes
  2022-01-24 17:40 [PATCH 1/2] CI: update for meta-zephyr changes Ross Burton
  2022-01-24 17:40 ` [PATCH 2/2] CI: fix check-layer indeterminism Ross Burton
@ 2022-01-24 19:53 ` Jon Mason
  1 sibling, 0 replies; 5+ messages in thread
From: Jon Mason @ 2022-01-24 19:53 UTC (permalink / raw)
  To: meta-arm, Ross Burton

On Mon, 24 Jan 2022 17:40:11 +0000, Ross Burton wrote:
> As of meta-zephyr dde88ba the layer is structured different, split into
> meta-zephyr-core and meta-zephyr-bsp.
> 
> As we define our own machines for use with Zephyr, we can just use
> meta-zephyr-core.

Applied, thanks!

[1/2] CI: update for meta-zephyr changes
      commit: 710cf290b572ff75d577e587e9b6cfaa0917269f
[2/2] CI: fix check-layer indeterminism
      commit: d2c5a5d289bf89eb58fa565a0836d899df2bf8bc

Best regards,
-- 
Jon Mason <jon.mason@arm.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-24 19:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-24 17:40 [PATCH 1/2] CI: update for meta-zephyr changes Ross Burton
2022-01-24 17:40 ` [PATCH 2/2] CI: fix check-layer indeterminism Ross Burton
2022-01-24 18:06   ` [meta-arm] " Denys Dmytriyenko
2022-01-24 18:24     ` Ross Burton
2022-01-24 19:53 ` [PATCH 1/2] CI: update for meta-zephyr changes Jon Mason

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.