aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-run-test-short.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-09-12Dont fail the CI when build-info is unavaillableCorentin LABBE1-1/+1
This patchs made the download of build-info non-fatal. The build-info is used before running releng-scripts and for email report. Bug-AGL: SPEC-2177 Change-Id: I8ffaacafce472faa32dc06ecac486be037938f67 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
2019-08-28jjb/common: fix DIST_BUILD_TOPIC usageKevin Hilman1-3/+3
Fix use of DIST_BUILD_TOPIC to be used with --build-version (instead of --name). build-version is the key used in the backend to collect all related jobs, whereas --name is just for the LAVA job name. The email report request also uses $DIST_BUILD_TOPIC, which will allow and email report to be generated with results for all tests with the same $DIST_BUILD_TOPIC. Bug-AGL: SPEC-2646 Change-Id: I8657270bcbbc06f361b079a07f3922cf4e782e1a Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-08-26jjb/common: use DIST_BUILD_TOPIC when availableKevin Hilman1-1/+5
Switch to $DIST_BUILD_TOPIC (if available) for determining the unique ID used for the kernelCI backend data, as well as requesting the email report. Bug-AGL: SPEC-2646 Change-Id: Ib71c592c2973b5cbf31bc0d95a5a9d40ef3769a0 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-08-14Revert "Use new --build-tags argument"Jan-Simon Moeller1-1/+0
This broke CI: $> lavacli -i agl jobs submit testjob_lab-agl-core.yaml job_id='Unable to call '\''jobs.submit'\'': <Fault 400: "Problem with submitted job data: extra keys not allowed @ data['\''build-tags'\'']">' e.g.: https://build.automotivelinux.org/job/ci-platform-meta-agl-verify-CIBT-intel-corei7-64/1607/console Please submit again when issue is fixed. This reverts commit d7de9bda09604f110f70870a66b5a12418eb16f3. Change-Id: I7a9e8c46a7cae39ea40d885e9f5c0da556de01f6
2019-08-08Use new --build-tags argumentKhouloud Touil1-0/+1
Use new --build-tags argument that is extracted from the build-info file using the "DIST_BB_MACHINE_FEATURES" value which contain the machine features. Bug-AGL: SPEC-2721 Signed-off-by: Khouloud Touil <ktouil@baylibre.com> Change-Id: Ia47247c6c26f08aaf796fa57e091b0d3411f1762
2019-07-11Modify the build-version as well as the GIT_DESCRIBE valuesKhouloud Touil1-1/+1
Using only the DIST_LAYERS_MD5 wont give us any really useful information so we use the version to get a proper information and append that with the DIST_LAYERS_MD5 to garantee the uniqueness for the email test reports. Signed-off-by: Khouloud Touil <ktouil@baylibre.com> Change-Id: I9418d48c1d89718dcad63f4786f28490d257322c
2019-07-04Change the build-version valueKhouloud Touil1-1/+1
To guarantee the a unique value of the build version, this patch change it to take the DIST_LAYERS_MD5 value and let down the DIST_BB_DISTRO_VERSION value which is not unique in the same day as it takes the build day date. This way we will have one email test report per build and get ride of the redundancy. Bug-AGL: SPEC-2177 Signed-off-by: Khouloud Touil <ktouil@baylibre.com> Change-Id: I60e166c185a922306a7fef0b123841957577c46c
2019-05-30jjb/common: run-test-short: only use lavacli tagsKevin Hilman1-4/+2
Only pass tags that were queried from the LAVA devices themselves, don't add any additional tags (e.g. "weston") This is done since after recent changes to releng-scripts, using --device-tags will *require* those tags to be present for a given device for the job to run, and currently no devices are using the "weston" tag. How to properly handle the -nogfx builds for boards with no display/gfx needs to be revisited after proper tag handling is merged. Change-Id: Ic6ba4743866c5de35ee45063c834c569c4b728eb Signed-off-by: Kevin Hilman <khilman@baylibre.com>
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>