On Thu, 31 Jan 2019 at 15:35, Axel Lebourhis axel.lebourhis@linaro.org wrote:
Hi everyone,
I'm writing this email after discussion with Neil. I'm working at NXP and he told me Linaro wanted to run functional tests on imx8m with the new u-boot support. He told me it requires full open access, no license click-through or passwords.
So a bit of background here.
The functional tests I am looking at here would be files in: https://git.lavasoftware.org/lava/functional-tests and the README contains more information: https://git.lavasoftware.org/lava/functional-tests/blob/master/README
Those functional tests are LAVA test jobs which LAVA developers can submit to get assurances that the changes in the master branch of LAVA have not caused a regression in the runtime operations of LAVA. The unit tests can cover a lot of the functionality but some testing of LAVA source code still needs to be done with real devices.
As part of this, Remi has been designing lavafed - Federated LAVA functional testing. https://git.lavasoftware.org/lava/lavafed He will be presenting a lightning talk on lavafed at FOSDEM 2019 in Brussels, this weekend.
lavafed looks like this: https://federation.lavasoftware.org/versions/
The idea is that more and more labs will join into a distributed functional test of LAVA, managed via Docker.
Prior to lavafed, functional tests were submitted either manually or via cron as the lavabuildd user. We have been using functional tests in LAVA for about 3 years now. We would like to get to the point where all new functionality has a functional test.
Philippe Mazet is more qualified to answer this type of question as I only use Android atm. He will follow up the discussion.
Here you have the Yocto source code : https://source.codeaurora.org/external/imx/imx-manifest/tree/README?h=imx-li...
You can get the latest GA release with this :
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.78-1.0.0_ga.xml
You can build these sources like this :
DISTRO=fsl-imx-wayland MACHINE=imx8mqevk source ./fsl-setup-release.sh -b build
But, this will redirect you to a license click-through.
However, you can bypass the license click-through, like "auto accept it" with this command :
EULA=1 DISTRO=fsl-imx-wayland MACHINE=imx8mqevk source ./fsl-setup-release.sh -b build
We use this bypass to automate builds.
So, let us know if this would be suitable for Linaro's needs.
As it stands, no, those links are not suitable for functional tests but are likely to be useful if and when CI restarts for kernel builds etc. The links above will also be very useful in a README alongside the built files.
Functional tests need static, known working URLs for unchanging kernels, ramdisks, NFS tarballs, DTBs, AOSP images and IoT binaries. We will be using checksums to ensure that these files do not change. The point is to repeatedly run unchanging binaries on unchanging devices, each time the LAVA source code changes. That gives us the assurance we need, by testing one thing at a time. This is for LAVA CI, not Linux CI or OE CI or member company CI. The thing being tested is the LAVA source code, not the devices and not the binaries.
To create functional tests, we need URLs like the ones already in use in the functional tests: https://git.lavasoftware.org/lava/functional-tests/blob/master/release/qemu-... or https://git.lavasoftware.org/lava/functional-tests/blob/master/release/imx7s... or https://git.lavasoftware.org/lava/functional-tests/blob/master/release/hi622... - URLs like:
url: https://files.lavasoftware.org/components/lava/standard/debian/sid/arm64/2/v...
files.lavasoftware.org also has a README: https://files.lavasoftware.org/README
So what we need is the result of the automated builds, at a public location which doesn't use a click-through banner or password, so that we can let LAVA download directly from that URL and put the file onto the device or serve it via TFTP. The zImage files, the foo.dtb files and the something-something.tar.gz NFS root filesystem files. Preferably, all files should come with SHA256 checksums, MD5 can be used too.
We would like to have a script that can rebuild the images - because that helps cover problems when the software in the images/files is itself too old to complete the test and to provide some assurance that people can see how the binary was built to satisfy the licences which apply to the source code used to build the binary in the first place. We need to know that the files are known to work and we only need one set of files for each method of driving the device.
If a suitable LAVA test job is provided too, things will happen more quickly.
The objective here is to get as wide a set of functional tests as we can, across all the devices we can currently access. Then we will increase the contribution into lavafed from other LAVA labs, particularly targeting device-types which we do not have available from the other labs. Once we have a suitably wide set, we can look at deprecating and later pruning some of the boot, deploy or test methods based on the availability of devices which use those methods.
lavafed is in active development and more devices are being added as we develop the support for running test jobs using Docker.