Hi all,
I get back to this topic as I have a new issue now. Squad worker return a "Plugin postprocessing error" when the tradefed plugin is triggered. The logs :
Jun 06 03:35:40 squad.sw.nxp.com celery[26318]: [2019-06-06 03:35:40 +0000] [INFO] Starting CTS/VTS plugin for test job: 1717 Jun 06 03:35:40 squad.sw.nxp.com celery[26318]: [2019-06-06 03:35:40 +0000] [ERROR] Plugin postprocessing error: 'definitions' Jun 06 03:35:40 squad.sw.nxp.com celery[26318]: Traceback (most recent call last): Jun 06 03:35:40 squad.sw.nxp.com celery[26318]: File "/usr/local/lib/python3.5/dist-packages/squad/ci/models.py", line 132, in __postprocess_testjob__ Jun 06 03:35:40 squad.sw.nxp.com celery[26318]: plugin.postprocess_testjob(test_job) Jun 06 03:35:40 squad.sw.nxp.com celery[26318]: File "/usr/local/lib/python3.5/dist-packages/tradefed/__init__.py", line 185, in postprocess_testjob Jun 06 03:35:40 squad.sw.nxp.com celery[26318]: for test_definition in test_action['test']['definitions']: Jun 06 03:35:40 squad.sw.nxp.com celery[26318]: KeyError: 'definitions'
Am I missing something ?
Best regards, Axel
On Mon, 3 Jun 2019 at 10:19, Axel Lebourhis axel.lebourhis@linaro.org wrote:
Hi Milosz,
Thank you for your email. It is now working fine. I setup my own local HTTP server and updated my tradefed test definition (based on yours) to match my setup. The main thing that was missing in my test definition was the "lava-test-reference".
Thank you for you help.
Regards, Axel
On Wed, 29 May 2019 at 11:26, Milosz Wasilewski < milosz.wasilewski@linaro.org> wrote:
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