aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2018-09-26 18:11:46 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2018-09-27 17:22:46 +0200
commit248ac593fefa175330965bd1ac1c7538cf95bd0c (patch)
treea7b66b597e22bd3c00ca56e2d9aed3e1a6142aec
parent92d4fdca4609e434b712f21038146709f56d38b8 (diff)
Submit flounder release job to lava and kernelci
Change-Id: Ic26d5775b1ff6ca2c13e586212bb761c6055afac Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
-rw-r--r--jjb/common/include-agl-bitbake-sdk.sh3
-rw-r--r--jjb/common/include-agl-lava-jobs-submit-only.sh26
-rw-r--r--jjb/common/include-agl-run-test-short-flounder.sh35
-rw-r--r--jjb/release-jjb-flounder-snapshot/release-jjb-flounder-snapshot.yaml19
4 files changed, 75 insertions, 8 deletions
diff --git a/jjb/common/include-agl-bitbake-sdk.sh b/jjb/common/include-agl-bitbake-sdk.sh
index 9928bec3..f84fcb9b 100644
--- a/jjb/common/include-agl-bitbake-sdk.sh
+++ b/jjb/common/include-agl-bitbake-sdk.sh
@@ -4,8 +4,9 @@
################################################################################
## bitbake the sdk
################################################################################
-
+if ! test x"${GERRIT_BRANCH}" = x"dab" ; then
bitbake wic-tools
+fi
# finally, build the agl-demo-platform (we retry to catch the tar-native bug)
#( ( bitbake -c $TARGETSDK $TARGETIMAGE ) || ( echo '## Failed once, retry .. ##' ; sync ; sleep 2 ; bitbake -c $TARGETSDK $TARGETIMAGE ) ) || ( echo '## Failed again, bail out ... ##' ; exit 1 )
diff --git a/jjb/common/include-agl-lava-jobs-submit-only.sh b/jjb/common/include-agl-lava-jobs-submit-only.sh
new file mode 100644
index 00000000..a8354390
--- /dev/null
+++ b/jjb/common/include-agl-lava-jobs-submit-only.sh
@@ -0,0 +1,26 @@
+# (c) 2017 Kevin Hilman <khilman@baylibre.com>
+# License GPLv2
+#
+# Submit LAVA YAML job file (default testjob.yaml) to first available LAVA lab
+# with matching device-type
+#
+JOB_FILE=${1:-testjob.yaml}
+
+if [ ! -e $JOB_FILE ]; then
+ echo "ERROR: LAVA job file $JOB_FILE not present."
+ exit 1
+fi
+JOB_BASE=$(basename $JOB_FILE .yaml)
+
+# Need to hack the LAVA device-type name in the job file
+JOB_FILE_NEW="${JOB_BASE}_${LAVA_LAB}.yaml"
+cat $JOB_FILE | sed "s/device_type: $releng_device$/device_type: $lava_device/" > $JOB_FILE_NEW
+
+#
+# LAVA job submit, get job ID from lava-tool output
+#
+JOB_STATUS="${JOB_BASE}_${LAVA_LAB}.status"
+lava-tool submit-job --block $full_url $JOB_FILE_NEW |tee $JOB_STATUS
+# Printing the job URL in the log
+grep "submitted as job:" $JOB_STATUS
+
diff --git a/jjb/common/include-agl-run-test-short-flounder.sh b/jjb/common/include-agl-run-test-short-flounder.sh
new file mode 100644
index 00000000..0b2edfb0
--- /dev/null
+++ b/jjb/common/include-agl-run-test-short-flounder.sh
@@ -0,0 +1,35 @@
+# (c) 2016 Jan-Simon Moeller dl9pf(at)gmx.de
+# License GPLv2
+
+################################################################################
+## Run SHORT CI test
+################################################################################
+
+set -x
+
+cd $REPODIR
+
+echo "# LAVA lab target: ${LAVA_LAB} #"
+# releng-scripts depends on jinja2 >= 2.9
+echo "## Check version of python-jinja2: "
+pip show jinja2
+CREATE_ARGS=""
+CREATE_ARGS+="--machine ${releng_device} "
+CREATE_ARGS+="--build-type release "
+#[[ ! -z $RELEASE_BRANCH ]] && CREATE_ARGS+="--branch $RELEASE_BRANCH "
+#[[ ! -z $RELEASE_VERSION ]] && CREATE_ARGS+="--version $RELEASE_VERSION "
+CREATE_ARGS+="--url https://download.automotivelinux.org/AGL/upload/ci/${RELEASE_BRANCH}/${RELEASE_VERSION}/${MACHINE}/deploy/images/${MACHINE}/ "
+BUILD_VERSION="AGL-gerrit-$RELEASE_BRANCH-$RELEASE_VERSION"
+[[ -e output/repo-manifest-r.txt.sha1 ]] && BUILD_VERSION+="-$(cat output/repo-manifest-r.txt.sha1)"
+CREATE_ARGS+="--name AGL-gerrit-$RELEASE_BRANCH-$RELEASE_VERSION "
+CREATE_ARGS+="--build-version $BUILD_VERSION "
+CREATE_ARGS+="--callback-from ${LAVA_LAB} "
+CREATE_ARGS+="--test all"
+$RELENG/utils/create-jobs.py ${CREATE_ARGS} > testjob.yaml
+
+if [ $? != 0 ]; then
+ echo "ERROR: Machine ${releng_device}: LAVA job creation failed."
+ exit 0
+else
+ cat testjob.yaml
+fi
diff --git a/jjb/release-jjb-flounder-snapshot/release-jjb-flounder-snapshot.yaml b/jjb/release-jjb-flounder-snapshot/release-jjb-flounder-snapshot.yaml
index df210206..5375a4e4 100644
--- a/jjb/release-jjb-flounder-snapshot/release-jjb-flounder-snapshot.yaml
+++ b/jjb/release-jjb-flounder-snapshot/release-jjb-flounder-snapshot.yaml
@@ -21,11 +21,11 @@
description: "branch to build"
- string:
name: GERRIT_REFSPEC
- default: refs/tags/flounder_5.99.1
+ default: refs/tags/flounder_6.0.0
description: "refspec to build"
- string:
name: RELEASE_VERSION
- default: 5.99.1
+ default: 6.0.0
description: "release version number for build"
- string:
name: RELEASE_BRANCH
@@ -41,7 +41,8 @@
name: MACHINE
values:
- qemux86-64
- - #cyclone5
+ - qemuarm
+ - qemuarm64
- intel-corei7-64
- raspberrypi3
- dra7xx-evm
@@ -99,14 +100,18 @@
- ../common/include-agl-cat-auto-conf.sh
- ../common/include-agl-local-conf-archiver.sh
#- ../common/include-agl-local-conf-isafw.sh
+ - ../common/include-agl-local-conf-include-ptest.sh
- ../common/include-agl-local-conf-DISTROFEATURES-AGLCI.sh
- ../common/include-agl-local-conf-vmdk.sh
- ../common/include-agl-local-conf-rpi3-imagetype.sh
#- ../common/include-agl-bitbake-image.sh
- ../common/include-agl-bitbake-sdk.sh
- #- ../common/include-agl-run-test-prepare.sh
- #- ../common/include-agl-run-test-rsync-release.sh
- #- ../common/include-agl-lava-labs-prepare.sh
- #- ../common/include-agl-run-test-short-release.sh
- shell:
!include-raw-escape: include-release-jjb-flounder-snapshot-rsync.sh
+ - shell:
+ !include-raw-escape:
+ - ../common/include-agl-run-test-prepare.sh
+ #- ../common/include-agl-run-test-rsync-release.sh
+ - ../common/include-agl-lava-labs-prepare.sh
+ - ../common/include-agl-run-test-short-flounder.sh
+ - ../common/include-agl-lava-jobs-submit-only.sh