aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-lava-labs-prepare.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-11-30Merge "jjb/common/lava-labs-prepare: LAVA fail gracefully if device not found"Jan-Simon Moeller1-1/+2
2017-11-30jjb/common/lava-labs-prepare: LAVA fail gracefully if device not foundlollivier1-1/+2
When LAVA labs are offline, or otherwise unavailable, "lava-tool devices-list" fails causing the whole job to fail. Detect this error earlier when trying to add the authentication and skip the lab if offline. If the device was not found in any lab, exit with success. JIRA: SPEC-1142 Change-Id: Ia2cdeea3da8ade7feb5962e0898f40e59ca9cfdb Signed-off-by: lollivier <lollivier@baylibre.com>
2017-11-29jjb/common: lava-labs-prepare: rename dra7Kevin Hilman1-1/+1
Rename dra7-evm to use upstream LAVA device-type conventions. Change-Id: Ice5912fc1668d644184949032124bb4fce0c7854 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-11-16jjb/common: lava-labs-prepare: extend aliasesLoys Ollivier1-0/+2
Extend the aliases table for all existing devices, even the one not using releng. That way we can search for the correct device type in the lava labs. Change-Id: Iaaa5b66923d4ed1e302d874457af573e12384acf Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-11-15jjb/common: lava-labs-prepare: catching errorsKevin Hilman1-0/+7
When no device of the requested device-type is available, abort early with a useful error message, otherwise job continues and fails in confusing ways. Change-Id: I8fdb4160a1ca88d8ba5eb768d70975e9466f696a Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-11-15jjb/common: lava-jobs: create device name aliasesLoys Ollivier1-2/+17
The previous version would fail to find some boards if the device names were different between lava, AGL, releng. This version creates a device alias table. And uses this table with the correct name for each component (AGL, lava, releng). Change-Id: Ief064c5ff9edb2d824e80549148ee0ab40ebcddf Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-11-11Fix lab URL using RPC2/Jan-Simon Möller1-0/+1
Change-Id: I695244c8d6880499db2ac611603b538efc093d3f Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2017-11-08CIBT improve lava lab searching and coding styleLoys Ollivier1-16/+22
Fix coding style, indentation. Improve the lab search, if a lab has the device do not search in others as it won't be used. Change-Id: I7471511ff7af3d2f6d8708943b42099a450ef770 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-11-07CIBT find the LAVA lab before calling relengLoys Ollivier1-1/+32
Add some logic to lava-labs-prepare: - Search for the machine in the list of labs - export the lab name if found Call releng with the corresponding lab name in run-test-short Send the job directly to the corresponding lab in lava-jobs-submit. Keep the 'checking for device' in this script as well, just to make sure the device is still available and can run the job. Otherwise the script could be blocked there if the device status changes. Change-Id: I50646b7fdb607cb9245a1d31e644eee45a2a2356 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-08-21jjb/common: LAVA: disable lab-baylibre-seattleKevin Hilman1-1/+1
lab-baylibre-seattle is offline due to HW failures. Disable for now. Change-Id: I494ca7ef77a589708626bd81b4e078d19eb5d3e2 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-05-23ci-platform: use updated LAVA authKevin Hilman1-1/+1
LAVA authentiticaion setup is now done in a dedicated script (include-agl-lava-labs-prepare.sh), remove it from run-test-short.sh as it's no longer needed. While at it, rename porter.automotivelinux.org to its new name: lava.automotivelinux.org Change-Id: Ifd7b701c9d76abdeb02f3d242f0b32c26d448749 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-05-22ci-platform-jjb: CIBT: add support for multiple LAVA labsKevin Hilman1-0/+59
Currently, support for boot testing using LAVA is hard-coded to a single LAVA lab (in include-agl-run-test-short.sh) Add an additional step/script for preparing the authentication environment for multiple LAVA labs. Once validated, the LAVA support can be removed from the "run-test-short" script. Change-Id: I5faa12b5234369d63ad392ec8dc47a5542856c5a Signed-off-by: Kevin Hilman <khilman@baylibre.com>