Submit flounder release job to lava and kernelci 01/16801/3
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 26 Sep 2018 16:11:46 +0000 (18:11 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 27 Sep 2018 15:22:46 +0000 (17:22 +0200)
Change-Id: Ic26d5775b1ff6ca2c13e586212bb761c6055afac
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-agl-bitbake-sdk.sh
jjb/common/include-agl-lava-jobs-submit-only.sh [new file with mode: 0644]
jjb/common/include-agl-run-test-short-flounder.sh [new file with mode: 0644]
jjb/release-jjb-flounder-snapshot/release-jjb-flounder-snapshot.yaml

index 9928bec..f84fcb9 100644 (file)
@@ -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 (file)
index 0000000..a835439
--- /dev/null
@@ -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 (file)
index 0000000..0b2edfb
--- /dev/null
@@ -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
index df21020..5375a4e 100644 (file)
           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
           - ../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