ci-management.git
6 years agoUprev templates to apiv3 79/15279/1
Jan-Simon Möller [Wed, 11 Jul 2018 11:06:28 +0000 (13:06 +0200)]
Uprev templates to apiv3

Change-Id: I7b4e12e450534d7923af10b779b12f0cbe68e52a
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoIntroduce gracetime into pipeline 77/15277/1
Jan-Simon Möller [Wed, 11 Jul 2018 09:43:30 +0000 (11:43 +0200)]
Introduce gracetime into pipeline

Change-Id: I5e4fce954d02b25d25cb9442e9704d0ab55a7179
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoUse v3 api for vexx 75/15275/1
Jan-Simon Möller [Wed, 11 Jul 2018 08:53:46 +0000 (10:53 +0200)]
Use v3 api for vexx

Change-Id: I3c1bc61f972ffec15b63ae25d3e603c124aa938c
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoMerge "Crossbuild std go libraries for MacOS and Windows"
Jan-Simon Moeller [Tue, 10 Jul 2018 15:45:12 +0000 (15:45 +0000)]
Merge "Crossbuild std go libraries for MacOS and Windows"

6 years agoBump nodejs 8.x and npm 5.x 51/15151/1
Sebastien Douheret [Mon, 9 Jul 2018 21:25:58 +0000 (23:25 +0200)]
Bump nodejs 8.x and npm 5.x

Default nodejs & npm are very old (nodejs 4.x and npm 3.x) and don't
allow to build xds dashboard. Note that one reason to bump to a
recent npm version (at least npm ^5.0.0) is the support of
package-lock.json that is very useful to lock dependencies of nodejs
packages in a project.
(for more info see https://docs.npmjs.com/files/package-lock.json)

Change-Id: I639b97ee12e9d11f47a09bf5443fb2470fbf485a
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoCrossbuild std go libraries for MacOS and Windows 47/15147/1
Sebastien Douheret [Mon, 9 Jul 2018 17:59:48 +0000 (19:59 +0200)]
Crossbuild std go libraries for MacOS and Windows

Standard go librairies must be compiled at least once to be able to
build go code for other OSes.
Note that you must be root in order to write resulting static
libraries into /usr/lib/go-X.Y/pkg/windows_amd64 and
/usr/lib/go-X.Y/pkg/darwin_amd64

Change-Id: Icdf09f627ad2c5c1bbf1b42fb8c92f9d9e65469d
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoMerge "Use gpg server pool to avoid connection issues"
Jan-Simon Moeller [Fri, 6 Jul 2018 21:02:13 +0000 (21:02 +0000)]
Merge "Use gpg server pool to avoid connection issues"

6 years agoUse gpg server pool to avoid connection issues 81/15081/1
Jan-Simon Möller [Fri, 6 Jul 2018 13:49:01 +0000 (15:49 +0200)]
Use gpg server pool to avoid connection issues

Change-Id: I306f92ce1cac2481bc9067a2fde30448f979bc30
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoAdd new app repos to ci loop 67/15067/1
Jan-Simon Möller [Fri, 6 Jul 2018 11:12:04 +0000 (13:12 +0200)]
Add new app repos to ci loop

Add navigation, network, soundmanager and windowmanager services.

Change-Id: I444c7e74db31656cabf73a1c9f5776d92dc48373
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoRemoved unwanted popd from xds build 37/15037/1
Sebastien Douheret [Thu, 5 Jul 2018 16:55:14 +0000 (18:55 +0200)]
Removed unwanted popd from xds build

Change-Id: I3985a66fdb1336d9216ea0b6eb65960e804a5298
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoRework xds build 35/15035/1
Jan-Simon Möller [Thu, 5 Jul 2018 16:19:59 +0000 (18:19 +0200)]
Rework xds build

Change-Id: I18830298ef2d8fe4d65b588735ed1662042505ce
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoEnable set -x for xds builds 31/15031/1
Jan-Simon Möller [Thu, 5 Jul 2018 14:37:01 +0000 (16:37 +0200)]
Enable set -x for xds builds

Change-Id: I6514de300eb1f8581b1e4deffb016c842c8dd282
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoFix mkdir command for xds builds 29/15029/1
Jan-Simon Möller [Thu, 5 Jul 2018 14:33:45 +0000 (16:33 +0200)]
Fix mkdir command for xds builds

Change-Id: Ic5ce10308c6da924897deee475bdcb13cc678915
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoAdd flounder release jobs part 2 33/14933/1
Jan-Simon Möller [Mon, 2 Jul 2018 11:56:34 +0000 (13:56 +0200)]
Add flounder release jobs part 2

Change-Id: Ibbd10206a99f62034be9831cd12f4506e3f43dd0
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoAdd release build job for flounder part 1 05/14905/1
Jan-Simon Möller [Fri, 29 Jun 2018 21:13:40 +0000 (23:13 +0200)]
Add release build job for flounder part 1

Change-Id: I051aee7c222f7123353bef69d25526da56ab30cf
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoAdapt to recent changes in app-templates 27/14827/2
Jan-Simon Möller [Thu, 28 Jun 2018 22:07:10 +0000 (00:07 +0200)]
Adapt to recent changes in app-templates

we have more versions where the wgt will end up ...

Change-Id: Ic59cb9e5629d64ad1779b6139c390cefa554d4cb
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoIn case of cmake enforce an out-of-tree build 51/14751/2
Jan-Simon Möller [Wed, 27 Jun 2018 17:56:31 +0000 (19:56 +0200)]
In case of cmake enforce an out-of-tree build

This fixes a build error with newer app templates if no autobuild script is found.

Change-Id: Iad3ea26ddd8cd3f680f8788cd08b8d2a374e8dc5
Bug-AGL: SPEC-1534
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoMerge "Do not fail if transfer fails"
Jan-Simon Moeller [Wed, 20 Jun 2018 00:36:59 +0000 (00:36 +0000)]
Merge "Do not fail if transfer fails"

6 years agoDo not fail if transfer fails 41/14541/1
Jan-Simon Möller [Wed, 20 Jun 2018 00:28:49 +0000 (02:28 +0200)]
Do not fail if transfer fails

Make the storagebox sync not fail the process

Change-Id: I9ebc2120af8819f9e3fda0ef93d5a1583dec9629
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoMerge "Add more apps to ci loop"
Jan-Simon Moeller [Tue, 19 Jun 2018 05:01:09 +0000 (05:01 +0000)]
Merge "Add more apps to ci loop"

6 years agoAdd more apps to ci loop 11/14511/1
Jan-Simon Möller [Tue, 19 Jun 2018 04:01:22 +0000 (06:01 +0200)]
Add more apps to ci loop

Add:
- agl-service-can-low-level
- agl-service-iiodevices
- launcher

Remove:
- low-level-can-service (replaced with above)

Change-Id: I50cff984ea23bfa3a01634e32ddfcf48187ceecc
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoMove credentials into macros 09/14509/1
Jan-Simon Möller [Tue, 19 Jun 2018 03:45:18 +0000 (05:45 +0200)]
Move credentials into macros

Change-Id: I22c96cda6b0fd75b4ac624b6bf1aa45717455cad
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoFix typo in variable name 87/14487/1
Jan-Simon Möller [Sun, 17 Jun 2018 18:41:34 +0000 (20:41 +0200)]
Fix typo in variable name

No '-' allowed. Fix it.

Change-Id: Iaecd076cdc0e100e975c7fead28d37d8e8739f4e
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoAlso upload changeID artifacts to storagebox 69/14469/1
Jan-Simon Möller [Fri, 15 Jun 2018 20:14:26 +0000 (22:14 +0200)]
Also upload changeID artifacts to storagebox

Change-Id: I96df1500304f1325acbb8691cd350e4e501fbebf
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoAdd agl-service-bluetooth-pbap to CI loop 55/14455/1
Jan-Simon Möller [Thu, 14 Jun 2018 15:30:40 +0000 (17:30 +0200)]
Add agl-service-bluetooth-pbap to CI loop

New repo created, thus added to CI loop.

Change-Id: I09d8e19e2a79bbaee965509b1ba80c8d1514d126
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoAdd xds-cli xds-agent xds-gdb in ci-xds-jjb.yaml 47/14147/2
DDTLK [Thu, 31 May 2018 07:18:20 +0000 (09:18 +0200)]
Add xds-cli xds-agent xds-gdb in ci-xds-jjb.yaml

Add xds-cli xds-agent xds-gdb in ci-xds-verify for test build
For the moment just xds-server was test

Change-Id: I1ca57eed45caed65401ceedef9161fa1e6abceae
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
6 years agoDo not use wic-tools in dab release 19/14119/1
Jan-Simon Möller [Mon, 28 May 2018 03:25:47 +0000 (05:25 +0200)]
Do not use wic-tools in dab release

Change-Id: I90a7a4ff5f72a7cdc0f24dda467c39f3701809ef
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoAdd template for build of xds-server in CI 43/13843/5
Jan-Simon Möller [Fri, 27 Apr 2018 21:12:44 +0000 (23:12 +0200)]
Add template for build of xds-server in CI

Change-Id: I15fe3da53ef882657161111cfb179cf8307778a1
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoFix key import 13/13813/1
Jan-Simon Möller [Wed, 18 Apr 2018 14:59:21 +0000 (16:59 +0200)]
Fix key import

Change-Id: Ia51673829bcfbbb21edb695f4240738e1186b906
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoadd key from keyserver for go 11/13811/1
Jan-Simon Möller [Wed, 18 Apr 2018 14:53:23 +0000 (16:53 +0200)]
add key from keyserver for go

Change-Id: Ic9db1e2347ab7518b7556f25613982749c1e5289
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoAdd dependencies for xds build in CI 09/13809/1
Jan-Simon Möller [Wed, 18 Apr 2018 14:24:42 +0000 (16:24 +0200)]
Add dependencies for xds build in CI

Change-Id: I5e22868ecb676006ea3e92296ded1d2d9d35f381
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoMerge "Update Ubuntu 16.04 from revision 3 to 4"
Jan-Simon Moeller [Tue, 3 Apr 2018 16:13:26 +0000 (16:13 +0000)]
Merge "Update Ubuntu 16.04 from revision 3 to 4"

7 years agojjb/snapshot-jjb-container: add BUILD_ID in docker image version 09/13709/1
Stephane Desneux [Tue, 3 Apr 2018 15:13:36 +0000 (17:13 +0200)]
jjb/snapshot-jjb-container: add BUILD_ID in docker image version

Bug-AGL: SPEC-979, SPEC-1379

Change-Id: I2d5032f75672978c7dfd6b43159cd170efd8fb38
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
7 years agoUpdate Ubuntu 16.04 from revision 3 to 4 99/13699/1
Ronan Le Martret [Tue, 3 Apr 2018 13:15:24 +0000 (15:15 +0200)]
Update Ubuntu 16.04 from revision 3 to 4

Change-Id: Ida617723f8af6a55af6e41957574db4241662bb4
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
7 years agoMake sure to build wic-tools to avoid imaging to fail 93/13693/1
Jan-Simon Möller [Sun, 1 Apr 2018 21:28:38 +0000 (23:28 +0200)]
Make sure to build wic-tools to avoid imaging to fail

Change-Id: Ib38df07de3b3ce8b17311db1a91540d4348bfce5
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agojjb/common: update rpi3 device-type to upstream 51/13651/1
Kevin Hilman [Thu, 22 Mar 2018 23:40:57 +0000 (23:40 +0000)]
jjb/common: update rpi3 device-type to upstream

Change-Id: I3c20e23ed4ddd00268d5ca5ee5ac0ab7d345e82b
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
7 years agoAdd dependency for g++-multilib 89/13589/1
Jan-Simon Möller [Thu, 8 Mar 2018 15:07:43 +0000 (16:07 +0100)]
Add dependency for g++-multilib

Change-Id: I243214abf1505496bbc04797678a275be771b0dc
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoChange flavor of build images to v1-standard-16 59/13559/1
Jeremy Phelps [Tue, 6 Mar 2018 23:19:20 +0000 (17:19 -0600)]
Change flavor of build images to v1-standard-16

This will enable us to configure a performance
node that will still have a 300g disk size.

Change-Id: Ied77e1a6c238b3600e4a96a5d43497a1ba0fa8c1
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoAdapt target image selection in jenkins job 57/13557/1
Jan-Simon Möller [Tue, 6 Mar 2018 21:49:28 +0000 (22:49 +0100)]
Adapt target image selection in jenkins job

This makes use of the provided feature shortcuts.

Change-Id: Ic5983c17e41e8c13a15c542ca9f01048d117a3f0
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agojjb/common: fix releng name for porter 03/13403/1
Kevin Hilman [Mon, 12 Feb 2018 20:15:55 +0000 (12:15 -0800)]
jjb/common: fix releng name for porter

Change-Id: I42b0191f5388e4f26e03c8fcb2f977d209628e4c
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
7 years agoAdd agl-service-weather to CI 65/13365/1
Jan-Simon Möller [Wed, 7 Feb 2018 19:19:35 +0000 (20:19 +0100)]
Add agl-service-weather to CI

Change-Id: Icca26c1f11849b85436354d09007048f050ff949
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agojjb/common: lava-jobs-submit: fix device_type replacement 53/13353/1
Kevin Hilman [Mon, 5 Feb 2018 18:09:25 +0000 (18:09 +0000)]
jjb/common: lava-jobs-submit: fix device_type replacement

Fix "raspberrypi3-uboot" -> "raspberrypi3-uboot-uboot" type of
substitutions.

Ensure that the full string (up to EOL) is matched before trying to
replace.

Change-Id: I2026beb964b12aff1f60441257ceec82b706bab7
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
7 years agojjb/common: run-test-short: Update releng-scripts usage 37/13237/1
Loys Ollivier [Thu, 18 Jan 2018 14:06:25 +0000 (15:06 +0100)]
jjb/common: run-test-short: Update releng-scripts usage

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>
7 years agoCreate a link to the last generated docker file 53/13153/1
Ronan Le Martret [Mon, 8 Jan 2018 11:01:06 +0000 (12:01 +0100)]
Create a link to the last generated docker file

Change-Id: I2a9babf0db60be4f9e6ee65d05c655b18d8603bb
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
7 years agoMerge "Streamline image output and add new board"
Jan-Simon Moeller [Sat, 6 Jan 2018 19:47:14 +0000 (19:47 +0000)]
Merge "Streamline image output and add new board"

7 years agoStreamline image output and add new board 45/13145/1
Jan-Simon Möller [Sat, 6 Jan 2018 18:36:20 +0000 (19:36 +0100)]
Streamline image output and add new board

Change-Id: If9f7f32d0c73bf4f964a205a18dc1fc720b38e3b
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agojjb/common: lava-labs-prepare.sh fix polling on reserved boards 13/13113/1
Loys Ollivier [Wed, 3 Jan 2018 17:04:59 +0000 (18:04 +0100)]
jjb/common: lava-labs-prepare.sh fix polling on reserved boards

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>
7 years agoMerge "Apply new folder structure for application repository"
Jan-Simon Moeller [Tue, 2 Jan 2018 16:37:19 +0000 (16:37 +0000)]
Merge "Apply new folder structure for application repository"

7 years agoApply new folder structure for application repository 89/13089/1
Jan-Simon Möller [Tue, 2 Jan 2018 15:53:58 +0000 (16:53 +0100)]
Apply new folder structure for application repository

Change-Id: I5937215900d8310947e5a7a1e6e247abda0703b8
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoMerge "Add new repositories to application CI"
Jan-Simon Moeller [Tue, 2 Jan 2018 15:51:16 +0000 (15:51 +0000)]
Merge "Add new repositories to application CI"

7 years agoAdd new repositories to application CI 87/13087/1
Jan-Simon Möller [Tue, 2 Jan 2018 15:18:54 +0000 (16:18 +0100)]
Add new repositories to application CI

Change-Id: I78d5ef464da02e87e3f6d78e4cb7e40fcf63a9b2
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agojjb/common: lava-labs-prepare.sh 17/13017/2
Loys Ollivier [Wed, 27 Dec 2017 10:49:58 +0000 (11:49 +0100)]
jjb/common: lava-labs-prepare.sh

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>
7 years agojjb/common: lava-labs-prepare.sh: disable error exit 65/12665/1
Loys Ollivier [Mon, 18 Dec 2017 09:07:19 +0000 (10:07 +0100)]
jjb/common: lava-labs-prepare.sh: disable error exit

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>
7 years agoMerge "jjb/common: if any, display lava error msg in jenkins log"
Jan-Simon Moeller [Fri, 15 Dec 2017 15:45:55 +0000 (15:45 +0000)]
Merge "jjb/common: if any, display lava error msg in jenkins log"

7 years agojjb/common: if any, display lava error msg in jenkins log 81/12581/5
Loys Ollivier [Thu, 14 Dec 2017 10:27:41 +0000 (11:27 +0100)]
jjb/common: if any, display lava error msg in jenkins log

Do a second grep on the lava log to include lava error message if there
was any. This is usefull in case a job fails. The error can be read
directly out of the jenkins log.

JIRA: SPEC-1178

Change-Id: Id3333df9c56dd67f5d664ae0d234e33e3300c366
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
7 years agojjb/common: Fix race condition when using grep and tr 87/12587/3
Loys Ollivier [Thu, 14 Dec 2017 10:31:20 +0000 (11:31 +0100)]
jjb/common: Fix race condition when using grep and tr

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>
7 years agojjb/common: Fix query of lava log in jenkins log 03/12503/1
Loys Ollivier [Wed, 13 Dec 2017 12:32:23 +0000 (13:32 +0100)]
jjb/common: Fix query of lava log in jenkins log

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>
7 years agojjb/common: run-test-prepare: fix unmapped boards 57/12457/1
Kevin Hilman [Tue, 12 Dec 2017 05:07:43 +0000 (05:07 +0000)]
jjb/common: run-test-prepare: fix unmapped boards

If a $MACHINE doesn't have a proper mapping for LAVA or
releng-scripts, fail gracefully (exit 0)

Change-Id: I8d25e2dd861cb29cefd74c07138f5f78e590569f
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
7 years agojjb/common: clean up device names to standardized ones. 23/12423/1
Loys Ollivier [Mon, 11 Dec 2017 10:33:22 +0000 (11:33 +0100)]
jjb/common: clean up device names to standardized ones.

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>
7 years agojjb/common: run-test-short-*: meaningful LAVA job names 85/12385/3
Loys Ollivier [Fri, 1 Dec 2017 10:06:02 +0000 (11:06 +0100)]
jjb/common: run-test-short-*: meaningful LAVA job names

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>
7 years agojjb/common: remove hwtest.enable files v2 83/12383/3
Loys Ollivier [Fri, 1 Dec 2017 09:59:03 +0000 (10:59 +0100)]
jjb/common: remove hwtest.enable files v2

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>
7 years agoMerge "Revert "jjb/common: remove hwtest.enable files""
Jan-Simon Moeller [Thu, 7 Dec 2017 20:09:46 +0000 (20:09 +0000)]
Merge "Revert "jjb/common: remove hwtest.enable files""

7 years agoRevert "jjb/common: run-test-short-*: meaningful LAVA job names" 71/12371/1
Jan-Simon Moeller [Thu, 7 Dec 2017 20:09:26 +0000 (20:09 +0000)]
Revert "jjb/common: run-test-short-*: meaningful LAVA job names"
Revert due to issues with jobs.
This reverts commit 7ec5cece04ee2af16f224214e7c8e23212c08c54.

Change-Id: I3e660f27485731b13bdf1959a9f441d81a3efaf9

7 years agoRevert "jjb/common: remove hwtest.enable files" 69/12369/1
Jan-Simon Moeller [Thu, 7 Dec 2017 20:06:27 +0000 (20:06 +0000)]
Revert "jjb/common: remove hwtest.enable files"

Issues with the jobs.

This reverts commit f28a1005057b096a95ba73bc3bf3e029b835deaa.

Change-Id: Icf75e5b462b0d4aff3c8d2c5806b8ca9270ad22b

7 years agojjb/common: run-test-short-*: meaningful LAVA job names 65/12265/3
Loys Ollivier [Fri, 1 Dec 2017 10:06:02 +0000 (11:06 +0100)]
jjb/common: run-test-short-*: meaningful LAVA job names

The previous job name was always "AGL-gerrit" which is not very useful.
Change it to "AGL-gerrit-" + change_number + patchset_number

Change-Id: I2c929a2c0d0541e593be4e459766a836a1b57e4b
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
7 years agojjb/common: remove hwtest.enable files 29/12229/7
Loys Ollivier [Fri, 1 Dec 2017 09:59:03 +0000 (10:59 +0100)]
jjb/common: remove hwtest.enable files

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>
7 years agoAdd eel branch for application CI 69/12269/1
Jan-Simon Möller [Fri, 1 Dec 2017 12:24:25 +0000 (13:24 +0100)]
Add eel branch for application CI

Change-Id: Id0a49e2ab2b3fc90968e93633f37015b9138910d
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoFail gracefully if SDK is not found 43/12243/1
Jan-Simon Möller [Thu, 30 Nov 2017 14:30:27 +0000 (15:30 +0100)]
Fail gracefully if SDK is not found

Change-Id: Ic21a7d3b9a38bc0eb7a86cc730534ec08b718116
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoMerge "jjb/common: run-test-short: always use releng"
Jan-Simon Moeller [Thu, 30 Nov 2017 13:11:36 +0000 (13:11 +0000)]
Merge "jjb/common: run-test-short: always use releng"

7 years agoMerge "jjb/common/lava-labs-prepare: LAVA fail gracefully if device not found"
Jan-Simon Moeller [Thu, 30 Nov 2017 13:11:13 +0000 (13:11 +0000)]
Merge "jjb/common/lava-labs-prepare: LAVA fail gracefully if device not found"

7 years agojjb/common/lava-labs-prepare: LAVA fail gracefully if device not found 27/12227/2
lollivier [Thu, 30 Nov 2017 09:56:54 +0000 (10:56 +0100)]
jjb/common/lava-labs-prepare: LAVA fail gracefully if device not found

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>
7 years agojjb/common: run-test-short: always use releng 03/12203/1
Kevin Hilman [Wed, 29 Nov 2017 19:51:52 +0000 (19:51 +0000)]
jjb/common: run-test-short: always use releng

When present, use releng to generate LAVA jobs for all boards.

Change-Id: I134f17d977a131fed2ec4973567f1dfd949a3cad
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
7 years agojjb/common: lava-labs-prepare: rename dra7 05/12205/1
Kevin Hilman [Wed, 29 Nov 2017 19:49:09 +0000 (19:49 +0000)]
jjb/common: lava-labs-prepare: rename dra7

Rename dra7-evm to use upstream LAVA device-type conventions.

Change-Id: Ice5912fc1668d644184949032124bb4fce0c7854
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
7 years agoAdd new applications to CI 07/12107/1
Jan-Simon Möller [Thu, 23 Nov 2017 07:55:30 +0000 (08:55 +0100)]
Add new applications to CI

This adds these app repos to CI:
      - agl-service-audio-4a
      - agl-service-audio-mpcd
      - agl-service-unicens
      - navigation
      - onscreenapp

Change-Id: Ia7f56d277999bfceb6d877b72a73cd630a28c937
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoAdd the cyclone5 board to CI 65/12065/1
Jan-Simon Möller [Tue, 21 Nov 2017 18:49:31 +0000 (19:49 +0100)]
Add the cyclone5 board to CI

This adds the cyclone5 board and replaces the porter-nogfx.

Change-Id: I202262bc8b208c84dcaa5671c6e20c0a45bec65d
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agojjb/common: lava-labs-prepare: extend aliases 25/12025/1
Loys Ollivier [Thu, 16 Nov 2017 09:28:38 +0000 (10:28 +0100)]
jjb/common: lava-labs-prepare: extend aliases

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>
7 years agojjb/common: lava-labs-prepare: catching errors 09/11909/2
Kevin Hilman [Mon, 13 Nov 2017 20:00:33 +0000 (20:00 +0000)]
jjb/common: lava-labs-prepare: catching errors

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>
7 years agojjb/common: lava-jobs-submit 93/11993/1
Loys Ollivier [Wed, 15 Nov 2017 17:04:20 +0000 (18:04 +0100)]
jjb/common: lava-jobs-submit

lava-tool submit-jobs go back to --block as wait-for-jobs isn't working
as expected. Revert the change until wait-for-jobs works.

But keep this version of the tool to have a link to the lava-job posted
in the log when using submit-job.

Change-Id: Ie7d045d198b00b19d198404fc67b2bcfe992e9a6
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
7 years agojjb/common: lava-jobs: create device name aliases 85/11985/1
Loys Ollivier [Wed, 15 Nov 2017 09:24:09 +0000 (10:24 +0100)]
jjb/common: lava-jobs: create device name aliases

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>
7 years agojjb/common: lava-jobs-submit: remove timeout 83/11983/1
Loys Ollivier [Wed, 15 Nov 2017 09:06:14 +0000 (10:06 +0100)]
jjb/common: lava-jobs-submit: remove timeout

Remove the timeout from lava submit jobs.
The previous version would timeout after 5 minutes but this is not enough
if the job is qeued. Let Jenkins handle the timeout and remove that one.

Change-Id: I501a539020174b2c9e030716717f1d3d0b06e539
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
7 years agoFix lab URL using RPC2/ 55/11855/1
Jan-Simon Möller [Sat, 11 Nov 2017 09:19:28 +0000 (10:19 +0100)]
Fix lab URL using RPC2/

Change-Id: I695244c8d6880499db2ac611603b538efc093d3f
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoMerge "jjb/common: lava-jobs-submit: fixup wait for job"
Jan-Simon Moeller [Sat, 11 Nov 2017 09:12:01 +0000 (09:12 +0000)]
Merge "jjb/common: lava-jobs-submit: fixup wait for job"

7 years agoAdd python-simplejson as dependency of lava-tool 0.19 53/11853/1
Jan-Simon Möller [Sat, 11 Nov 2017 08:21:24 +0000 (09:21 +0100)]
Add python-simplejson as dependency of lava-tool 0.19

Change-Id: Icfdfc454106b14c94f05da61d5e349d22ae1fbaa
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoDisable src and sstate mirror on image 43/11843/1
Jan-Simon Möller [Fri, 10 Nov 2017 22:11:01 +0000 (23:11 +0100)]
Disable src and sstate mirror on image

Change-Id: Ic5cbae9c7eda50110b23acc4a354528bfc02975a
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agopacker/provision: agl_dependencies force lava-tool version 0.19 31/11831/1
Loys Ollivier [Fri, 10 Nov 2017 14:41:16 +0000 (15:41 +0100)]
packer/provision: agl_dependencies force lava-tool version 0.19

lava-tool version 0.14 from ubuntu xenial is almost deprecated.
Use the jessie-backeports version 0.19.

Change-Id: I4ddb6eb81757ffdb978c8d2edafc4931cf5a42a4
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
7 years agojjb/common: lava-jobs-submit: fixup wait for job 27/11827/3
Loys Ollivier [Fri, 10 Nov 2017 10:31:20 +0000 (11:31 +0100)]
jjb/common: lava-jobs-submit: fixup wait for job

REQUIRES: lava-tool version >= 0.19

The previous version using submit-job with "--block" would never
timeout and remain blocked even if there was an issue during the
LAVA job execution.

This patch fixes the issue by using wait-job-events with a tiemout.
Parsing has been updated to follow these commands as well.

Change-Id: If090d278cb58c1c1b902793bf0ca40daceb2fd97
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
7 years agojjb/common: lava-jobs-submit: fixup device-list failure 99/11799/1
Kevin Hilman [Fri, 10 Nov 2017 00:25:00 +0000 (00:25 +0000)]
jjb/common: lava-jobs-submit: fixup device-list failure

The previous reordering of lava lab selection result in a failure
the second time through the devices list.

This patch fixes the failure enough to get things working again,
but the ordering needs to be fixed so that there is only one pass
through the devices-list.

Change-Id: I1131b380cb5a8a8235cbf1f838574726d6ef11a6
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
7 years agoCIBT Update the callback arg for releng. 77/11777/1
Loys Ollivier [Thu, 9 Nov 2017 10:31:28 +0000 (11:31 +0100)]
CIBT Update the callback arg for releng.

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>
7 years agoCIBT improve lava lab searching and coding style 53/11753/1
Loys Ollivier [Wed, 8 Nov 2017 13:03:21 +0000 (14:03 +0100)]
CIBT improve lava lab searching and coding style

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>
7 years agoCIBT find the LAVA lab before calling releng 43/11743/4
Loys Ollivier [Tue, 7 Nov 2017 14:35:21 +0000 (15:35 +0100)]
CIBT find the LAVA lab before calling releng

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>
7 years agoMerge "Lava jobs update raspberrypi3 device_type name"
Jan-Simon Moeller [Tue, 7 Nov 2017 13:59:49 +0000 (13:59 +0000)]
Merge "Lava jobs update raspberrypi3 device_type name"

7 years agoFix agl-run-test-short 39/11739/1
Loys Ollivier [Tue, 7 Nov 2017 13:50:42 +0000 (14:50 +0100)]
Fix agl-run-test-short

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>
7 years agoLava jobs update raspberrypi3 device_type name 37/11737/1
Loys Ollivier [Tue, 7 Nov 2017 13:19:05 +0000 (14:19 +0100)]
Lava jobs update raspberrypi3 device_type name

For the raspberrypi3, update the device_type name to the LAVA
names for the rpi3 32bit:
- raspberrypi3-uboot
- bcm2837-rpi-3-b-32b

Change-Id: Icc654e47fd03b437165fb9c9aac5efdac490ef5c
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
7 years agoTypo fix in agl-run-test-short 31/11731/2
Loys Ollivier [Tue, 7 Nov 2017 11:04:43 +0000 (12:04 +0100)]
Typo fix in agl-run-test-short

Fix a typo in the if to call releng-scripts.

Change-Id: Idb2331b79d8a0947ae1d69f3bc73cd266c01b7ef
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
7 years agoMerge changes Ie341a1ed,Ibd6449c1
Jan-Simon Moeller [Mon, 6 Nov 2017 23:16:29 +0000 (23:16 +0000)]
Merge changes Ie341a1ed,Ibd6449c1

* changes:
  Update releng calls to use new args
  Use releng for rapsberrypi3

7 years agoFix comment triggers to be strict 11/11711/2
Jeremy Phelps [Mon, 6 Nov 2017 16:52:42 +0000 (10:52 -0600)]
Fix comment triggers to be strict

Comment triggers stuck in a loop since
some jobs contain "remove-artifacts" in the
job name.  Made the matching strict.

Change-Id: Icaeb4a9db2a128ea00e0b3e775fe7c9fa52ff2a7
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
7 years agoUpdate releng calls to use new args 09/11709/1
Loys Ollivier [Mon, 6 Nov 2017 15:12:21 +0000 (16:12 +0100)]
Update releng calls to use new args

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>
7 years agoUse releng for rapsberrypi3 07/11707/3
Loys Ollivier [Mon, 6 Nov 2017 14:22:44 +0000 (15:22 +0100)]
Use releng for rapsberrypi3

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>
7 years agoFix task dependency bug in eel also in CI build 81/11381/1
Jan-Simon Möller [Thu, 19 Oct 2017 10:41:57 +0000 (12:41 +0200)]
Fix task dependency bug in eel also in CI build

Change-Id: I6f61a2c15f0f9fcfe27ed66b688bf1a4e8921825
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
7 years agoAdd hotfix to release build for YP bug 12070 71/11371/1
Jan-Simon Möller [Wed, 18 Oct 2017 08:20:58 +0000 (10:20 +0200)]
Add hotfix to release build for YP bug 12070

This adds a hotfix for https://bugzilla.yoctoproject.org/show_bug.cgi?id=12070
until it is fixe upstream.

Change-Id: I9fe57d853f44ad57af115825b2d66e859e20d53e
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>