On 23 August 2016 at 18:40, Sandeep Chawla sandeep@cyngn.com wrote:
Hello,
Google has release the latest version of Tradefed with the Android N release.
https://source.android.com/devices/tech/test_infra/tradefed/index.html
Lots of dispatcher/slave features which LAVA already supports.
I'm not sure what you mean there. The support described on that page is not directly suitable for automation, requires specific tools to be available for specific jobs and also extra hardware. The multiple device support in the tool is actually at odds with what automation requires. The tool may be usable inside a test definition but the LAVA V2 support is independent of what this tool is trying to achieve.
Given this update, is LAVA exploring to adopt the new mechanism or continue developing its own architecture ?
0. There'll be no change in V1 support, that "android test architecture" is deprecated and is not receiving any development. 1: V2 support already isolates android testing inside LXC. 2: If the new tool(s) can be installed inside the LXC and use adb as currently then the existing V2 support can be used with updated test definitions. This puts the "new mechanism" inside the LXC and therefore there is no either | or decision. It is simply up to the test writer to incorporate the new tool into the LXC support. 3: The output of any tool used in a test definition needs to be mapped to lava-test-case to show up in the LAVA results - a custom wrapper script which understands the new tool would be part of the updated test definition. This would need to run inside the LXC and parse the output, just as happens with current adb output. 4: Features like power measurement are dependent on local admin setup - I can't say whether those could be supported at this stage. It depends entirely on how the tool itself works. There is not enough information to derive that yet. 5: Multiple devices would not be suitable for testing this way other than by using Multinode. The multiple device support in the tool would interfere with scheduling of LAVA devices used by other testjobs, so usage of the tool would need to be constrained to the one device assigned to that testjob. 6: Testing apps does not necessarily need LAVA unless those apps use hardware features which are only available on certain devices or only show bugs on specific types of devices. The Device OEM use case is the most likely to benefit from what LAVA can offer. 7: So far, there have been no requests to work on this from within the Linaro groups, so there is nobody working on this within Linaro so far as I am aware. It looks like the necessary work needs to only happen in the test definitions, so that is not a barrier to someone outside Linaro developing that support. 8: Overall, LAVA V2 does not have it's own architecture for these use cases other than the requirements which follow directly from automation. Once the complete process is automated then the tool would appear to fit inside the existing automation support using LXC, subject to the requirements involving external hardware.