On Wed, 29 May 2019 at 08:27, Axel Lebourhis axel.lebourhis@linaro.org wrote:
Hi all,
I saw you have a repository with tradefed and ltp plugins for SQUAD. If I understand correctly, those plugins retrieve CTS/VTS/LTP logs to attach the error logs to failed test cases.
My questions are : How can I setup those plugins to work with my SQUAD instance ?
you need to install the package from pip (https://pypi.org/project/squad-linaro-plugins/) to your squad instance. That should do the trick. Each project has to have the plugin enabled manually.
Do I need to use a specific tradefed test definition to interface it with the plugin ?
yes, tradefed plugin assumes that all logs are stored outside of LAVA. Tradefed creates a zip file that is later uploaded to 'artifactorial' (https://archive.validation.linaro.org/). You can use some other service but it needs to support upload request in the following form: curl "${CURL_VERBOSE_FLAG}" -F "path=@${ATTACHMENT}" -F "token=${ARTIFACTORIAL_TOKEN}" "${ARTIFACTORIAL_URL}" ATTACHMENT is the zip file that tradefed created and ARTIFACTORIAL_TOKEN is used to authenticate the user uploading the content. This step is done automatically when you use tradefed [1] or noninteractive-tradefed [2] from test-definitions
When running in squad post processing step plugin downloads the zip file and extracts logs from it. Failed tests are updated with logs.
Does the job submission works the same way ? using the submitjob API ?
Test job submission works the same way. Plugins work as a post processing step after LAVA jobs are completed.
[1] https://git.linaro.org/qa/test-definitions.git/tree/automated/android/tradef... [2] https://git.linaro.org/qa/test-definitions.git/tree/automated/android/nonint...
milosz
Thank you in advance, Axel _______________________________________________ Squad-dev mailing list Squad-dev@lists.linaro.org https://lists.linaro.org/mailman/listinfo/squad-dev