On Wed, Apr 15, 2020 at 06:54:58PM +0000, Stephen Lawrence wrote:
Hi,
I have some questions about the new adb/fastboot support in LAVA 2020.02 described in the recent Tech Days LAVA presentation [1]. Main initial use cases are Android boot test, before moving on to running Android tests. Android is AOSP 9/10.
[1] https://connect.linaro.org/resources/ltd20/ltd20-304/
Taking the boot test use case I was looking at Antonio's Example 1 from his presentation for fastboot deploy, boot and test. I found doc for test in the 2020.02 release note but nothing I could see for deploy or boot.
In the LXC approach a typical job definition would have had target and host namespaces, with deploy and boot for the host space to create and boot the LXC container. Looking at Example 1 deploy from the presentation it looks like that is a largely a target fragment as it contains the image binary etc. A host deploy no longer being required as the Docker container is now created outside lava.
Similarly the Example 1 boot looks like a target fragment and host boot fragment is not required as LAVA simply needs to run the specified Docker container. Then finally in Example 1 test the scope is the specified docker container so no namespace is required.
Is my interpretation of the Example 1 slides correct? I tried some fragments that were causing fundamental errors that caused me to check here. Although as is often the case writing it out helps you get it straighter in your mind.
You do not need to use namespaces anymore; there is no deploy/boot for the container, it's handled for you. think of it as if you were running code on the worker itself, but instead it's on a docker container.
There is a tutorial under review, maybe you can take a look: https://git.lavasoftware.org/lava/lava/-/merge_requests/1119
The migration guide section has full YAML job definitions as example.
If you have reasons to want to control fastboot for the flashing on the host is that possible? For example if you had the host side process scripted.
It is possible using a docker test action. You have full control of the device - but then you will also need to download any images yourself.
Does the fastboot Docker OS need to be specified?
No