aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-run-test-short.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-03-27Workaround for intra-cloud requestsJan-Simon Möller1-1/+1
Revert when fixed. Change-Id: I5ee0ab8eb06628d7a7e07bfb6eea23bc958a9b0c Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2019-03-22jjb/common: run-test-short: fix the link of the UPLOAD_URLKhouloud Touil1-1/+1
The UPLOAD_URL lacks the name of the machine, so this patch fixes the link from where to upload the build-info file. Change-Id: Ia80e80092eaacfae3cb68d819309d6e819405257 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-03-21jjb/common: run-test-short: fetch/source build-infoKevin Hilman1-4/+8
Before trying to cat/source build-info, we have to fetch it from the location where it was uploaded during the main build phase. Change-Id: Ic9d8916a3a349f3b29cb2d5ef558c78729703908 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-03-21run-test-short: Check the existence of the 'build-info' fileKhouloud Touil1-2/+4
Before displaying the content of the 'build-info' file, we have to check if this file exists. Change-Id: I029e9ca65a182724ce447c6e1d69db246a681dc9 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-02-27Use the --version argumentKhouloud Touil1-0/+1
This patch uses the --version argument that will contain the DIST_BB_AGLVERSION value that is extracted from the build-info file. Change-Id: I81dfc60f290db8983af9dfcc51f47a71c1a2b031 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-02-27Use the --branch argumentKhouloud Touil1-0/+1
This patch uses the --branch argument that will contain the DIST_BB_AGL_BRANCH value that is extracted from the build-info file. Change-Id: I56fe3edcfc73b0ce661181283f029026e2b37811 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-02-27Use the new --build-id argumentKhouloud Touil1-0/+1
This patch uses the new --build-id argument of create-jobs that will contain the DIST_BUILD_ID value that is extracted from the build-info file. Change-Id: Ic1bf82967a4cd94bce9701251d7f5a9700998271 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-02-27Use the new --commit argumentKhouloud Touil1-0/+1
This patch uses a new --commit argument that will contain the DIST_BUILD_HASH value that is extracted from the build-info file. These changes are in both files 'include-agl-run-test -short-guppy.sh' and 'include-agl-run-test-short.sh'. Change-Id: Ifd68eb4270f3540e1a379fac135d7f290374d1d7 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-02-27Modify the --build-version contentKhouloud Touil1-3/+1
Modify the --build-version content to take the DIST_BB_DISTRO_VERSION content which is going to be extracted from the build-info file in both files 'include-agl-run-test-short-guppy.sh' and 'include-agl-run-test-short.sh'. Change-Id: Iddf7394c624a5fdc08cddf806eaebb70456c4398 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-02-27Use the build-info fileKhouloud Touil1-0/+1
The build-info file contain a lot of useful informations that could be used differently. This commit adds a source command to use these informations in both files 'include-agl-run-test-short-guppy.sh'and 'include-agl-run-test-short.sh'. Change-Id: I67c216defbde6589901de24c674b840ba692a814 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-02-15Display build-infoKhouloud Touil1-0/+2
This patch displays the build-info file contents in order to use them later in creating test jobs. Change-Id: Iacfab0324152387f5d10ea45e4352c25448aa5cb Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-02-08Add weston as a device tagKhouloud Touil1-1/+5
This patch check the name of the board and add the weston as a device tag if the board name doesn't include the "-nogfx" suffix. Change-Id: I26c69286078b2e7e6dd6447da5be4246bbbea4e7 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2019-02-07jjb: Add new --device-tags argumentKhouloud Touil1-0/+1
This commit adds new --device-tags argument to the create_job process. The create_job will use the device tags to create the job template. Note, this commit will work only if the lavacli package is well configured. Change-Id: Ib9358daaaa9ecfbb0c261991b0d86b48796eb701 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
2018-11-11jjb/common: run-tests: rely on templates for test plansKevin Hilman1-1/+0
Instead of always pasing "--tests all" rely on the templates in releng-scripts (templates/config) to determine the test plans to run based on --build-type. Change-Id: I7ac3b0a35f4cd3c45af9f2b28f8892fa31a04e2e Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2018-01-18jjb/common: run-test-short: Update releng-scripts usageLoys Ollivier1-1/+1
Update the calls to releng-scripts to use the latest options. This allows to differentiate the build types, find the correct URL and run the corresponding test plans. Change-Id: I75762ec8d0a7c204b6ec898f936f59a7a9b5e488 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-12-11jjb/common: clean up device names to standardized ones.Loys Ollivier1-3/+1
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-12-08jjb/common: run-test-short-*: meaningful LAVA job namesLoys Ollivier1-1/+1
The previous job name was always "AGL-gerrit" which is not very useful. Change it to "AGL-gerrit-" + change_number + patchset_number Change-Id: I161de8a3547f864d4a50e5d984561899e0401532 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-12-08jjb/common: remove hwtest.enable files v2Loys Ollivier1-131/+21
releng-scripts now supports LAVA job generation for all boards. Remove the check in run-test-prepare.sh on whether or not to create LAVA test jobs. Replace this test by several exports using releng-scripts job-prereq tool. These exports will be used to rsync the files to the CI upload server. If the calls to job-prereq returns an error, make the script fail gracefully. Transition all platforms in run-test-short.sh to use releng-scripts. Transition all platforms in run-test-short-release.sh to use releng scripts. JIRA: SPEC-1144 Change-Id: I1e0e6d39b986770adcdfcf92c5d589a7fbe99a33 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-12-07Revert "jjb/common: remove hwtest.enable files"Jan-Simon Moeller1-21/+131
Issues with the jobs. This reverts commit f28a1005057b096a95ba73bc3bf3e029b835deaa. Change-Id: Icf75e5b462b0d4aff3c8d2c5806b8ca9270ad22b
2017-12-07jjb/common: remove hwtest.enable filesLoys Ollivier1-131/+21
releng-scripts now supports LAVA job generation for all boards. Remove the check in run-test-prepare.sh on whether or not to create LAVA test jobs. Replace this test by several exports using releng-scripts job-prereq tool. These exports will be used to rsync the files to the CI upload server. Transition all platforms in run-test-short.sh to use releng-scripts. Transition all platforms in run-test-short-release.sh to use releng scripts. JIRA: SPEC-1144 Change-Id: I558563704bbe9bf0bf554219f4f7ca8e086649bb Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-11-29jjb/common: run-test-short: always use relengKevin Hilman1-4/+1
When present, use releng to generate LAVA jobs for all boards. Change-Id: I134f17d977a131fed2ec4973567f1dfd949a3cad Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-11-15jjb/common: lava-jobs: create device name aliasesLoys Ollivier1-1/+1
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-09CIBT Update the callback arg for releng.Loys Ollivier1-1/+1
Update callback arg for releng following releng changes: https://gerrit.automotivelinux.org/gerrit/#/c/11751/ Change-Id: I2f63727e2357d84085c8c91f8bcbe8983489abc4 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-11-08CIBT improve lava lab searching and coding styleLoys Ollivier1-13/+4
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-2/+11
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-11-07Fix agl-run-test-shortLoys Ollivier1-1/+1
Remove machine typo from the releng script call and use the machine argument instead. Change-Id: I012204bf61f45f6c6d4ae56c579db84c9072278a Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-11-07Typo fix in agl-run-test-shortLoys Ollivier1-2/+2
Fix a typo in the if to call releng-scripts. Change-Id: Idb2331b79d8a0947ae1d69f3bc73cd266c01b7ef Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-11-06Update releng calls to use new argsLoys Ollivier1-3/+5
Update the releng arguments: - Use the new url scheme with CI, changeid and patchset - Use machine argument Change-Id: Ie341a1edf6f341796a7fe0647bf61f29172eedb4 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-11-06Use releng for rapsberrypi3Loys Ollivier1-1/+1
Add the rapsebrrypi3 to the list of boards using releng-scripts for LAVA job definition generation. Change-Id: Ibd6449c101aff829d2814d3b15a7c9feae6d4b52 Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-10-12jjb/common: run-test-short: use new releng optsKevin Hilman1-1/+1
releng-scripts command-line args were updated to allow more flexibility in defining rootfs image. Use new options. Change-Id: Id75a4cfa521a872173cbe628f54ab6a86484d994 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-10-09jjb/common: run-test-short: fix pip showKevin Hilman1-2/+2
Change-Id: I53d14d65f3e88c956722cc4ba12603e2ef3f8038 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-10-09jjb/common: run-test-short: show jinja2 versionKevin Hilman1-0/+3
Change-Id: Idd324bc07bc21135eabb632dfaf2070f9ca73f55 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-10-05jjb/common: run-test-short: fix board-specific check for releng-scriptsKevin Hilman1-2/+2
The (broken) conditional used to check which boards to use with releng-scripts was always returning true. Fix it to use [[ ]] instead of (( )) Change-Id: I244d95c95a40e14e7a3ea682030733096b2af746 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-10-04jjb/common: run-test-short: add tests, unique version and callbacksKevin Hilman1-1/+6
Use the gerrit changeset/patch numbers in combination with a SHA1 of the repo manifest to create a unique build_version for the metadata. Enable jobs to send results to lab-baylibre-legacy backend. Send all tests (there are so few, might as well run them all.) Change-Id: I7009621e0ab0eefbf345e5f801623b029cd7c332 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-10-03jjb/common: run-test-short: fix line-continuation typoKevin Hilman1-1/+1
Change-Id: Ib8b128e82a520c50c978b7d308bb64fa70e08c96 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-09-21LAVA jobs: create jobs using relengKevin Hilman1-0/+15
Switch to using releng-scripts "create-jobs" util for creating LAVA jobs from new templating system. For beta-testing, only use for QEMU and m3ulcb for now (Yes, the if/else/endif without nesting is ugly, but makes the patch easier to read without all the whitespace change for indents. Whitespace can be updated in a follow-up if this change is accepted.) Change-Id: I46c4f97927515c1772fdef9842f041ef2be60000 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-07-26Downloading the image can take more than 10 minutesJan-Simon Möller1-2/+2
Change-Id: Ic199048e5c1c4c490c3aa078c88c183969035a62 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2017-07-26Extend the timeouts to cope with the downloadsJan-Simon Möller1-2/+4
Change-Id: I24bc9edfe1d62f7f5ab39ca1fc34e5154b52e4cf Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2017-07-23ci-platform-jjb: try LAVA job in multiple labsKevin Hilman1-28/+0
Currently, LAVA jobs are only submitted to a single lab. This patch adds the ability look for a matching device-type in a list of available labs, and submit the job to the first lab with an available device type. To accomplish this, the job submission part is removed from run-test-short.sh, which now only generates the LAVA YAML job. A new lava-jobs-submit.sh script is added which looks for an available device-type in a list of LAVA labs, and submits the job there. NOTES: - run-test-short.sh should probably be renamed, but was left for now to limit the diff Change-Id: I95086d89a95f39e2b59fec8a8afada70806c52e5 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-07-21jjb/common: run-test-short: QEMU: enable KVMKevin Hilman1-1/+1
Change-Id: I7b1b3a1c3dac55f6df6debcbe0b84c0e23edc5f4 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-07-19jjb/common: run-test-short: QEMU: increase boot timeoutKevin Hilman1-0/+2
QEMU jobs in some labs can be slow, especially when LAVA servers are busy and the rootfs has lots to do before reaching a login prompt. Increase the timeout to reach a login prompt to 5 minutes (from 2 minutes) to allow plenty of time. Change-Id: I71738a521d7fed8ae8bd9288a9f503dd00f94c92 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-07-17Merge "jjb/common: add LAVA templating for QEMU"Jan-Simon Moeller1-4/+46
2017-07-13jjb/common: remove unused TESTJOBFILEKevin Hilman1-9/+0
Individual machines are allowed to have their own LAVA templates, but they are not used, and completely overwritten by a default template. Since they are unused, remove them for clarity. Change-Id: Ib9196ac52dca7ef1891625a98399c70e3027abbb Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-07-13jjb/common: add LAVA templating for QEMUKevin Hilman1-4/+46
LAVA jobs for QEMU have some slight differences compared to u-boot jobs. Add templating to support QEMU jobs for any arch. Change-Id: I6ef8e92cc169d8365f0ba1cb568b961d49e2a74f Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-07-07run-test-short: fix set -x for debugKevin Hilman1-2/+1
Change-Id: Idf5356fd5f86de4a0d6b4afc82ef3d4d6706f437 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-07-06run-test-short: add set +x for debugKevin Hilman1-1/+2
Change-Id: Id409ecaabe9320ac20424dae0559515a7bbe8ef7 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-06-08Fix git checkout and be less verboseJan-Simon Möller1-1/+1
Change-Id: I7d2b374f1ee0fe0d96c984c3e757f2fd49dd6a22 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2017-05-23ci-platform: use updated LAVA authKevin Hilman1-18/+4
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-03-28Make sure we don't bail out on removing the tokenJan-Simon Möller1-1/+1
Change-Id: Idf4fa26834f61ce94ddf2a1d86d206c497d44e15 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2017-02-19Change fallback template and test for jobfileJan-Simon Möller1-4/+5
Change-Id: I3f5c2a26e1ee8888a9ee840214558f33fe6c4c80 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>