Hi David, On Thu, 2023-10-26 at 15:03 +0200, David Pierret wrote: > - Modify the setup-auh to use repositories cloned by the auto-builder. > Manage the case where meta-openembedded is not used. > > - Modify the run-auh to manage the optional additional layer. > Only 1 layer can be provided. > > - Add auh-meta-openembedded job with 1 step per layer. > > Signed-off-by: David Pierret <david.pier...@smile.fr> > --- > config.json | 102 ++++++++++++++++++++++++++++++++++++++++++++-- > scripts/run-auh | 39 ++++++++++++------ > scripts/setup-auh | 34 ++++++++++------ > 3 files changed, 146 insertions(+), 29 deletions(-)
This took a while to review. Firstly, this really should be written as a set of commits with incremental changes. For example, changing the script to use poky from the autobuilder checkout instead of the local clone is one logical change. We could take and review/merge that independently of the other changes. Another logical independent change is using auto-upgrade-helper from the checkout of the autobuilder. That did highlight an issue that the autobuilder does not provide a checkout of that repository. With that and this work in mind I added auh-meta-oe here: https://git.yoctoproject.org/yocto-autobuilder2/commit/?id=47c0119b6e87f920566d2176793ef8d982cf31e2 and then added the auto-upgrade-helper repo here: https://git.yoctoproject.org/yocto-autobuilder2/commit/?id=854a60ce8bf8ce0feec370bc6782cc12aa1e29a5 which then means this patch is closer to working. I had to make some tweaks on top of the patch to make it work: https://git.yoctoproject.org/yocto-autobuilder-helper/commit/?h=master-next&id=673745f473024020ed9efece26462e8c884dc819 where I found that: * poky in the AB context is $1/.. since it is the top level container of the layers * meta-openembedded is located at ${HELPERBUILDDIR}/../meta-openembedded * we still need to source the build env script. The AB could be configured to do that for us but currently isn't. * we need to trim the machine_list down as mentioned * the naming we're using is auh-meta-oe, not auh-meta-openembedded * I've temporarily configured to use the test-list so we don't send lots of mail to all users * layer dependencies were missing in ADDLAYER. I hate having to do that but it is is what it is right now. With that, we get this "successful" build: https://autobuilder.yoctoproject.org/typhoon/#/builders/159/builds/5 which shows the exit code handling isn't great but probably deliberate to avoid autobuilder errors. This gets us to the point where the code in the upgrade helper itself needs the layer support changing. Since I've now had to look into that code, it seems the layer options are entirely missing from the commandline options parser. I'd strongly suggest dropping layer_machines variable and just use the machines value in all cases. "layer-mode" seems pointless as you can determine if we're in "layer mode" if a layer is specified on the commandline (which needs adding). I'm hoping you could use the layer overrides to be able to identify which recipes to upgrade. Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61507): https://lists.yoctoproject.org/g/yocto/message/61507 Mute This Topic: https://lists.yoctoproject.org/mt/102199062/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-