aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-lava-labs-prepare.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-09-26Remove verbosity from jenkins jobsJan-Simon Moeller1-1/+1
clean the logs. Can be re-enabled when debugging is needed. Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I13bba480196e3932c45123c62f03064e420f257f
2019-05-09Avoid an extra 1min wait for the Idle,Good boardKhouloud Touil1-4/+2
As we have to wait 60s for each retry, this patch avoid to keep the Idle,Good boards waitong an extra 60s. Change-Id: I34dd47362da5e2de14103cc374c9b6f4cd830aa7 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-05-02Fix the lavacli_tags displayKhouloud Touil1-1/+1
This patch fixes the lavacli_tags display. Change-Id: I7a52f5e000fe79a4a1ee45a2652912d03302320b Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-04-30Harden the board selection loopJan-Simon Möller1-22/+28
and make it more resilent. Better wait here until we really have a board available than fail later. Fix: A running board was counted as 'available' but the job timeouts might kill us lateron. Change-Id: Ic508525c330299718ac7743a274bce1c2a06f894 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2019-04-29Delete-lava-tool-commands-already-replaced-with-lavaKhouloud Touil1-19/+0
As the lavacli works fine now, the lava-tool part is no longer needed. This patch delete just the part to list the devices and the part of auth using lava-tool. Change-Id: If3e27de642b4c5f901dec4453341dc07f71873d8 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-04-29Replace lava-tool with lavacliKhouloud Touil1-15/+11
In order to move totally to lavacli, this patch: - Apply changes to submit jobs using lavacli. As the blocking call (--block) no longer exists with lavacli, so had to replace that with a polling loop. - Replace lava-tool with lavacli in the polling part in the labs-prepare file, which checks the device status and availability. Different changes tested at Baylibre. Change-Id: I25b1ad4b47ae09a158e1e1cf42e30da5e6aa8b57 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-03-27jjb/common: lava-labs-prepare: check only the available boardsKhouloud Touil1-1/+1
To avoid choosing a board with an offline status, this patch check and lists only the boards with an Idle,Good status. Change-Id: I64673c87b038b7e7e82001f7bfd2a35af5b73d60 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-03-22jjb/common: lava-labs-prepare: fix the urlKhouloud Touil1-1/+1
This patch fixes the url when adding the identities using the lavacli tool. Change-Id: I0c0bab0cec63a06d74581e1f05c94d25befcc238 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-03-20jjb/common: lava-labs: lavacli should not be fatalKevin Hilman1-1/+0
For now, the use of lavacli is for debug only, so failure to list devices with lavacli should not be fatal. To fix, remove the `continue` so if it fails, it fill fall through to the legacy use of lava-tool. Change-Id: Id55622e1b0f3d9c0e90673b24e8fa3642a15bee9 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-03-15jjb/common: lavacli: no username in URLKevin Hilman1-1/+1
Don't use a URL with a username in it for the lavacli config file. The lavacli config file already has a `username` field, and having it also in the URL makes lavacli fail. Change-Id: I88e8ce06519b0b09476d5a4bc693b95b40f20e59 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-03-14jjb/common: lava-labs-prepare: fix lavacli config errorKevin Hilman1-1/+1
lavacli doesn't like an empty config file. The first "identities add" will automatcially create the new config file, as long as the ~/.config dir exists. Change-Id: I337f8b6883362a0f01b58e34645c825a186ab7d7 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-03-11lava-labs-prepare: Fix lavacli auth add errorLoys Ollivier1-0/+1
lavacli is returning an error if the config file for adding identities does not exist. Create the file before using `lavacli auth add` Change-Id: I3928355055299ddbdd1d269d74a762a563577fb8 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2019-01-24jjb: lava-labs-prepare: use lavacli to find devices and tagsLoys Ollivier1-0/+27
lava-tool is deprecated. There is a new "Tags" feature in lavacli that we would like to leverage to create customize tests depending on tags. Include lavacli into the script dependencies. Use it to find devices and list corresponding tags. Note, for now it is not replacing lava-tool but only ran alongside to test the behavior. Change-Id: I29546f4109ce869f7f047639f46e4a9c4499a9b2 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2018-11-11jjb: lava-labs-prepare: only use lab-agl-coreKevin Hilman1-2/+1
We're now using a single LAVA master (lab-agl-core) with multiple remote LAVA workers, so ci-management/jjb scripts only need to submit jobs to one LAVA master. While here, remove the long-unused lab-baylibre-seattle Change-Id: I22f1ec039f7512809f0aac61b7ce5ea68131889b Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2018-01-03jjb/common: lava-labs-prepare.sh fix polling on reserved boardsLoys Ollivier1-14/+16
The script would still wait for 60 seconds and retry on boards that are not in the reserved state. Fix this and poll for a change of status only if the board is reserved. Fixes: 1ae347940236 ("jjb/common: lava-labs-prepare.sh") Change-Id: I4ce71979f7cb2856768de748c1afb6a1cfb47ca2 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-12-27jjb/common: lava-labs-prepare.shLoys Ollivier1-6/+33
When device status was reserved, the script would exit and the job fail. If device status is reserved poll the device status a limited amount of time. If the status within the defined polling time changes continue otherwise exit. Polling as been set to 10 retries on the minute. JIRA: SPEC-1210 Change-Id: I7ee950777f0881a4a588c9c0dc8db12a7f6dda4a Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-12-18jjb/common: lava-labs-prepare.sh: disable error exitLoys Ollivier1-0/+7
Disable exit on error detection in lava-labs-prepare.sh, this script is looking for error codes when needed and exits gracefully. Change-Id: I0044466ef3f7ad7b606b1452d51676a4472e87d0 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-12-15jjb/common: Fix race condition when using grep and trLoys Ollivier1-1/+3
when using grep + tr to find board availability, status, a race condition happens sometimes. When it happens the job is stuck and timeout fails. Fix it by calling sequentially grep then tr and not piping. Change-Id: Ib1322e280900b62abdd827992b42183024cd094c Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-12-13jjb/common: Fix query of lava log in jenkins logLoys Ollivier1-1/+2
Fix the query of the log in jenkins log. Use the lava website url and not the lava API url. JIRA: SPEC-1178 Change-Id: I9ddc48b13e91a91aa2e53c768aa02f2ae12e5a99 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-12-11jjb/common: clean up device names to standardized ones.Loys Ollivier1-20/+0
Use the device_name table aliases earlier in the CI process. That way all the scripts are using the correct device name. Avoiding name mismatch resulting to CI failure. Change-Id: Ia6f9f8beb06c43a24605abb24e676eaed68cc67e Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
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>