Hey,

regarding your compile question: Yes as Milosz already pointed out, it's no good idea to use LAVA to compile the code.
Usually there are better systems for that, and there the compile can be separated into different steps/stages - and there will be a separate test step.
So if you want to automate the whole process, your build system should have a test step which will send a test job to LAVA, and afterwards read back the results.

See https://validation.linaro.org/static/docs/v2/contents.html#ci-with-lava in general for documentation on how to achieve this.
This will end in XML-RPC to submit jobs:
https://validation.linaro.org/static/docs/v2/lavacli.html
and in
https://validation.linaro.org/static/docs/v2/data-export.html
for exporting the test results.

As LAVA uses a standard format for exporting test results (forgot about the details, I think it was JUnit), visualizing the results in your build system shouldn't be a problem.

One upside for taking this approach: Your device is only occupied during test step, not during the whole build process.

Best regards
Stefan

On 2023-09-20 12:10, irreallich@126.com wrote:
Hi, Milosz,
   I'm so excited to see your reply,  i am a newer of lava and it is the first time for me to ask help on the mailing lists, I didn't expect to get a reply so quickly, it gave me great confidence . Thank you very much. 
1. About using lava to compile code
Before asking a question I took the time to look through the list of previous questions,  just like you,  most people do not recommend compiling with lava,  I also think this is not a good idea, my requirement is to build an automated testing system that integrates our limited hardware board. Users can create a job to execute tests after modifying their own code, so building code is a necessary step.  Do you have any better suggestions for this problem?

2. I installed lava using apt install,  it is already working, but there are some problem. 
e.g  the following will be failed  python3 -m unittest -vcf tests.lava_scheduler_app.test_base_templates.TestBaseTemplates.test_all_templates
because lava test is not be installed.  I tried downloading the source code and fixing the problem, but it doesn't look like the right way to do it 
What is the most appropriate way to install lava?

Thanks
_______________________________________________
lava-users mailing list -- lava-users@lists.lavasoftware.org
To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s