Bug 11745 - nightly-refkit CreateBBLayersConf should be dynamic
Summary: nightly-refkit CreateBBLayersConf should be dynamic
Status: RESOLVED FIXED
Alias: None
Product: AutoBuilder
Classification: Infrastructure
Component: autobuilder (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.4 M3
Assignee: Stephano Cetola
QA Contact:
URL:
Whiteboard:
: 11823 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-07-02 14:14 UTC by Stephano Cetola
Modified: 2017-08-07 15:01 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephano Cetola 2017-07-02 14:14:03 UTC
Since we are parsing and building all the images in refkit-ci.inc, a dynamic set of
images is built. We should be adding layers to bblayers.conf dynamically to avoid errors as refkit-ci.inc changes.
Comment 1 Joshua Lock 2017-07-06 14:46:36 UTC
refkit, quite nicely and correctly, uses TEMPLATECONF to provide a complete bblayers.conf

We should probably have the autobuilder machinery be able to use the automatically generated bblayers.conf (and local.conf) from there.
Comment 2 Joshua Lock 2017-07-21 15:16:01 UTC
(In reply to comment #1)
> refkit, quite nicely and correctly, uses TEMPLATECONF to provide a complete
> bblayers.conf
> 
> We should probably have the autobuilder machinery be able to use the
> automatically generated bblayers.conf (and local.conf) from there.

The difficulty here is that we need to use the OE-Core and bitbake from the top-level directory, not those cloned as part of the refkit checkout.
Comment 3 Stephano Cetola 2017-07-24 14:25:35 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > refkit, quite nicely and correctly, uses TEMPLATECONF to provide a complete
> > bblayers.conf
> > 
> > We should probably have the autobuilder machinery be able to use the
> > automatically generated bblayers.conf (and local.conf) from there.
> 
> The difficulty here is that we need to use the OE-Core and bitbake from the
> top-level directory, not those cloned as part of the refkit checkout.

Shouldn't we be doing both? I would think we'd want this setup:

1) Test refkit build exactly as they expect; with all their layers and revs.
2) Test meta-refkit with the HEAD of Yocto master

Test 1 would ensure refkit builds as expected while test 2 would provide a "head's up" for future problems with Yocto.
Comment 4 Joshua Lock 2017-07-24 14:33:37 UTC
Test one already happens on refkit's CI, whilst test two is the value add we provide by building on the Yocto AB.
Comment 5 Stephano Cetola 2017-07-25 15:22:29 UTC
*** Bug 11823 has been marked as a duplicate of this bug. ***
Comment 6 Armin Kuster 2017-07-25 23:02:56 UTC
looks like it failed again.

https://autobuilder.yocto.io/builders/nightly-refkit/builds/75/steps/BuildImages/logs/stdio


NOTE: Starting bitbake server...
ERROR: Layer 'refkit' depends on layer 'iot-web', but this layer is not enabled in your configuration
ERROR: Layer 'refkit-gateway' depends on layer 'iot-web', but this layer is not enabled in your configuration
Comment 7 Stephano Cetola 2017-08-07 15:01:13 UTC
Merged in 07c52d2b3ee445d84f24ad5c016f89615a52bab9