diff mbox series

[3/4] genericarm64.conf: add "testimage" and "testexport" to default IMAGE_CLASSES

Message ID 20241029080544.5486-3-mikko.rapeli@linaro.org (mailing list archive)
State New
Headers show
Series [1/4] README.hardware.md: add genericarm64 maintainers | expand

Commit Message

Mikko Rapeli Oct. 29, 2024, 8:05 a.m. UTC
They export oeqa runtime tests from build environment so that
they can be run in test environment with real HW. Once device has
been flashed and booted so that SSH is available and tmp/testimage
is available on the test worker, then tests can be run with:

$ ./oe-test runtime --target-type simpleremote \
  --target-ip 10.0.0.2

Sample test run log from AMD Kria KV260 board managed by Linaro Automated Validation
Architecture (LAVA, https://www.lavasoftware.org/ ) lab:

https://ledge.validation.linaro.org/scheduler/job/95628

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
 meta-yocto-bsp/conf/machine/genericarm64.conf | 3 +++
 1 file changed, 3 insertions(+)

Comments

Ross Burton Oct. 29, 2024, 11:57 a.m. UTC | #1
On 29 Oct 2024, at 08:05, Mikko Rapeli via lists.yoctoproject.org <mikko.rapeli=linaro.org@lists.yoctoproject.org> wrote:
> +# Run oeqa runtime tests outside of the build environment
> +IMAGE_CLASSES += "testimage testexport"

Sorry, but this isn’t appropriate for the machine configuration.  The build configuration or distro can add these classes as needed.

Ross
Mikko Rapeli Oct. 29, 2024, 12:05 p.m. UTC | #2
Hi,

On Tue, Oct 29, 2024 at 11:57:28AM +0000, Ross Burton wrote:
> On 29 Oct 2024, at 08:05, Mikko Rapeli via lists.yoctoproject.org <mikko.rapeli=linaro.org@lists.yoctoproject.org> wrote:
> > +# Run oeqa runtime tests outside of the build environment
> > +IMAGE_CLASSES += "testimage testexport"
> 
> Sorry, but this isn’t appropriate for the machine configuration.  The build configuration or distro can add these classes as needed.

Ok but where do we do this for genericarm64 images? Somewhere in yocto-autobuilder2
or yocto-autobuilder-helper repos? I presume poky distro will not set these.

Cheers,

-Mikko
Ross Burton Oct. 29, 2024, 12:10 p.m. UTC | #3
On 29 Oct 2024, at 12:05, Mikko Rapeli via lists.yoctoproject.org <mikko.rapeli=linaro.org@lists.yoctoproject.org> wrote:
> On Tue, Oct 29, 2024 at 11:57:28AM +0000, Ross Burton wrote:
>> On 29 Oct 2024, at 08:05, Mikko Rapeli via lists.yoctoproject.org <mikko.rapeli=linaro.org@lists.yoctoproject.org> wrote:
>>> +# Run oeqa runtime tests outside of the build environment
>>> +IMAGE_CLASSES += "testimage testexport"
>> 
>> Sorry, but this isn’t appropriate for the machine configuration.  The build configuration or distro can add these classes as needed.
> 
> Ok but where do we do this for genericarm64 images? Somewhere in yocto-autobuilder2
> or yocto-autobuilder-helper repos? I presume poky distro will not set these.

Is your intention to run testing over images generated by the autobuilder itself?  Arguably, we should add these to poky.conf as poky is explicitly for testing purposes.

Ross
Mikko Rapeli Oct. 29, 2024, 12:14 p.m. UTC | #4
Hi,

On Tue, Oct 29, 2024 at 12:10:29PM +0000, Ross Burton wrote:
> On 29 Oct 2024, at 12:05, Mikko Rapeli via lists.yoctoproject.org <mikko.rapeli=linaro.org@lists.yoctoproject.org> wrote:
> > On Tue, Oct 29, 2024 at 11:57:28AM +0000, Ross Burton wrote:
> >> On 29 Oct 2024, at 08:05, Mikko Rapeli via lists.yoctoproject.org <mikko.rapeli=linaro.org@lists.yoctoproject.org> wrote:
> >>> +# Run oeqa runtime tests outside of the build environment
> >>> +IMAGE_CLASSES += "testimage testexport"
> >> 
> >> Sorry, but this isn’t appropriate for the machine configuration.  The build configuration or distro can add these classes as needed.
> > 
> > Ok but where do we do this for genericarm64 images? Somewhere in yocto-autobuilder2
> > or yocto-autobuilder-helper repos? I presume poky distro will not set these.
> 
> Is your intention to run testing over images generated by the autobuilder itself?  Arguably, we should add these to poky.conf as poky is explicitly for testing purposes.

If these are enabled, then we could take the images and exported tests and run
them directly in Lava lab devices. Another alternative is a different build with them
enabled but then maybe limiting the amount of images would make sense.

If you are ok with this, then I can propose this to poky defaults.

Cheers,

-Mikko
diff mbox series

Patch

diff --git a/meta-yocto-bsp/conf/machine/genericarm64.conf b/meta-yocto-bsp/conf/machine/genericarm64.conf
index a77ffb0431..a81e4e2689 100644
--- a/meta-yocto-bsp/conf/machine/genericarm64.conf
+++ b/meta-yocto-bsp/conf/machine/genericarm64.conf
@@ -35,6 +35,9 @@  SERIAL_CONSOLES ?= "115200;ttyPS0 115200;ttyPS1 115200;ttyAMA0 115200;hvc0 11520
 # of this machine is that real hardware comes with the firmware pre-loaded.
 UBOOT_MACHINE = "qemu_arm64_defconfig"
 
+# Run oeqa runtime tests outside of the build environment
+IMAGE_CLASSES += "testimage testexport"
+
 # runqemu configuration to run a genericarm64 image inside a qemu-system-aarch64. You will need
 # to build u-boot explicitly.
 IMAGE_CLASSES += "qemuboot"