summaryrefslogtreecommitdiffstats
path: root/templates/base
AgeCommit message (Collapse)AuthorFilesLines
2020-03-18Update timeouts based on job profileJan-Simon Moeller2-6/+6
The current job workload can take more than 15 minutes to boot on e.g. qemuarm during firstboot. Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: If913db0a5984b1d4403cfb759797809a860bac6f
2020-01-22Revert "Add a new metadata field for the job_base_url"Khouloud Touil2-2/+0
This reverts commit b0eeec805136c097873dac29a1dfdbc5de545e98. Reason for revert: This patch should be reverted because the changes related to this patch not accepted yet in KernleCI backend, so there will be no job accepted in the backend with this new metadata field. Change-Id: If6045e437275d7d10ae354f39aeb2e2caaec9f47 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2020-01-17Add a new metadata field for the job_base_urlKhouloud Touil2-0/+2
It's a field that is going to be used later in the email report to provied the link of each faild test case of a test job. This metadata will provid the link of the lava web interface. AGL-bug: SPEC-3020 Signed-off-by: Khouloud Touil <ktouil@baylibre.com> Change-Id: If4d90e0c992dc3c07972cdb053f2ef25e934450f
2019-08-15templates/base: remove build-tags section in jobKevin Hilman1-6/+0
build-tags: is not a valid LAVA keyword/section so is causing LAVA jobs to be refused. Only "tags:" is a valid keyword/section. However, build-tags are not needed for selecting a correct LAVA device. This is what 'device-tags' are for. The build-tags are only propogated to the test-scripts. So, to fix, just remove the entire build-tags section. Bug-AGL: SPEC-2751 Change-Id: Ic24bf9c0caf1f4bc2dacd8065eb0edbace7937b1 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-08-08Add/use the new arguemnt --build-tagsKhouloud Touil1-0/+6
Add new argument --build-tags to be used in the job template and to be passed to the tests to be run along with using --device-tags. Bug-AGL: SPEC-2721 Signed-off-by: Khouloud Touil <ktouil@baylibre.com> Change-Id: I2fb4c3d0cb8cd1d0e3c36c1df55185cb4dde43c3
2019-05-31Extend the timeouts for CIBT jobs in the templateshalibut_7.99.1halibut/7.99.17.99.1build.automotivelinux.org1-4/+4
This mitigates slower downloads. Change-Id: I4e18f133097e8a3c32889fcc30a076ad24b882f9 Signed-off-by: build.automotivelinux.org <jenkins@automotivelinux.org>
2019-05-30add tags: section, ensure tags are always lowercaseKevin Hilman1-0/+7
Whenever --device-tags are passed, a "tags:" section is added to the job with all of the tags passed on the command-line. To facilitate this, the device_tags list is passed directly from python to the jinja templates, and iteration is done in jinja instead of a string created in python. Also, while here, ensure that tags are always passed lower-cased. IMPORTANT: this implies that any tags in LAVA labs that are upper-case will *never* be used. Change-Id: I8f274098a69e34c32c5ed2d1c430eca0d364bcc5 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-05-29templates: fix valid kCI metadata keysKevin Hilman1-1/+1
The kernelci-backend is now more strict about enforcing valid and required keys in the metadata. The field `vcs.url` was already a duplicate of `git.url` but now `vcs.url` is no longer considered valid, and using it causes callbacks to be refused by the backend. Fix it by using git.url instead. Change-Id: I768229f3fabc8d127f68f4c33bd6ae22c1f654c4 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-04-14Change default timeoutsJan-Simon Möller1-2/+2
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2019-02-28Add new metadata git.urlKhouloud Touil1-0/+1
This patch adds a new metadata field git.url, this is a link back to the AGL gerrit. Change-Id: I7f7b5fff79198fac7814004ab99b3687cf92125c Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-02-05templates/base: add job.build_environment keyKevin Hilman1-0/+1
Upstream kernelci backend has a new required metadata field: job.build_environment. Eventually, we can use this to describe the yocto environment. For now, let's just use our "AGL-yocto" default string. Change-Id: If4b39c8f0cda49d9ced866eb6fc24fe56b203442 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-01-15templates/base: add new metadata fieldsguppy_6.99.4guppy/6.99.46.99.4Kevin Hilman2-0/+5
To aid with better reporting, recent versions of the kernelci-backend require a few more metadatata fields for test results. The new required fields are test.plan, device.type and git.commit. Change-Id: I89cbddee019ae1e8b91b54a2d174aac4feaf769e Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2018-12-05templates: callbacks: support multiple callback targetsLoys Ollivier4-12/+15
LAVA jobs can now submit multiple callbacks per job. Update the create-jobs tool and its underlying templates to support this feature. - Callback templates are now split in two file and follow LAVA specification: 'section' and 'subsection'. - create-jobs tool supports multiple arguments for the '--callback-to' option. - Default configuration for callback targets can now be a list of targets. Change-Id: I36c502c0bb5b54010ce32a53ba78a6be5e6a1642 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2018-11-08templates: agl-callback: use new syntaxKevin Hilman1-6/+6
Use new "callbacks" syntax (note plural) so that in the future, additional callbacks can be added. Change-Id: Ic793aa591d427bcda45ffbba91e8ea2fadfa6157 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2018-10-12Increase timeout for ptestsJan-Simon Möller1-1/+1
the emulated runs (qemu*) take quite some time. Extend the timeout. Change-Id: I9fc924930655d11902fa3e7b224f5239af58d594 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2018-09-28Extend timeouts, add callback and gitignoreJan-Simon Möller1-0/+4
Change-Id: Ib28d25e1efd0033458fa9ae787610a8de9f5d275 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2018-06-26templates/base: set kernel_tree AGL-yoctoKevin Hilman1-1/+1
Set kernel_tree (used by kernelCI UI) to AGL-yocto instead of AGL-kernel-tree which doesn't really have much meaning. Change-Id: Ie2a3a8040f5da4c23de90bd9492f4742d8a3b84e Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2018-01-10templates: fix the rootfs name for m3ulcb and rpi3 daily buildsLoys Ollivier1-0/+1
The rootfs filename has changed for the daily builds. Change the default to the new filename for both platforms. Change-Id: I44ae29902d882ab6f38dc14bba11cc8aee88f8c2 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-11-08Callback procedure updateLoys Ollivier2-2/+2
New callback procedure. Now the arguments are: - '--callback-from' LAVA lab - '--callback-to' kCI instance This new procedure helps differentiating the lab and the kCI target. Callback config files updated accordingly. Documentation on callback updated. Change-Id: I41b9dc86e33783f1d6a8164fc783557c81678c7f Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-11-06New machine, url, branch, version argumentslollivier1-2/+1
- Machine is now a mandatory argument: --machine - Change in the URL scheme usage: Now the argument is --url, it should be used with --branch & --version (or --changeid and --patchset which are aliases). The default url is the latest AGL release (dab - 4.0.2) - Build version is derived from the URL, branch and version if not set through command line. Example usage: ./utils/create-jobs.py --machine m3ulcb ./utils/create-jobs.py --machine qemux86-64 ./utils/create-jobs.py --url release --branch eel --version 4.99.1 --machine m3ulcb ./utils/create-jobs.py --url release --branch eel --version 4.99.1 --machine qemux86-64 ./utils/create-jobs.py --url daily --branch master --version latest --machine m3ulcb ./utils/create-jobs.py --url daily --branch master --version latest --machine raspberrypi3 ./utils/create-jobs.py --url ci --changeid 11533 --patchset 2 --machine raspberrypi3 ./utils/create-jobs.py --url ci --changeid 11533 --patchset 2 --machine m3ulcb ./utils/create-jobs.py --url http://baylibre.com/pub/agl/ci/raspberrypi3 --machine raspberrypi3 Update the README.md following changes on the url scheme and --machine argument. Bug-AGL: SPEC-975 Change-Id: Idd0d539627d56e8d28e1e4990570a929b3fa0f5d Signed-off-by: lollivier <lollivier@baylibre.com>
2017-10-09New boot type definitionLoys Ollivier1-0/+10
Depending on the boot type (ramdisk or nbd), specify a boot method. This change helps defining the correct boot type automatically from the boot protocol (ramdisk or nbd). Tested with m3ulcb (nbd) and raspberrypi3 (ramdisk). Change-Id: I84845c2fa94b32cd53c91a5330b25505e7b60930 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-10-06Revert "Move boot type to kernel type"Kevin Hilman1-10/+0
This reverts commit 364641197bfe95512555abc36b7b62ac48166aaf. Unfortunately, NBD jobs do not work with the new kernel type, so we can't remove the old boot type (at least until NBD is fixed.) Change-Id: If9a64135ef75771a90655fdc4c6429d9b494fcf0 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-10-06Move boot type to kernel typeLoys Ollivier1-0/+10
Boot type is deprecated in lava v2. Replaced by kernel_type and define it from the kernel image name. Change-Id: I6bcb326b5fb8b0230a9d519485741209bfab8ef2 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-10-06New arguments to specify build artifacts namesLoys Ollivier1-17/+19
Added new command line arguments to specifiy build artifacts names: - "--rootfs-img": for the rootfs file name - "--kernel-img": for the kernel name - "--dtb-img": for the dtb file name - "--modules-img": for the modules file name Change-Id: I665dee2b326aeaaf35148345f0501e49950ba9aa Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-09-26Sort machine and metadata definition fieldsLoys Ollivier1-12/+12
Sort the machine fields, metadata fields. Easier to go through them and search for fields. Change-Id: I657717fda116d78c5733bd1be4000645a3694713 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-09-26Add AGL metadata in job descriptionLoys Ollivier3-2/+20
These metadatas will be used in the frontend to display job's info related to AGL. Change-Id: I3eff231c42fa72a3920ed3583ecb79652ef5b201 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-09-19rfs-image: provide command line options to setup the image nameJerome Brunet1-2/+2
Provide 2 new command line options: --img-name and --img-ext These two options require one another since the name image will be composed from both of them in the following way: rfs_image = img_name + "-" + yocto-machine + "." + img_ext Change-Id: I2b6d174b4c141cea28ce63c3c7c7beae1a82ed4c Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
2017-09-19rootfs_type: remove nfsJerome Brunet1-4/+0
NFS is untested and not used at the moment. Remove it for now to avoid unnecessary issues Change-Id: Ide7f0663f3c31cde14dcda3c6e6694e22165bf49 Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
2017-09-08Add callback option to command lineLoys Ollivier2-0/+14
The callback option takes one argument. It is the name of the file located in ./templates/callback/ that contains all the "secret" information such as the callback FQDN, lab name and token. A readme is provided: ./templates/callback/callback_readme.txt Change-Id: Id457d90eba0d1312e43246ca607289ad829fd55f Signed-off-by: Loys Ollivier <lollivier@baylibre.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-09-07rootfs_type: add default rootfs type for each deviceJerome Brunet1-0/+1
Add a default rootfs type for each device. the type can still be overridden from the command line. The 'boot' parameter is no longer required with this change Change-Id: I666287d83652bcd81d9619eee75bf9be292d936a Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-09-01initial snapshot: LAVA job creation based on templatesKevin Hilman3-0/+83
Change-Id: I5d545d3531f4c4190453724738076bd4eddfc4d6 Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Loys Ollivier <lollivier@baylibre.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>