aboutsummaryrefslogtreecommitdiff
path: root/lkft-hikey-aosp-4.4.yaml
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-06-14 13:47:28 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-06-19 18:19:04 +0100
commitd451e7b0f394c26326eaa2fbe84a0f5a3f532ecd (patch)
tree5f1beeb238a5b00ebede9bfb77e753ec3e0f2f8d /lkft-hikey-aosp-4.4.yaml
parent9c866b558fb943de089812317ab383bf9f70ef23 (diff)
downloadconfigs-d451e7b0f394c26326eaa2fbe84a0f5a3f532ecd.tar.gz
lkft: route android test jobs via qa-reports
In order to record LAVA test results coming from lkft android builds, the test job submission needs to be routed via qa-reports. This patch modifies the LAVA templates for such submissions as well as build jobs. Change-Id: I5eec3ca3193f9678abcb92b0162980e2c90c88c3 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'lkft-hikey-aosp-4.4.yaml')
-rw-r--r--lkft-hikey-aosp-4.4.yaml170
1 files changed, 55 insertions, 115 deletions
diff --git a/lkft-hikey-aosp-4.4.yaml b/lkft-hikey-aosp-4.4.yaml
index 086c36364..7acc73fce 100644
--- a/lkft-hikey-aosp-4.4.yaml
+++ b/lkft-hikey-aosp-4.4.yaml
@@ -20,12 +20,18 @@
- string:
name: KERNEL_BRANCH
default: 'android-hikey-linaro-4.4'
+ - string:
+ name: KERNEL_REPO
+ default: 'https://android.googlesource.com/kernel/hikey-linaro'
+ - string:
+ name: QA_SERVER
+ default: 'https://qa-reports.linaro.org'
disabled: false
node: docker-xenial-aosp
display-name: 'LKFT - AOSP 4.4 (Android)'
scm:
- git:
- url: https://android.googlesource.com/kernel/hikey-linaro
+ url: ${KERNEL_REPO}
refspec: +refs/heads/${KERNEL_BRANCH}:refs/remotes/origin/${KERNEL_BRANCH}
name: origin
branches:
@@ -39,10 +45,19 @@
name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
- timeout:
timeout: 500
+ - credentials-binding:
+ - text:
+ credential-id: QA_REPORTS_TOKEN
+ variable: QA_REPORTS_TOKEN
+ - text:
+ credential-id: ARTIFACTORIAL_TOKEN
+ variable: ARTIFACTORIAL_TOKEN
builders:
- shell:
!include-raw:
- lkft/hikey-aosp/builders.sh
+ - inject:
+ properties-file: injected_build_variables
- linaro-publish-token
- shell: |
#!/bin/bash
@@ -60,121 +75,46 @@
PUB_DEST=android/lkft/${JOB_NAME}/${BUILD_NUMBER}
- # Construct post-build-lava parameters
- cat << EOF > ${WORKSPACE}/post_build_lava_parameters
- DEVICE_TYPE=hi6220-hikey
- TARGET_PRODUCT=hikey
- MAKE_TARGETS=droidcore
- REFERENCE_BUILD_URL=${REFERENCE_BUILD_URL}
- JOB_NAME=${JOB_NAME}
- BUILD_NUMBER=${BUILD_NUMBER}
- BUILD_URL=${BUILD_URL}
- LAVA_SERVER=lkft.validation.linaro.org/RPC2/
- FRONTEND_JOB_NAME=${JOB_NAME}
- DOWNLOAD_URL=https://snapshots.linaro.org/${PUB_DEST}
- CTS_MODULE_NAME=CtsBionicTestCases
- CUSTOM_JSON_URL=https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/lkft/lava-job-definitions/hikey-aosp/template-boot.yaml
- EOF
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/lkft/lava-job-definitions/hikey-aosp/template-vts-kernel-part1.yaml#g" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/lkft/lava-job-definitions/hikey-aosp/template-vts-kernel-part2.yaml#g" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/lkft/lava-job-definitions/hikey-aosp/template-vts-kernel-part3.yaml#g" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/lkft/lava-job-definitions/hikey-aosp/template-cts.yaml#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsVmTestCases#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsCompilationTestCases#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsDramTestCases#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsHardwareTestCases#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsJobSchedulerTestCases#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsOsTestCases#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsPermissionTestCases#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsPermission2TestCases#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsSecurityTestCases#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsUsbTests#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsFileSystemTestCases#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
- - shell: |
- sed -i "s#CTS_MODULE_NAME=.*#CTS_MODULE_NAME=CtsLibcoreTestCases#" ${WORKSPACE}/post_build_lava_parameters
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
+ export DEVICE_TYPE=hi6220-hikey
+ export LAVA_SERVER=https://lkft.validation.linaro.org/RPC2/
+ export PUB_DEST=android/lkft/${JOB_NAME}/${BUILD_NUMBER}
+ export DOWNLOAD_URL=https://snapshots.linaro.org/${PUB_DEST}
+
+ rm -rf configs
+ git clone --depth 1 http://git.linaro.org/ci/job/configs.git
+
+ python configs/openembedded-lkft/submit_for_testing.py \
+ --device-type ${DEVICE_TYPE} \
+ --build-number ${BUILD_NUMBER} \
+ --lava-server ${LAVA_SERVER} \
+ --qa-server ${QA_SERVER} \
+ --qa-server-team lkft \
+ --qa-server-project "aosp-${KERNEL_BRANCH}" \
+ --git-commit ${KERNEL_COMMIT} \
+ --template-path configs/lkft/lava-job-definitions \
+ --template-names template-boot.yaml template-vts-kernel-part1.yaml template-vts-kernel-part2.yaml template-vts-kernel-part3.yaml \
+ --quiet
+
+ for CTS_MODULE_NAME in CtsVmTestCases CtsLibcoreTiestCases CtsBionicTestCases \
+ CtsCompilationTestCases CtsDramTestCases CtsFileSystemTestCases \
+ CtsHardwareTestCases CtsJobSchedulerTestCases CtsOsTestCases \
+ CtsPermissionTestCases CtsPermission2TestCases CtsSecurityTestCases \
+ CtsUsbTests
+ do
+ export CTS_MODULE_NAME=${CTS_MODULE_NAME}
+ python configs/openembedded-lkft/submit_for_testing.py \
+ --device-type ${DEVICE_TYPE} \
+ --build-number ${BUILD_NUMBER} \
+ --lava-server ${LAVA_SERVER} \
+ --qa-server ${QA_SERVER} \
+ --qa-server-team lkft \
+ --qa-server-project "aosp-${KERNEL_BRANCH}" \
+ --git-commit ${KERNEL_COMMIT} \
+ --template-path configs/lkft/lava-job-definitions \
+ --template-names template-cts.yaml \
+ --quiet
+ done
publishers:
- logparser:
parse-rules: '/var/lib/jenkins/userContent/android.parse'