On 20 March 2018 at 10:18, Tim Jaacks tim.jaacks@garz-fricke.com wrote:
Hi Dan,
Here's an example of generating lava templates using jinja2. It's
probably more complicated than you need.
openembedded-lkft/lava-job-definitions
for a directory of templates, and see https://git.linaro.org/ci/job/configs.git/tree/
openembedded-lkft/submit_for_testing.py
for the python code that does the generation. Lastly, you can run
https://git.linaro.org/ci/job/configs.git/tree/openembedded- lkft/test_submit_for_testing.sh
and it will generate all of the YAML files into "./tmp".
Like I said, this is likely more complicated than you are looking for. I
suggest starting simpler using https://pypi.python.org/pypi/ jinja2-cli/0.6.0.
Thank you, that really helps a lot. We want to trigger the LAVA jobs from Jenkins as well, and we need lots of metadata because the tests will be part of our release notes in the end. So no, this is definitely not more complicated than we need. In fact, this is a very good starting point for us.
You should think about adding a chapter to the LAVA documentation about how to generate YAML job submissions via templates. I assume we are not the only ones facing this problem. And I had basically no experience with jinja2 at all before evaluating LAVA, so I would not have come up with the idea of using this mechanism for the job submissions myself.
Story added to track this addition: https://projects.linaro.org/browse/LAVA-1260
Mit freundlichen Grüßen / Best regards Tim Jaacks DEVELOPMENT ENGINEER Garz & Fricke GmbH Tempowerkring 2 21079 Hamburg Direct: +49 40 791 899 - 55 Fax: +49 40 791899 - 39 tim.jaacks@garz-fricke.com www.garz-fricke.com SOLUTIONS THAT COMPLETE!
Sitz der Gesellschaft: D-21079 Hamburg Registergericht: Amtsgericht Hamburg, HRB 60514 Geschäftsführer: Matthias Fricke, Manfred Garz _______________________________________________ Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users