From fe7004387438388c8bfe60984b1c8f5ce3c2c959 Mon Sep 17 00:00:00 2001 From: Vishal Bhoj Date: Tue, 11 Apr 2017 16:19:17 +0530 Subject: linaro-art-tip microbenchmarks: Use lava-v2 to run microbenchmarks Change-Id: I1241a5324783f9acae1ccfe0540dd21811f55097 Signed-off-by: Vishal Bhoj --- .../baseline-builders.yaml.inc | 26 ++++++++++ android/linaro-art-microbenchmarks/builders.sh | 60 ++++++++++++++++++++++ .../linaro-art-microbenchmarks/builders.yaml.inc | 14 +++++ 3 files changed, 100 insertions(+) create mode 100644 android/linaro-art-microbenchmarks/baseline-builders.yaml.inc create mode 100644 android/linaro-art-microbenchmarks/builders.sh create mode 100644 android/linaro-art-microbenchmarks/builders.yaml.inc (limited to 'android') diff --git a/android/linaro-art-microbenchmarks/baseline-builders.yaml.inc b/android/linaro-art-microbenchmarks/baseline-builders.yaml.inc new file mode 100644 index 0000000000..70a9d9b267 --- /dev/null +++ b/android/linaro-art-microbenchmarks/baseline-builders.yaml.inc @@ -0,0 +1,26 @@ + - linaro-publish-token + - shell: + !include-raw: + - android/linaro-art-microbenchmarks/builders.sh + - 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/qa/test-plans.git/plain/android/nexus5x/microbenchmarks_64.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/qa/test-plans.git/plain/android/pixel/microbenchmarks_64.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/qa/test-plans.git/plain/android/pixel/microbenchmarks_32.yaml#g" ${WORKSPACE}/post_build_lava_parameters + - trigger-builds: + - project: 'post-build-lava' + property-file: post_build_lava_parameters + block: true diff --git a/android/linaro-art-microbenchmarks/builders.sh b/android/linaro-art-microbenchmarks/builders.sh new file mode 100644 index 0000000000..85fe29c5a9 --- /dev/null +++ b/android/linaro-art-microbenchmarks/builders.sh @@ -0,0 +1,60 @@ +#!/bin/bash -xe + +# Build scripts +ANDROID_BUILD_DIR="${HOME}/srv/${JOB_NAME}/android" +ART_BUILD_SCRIPTS_DIR="${WORKSPACE}/art-build-scripts" +git clone https://android-git.linaro.org/git/linaro-art/art-build-scripts.git ${ART_BUILD_SCRIPTS_DIR} + +cd ${ART_BUILD_SCRIPTS_DIR}/jenkins +# Port forwarding magic to have access to Nexus devices +source /home/buildslave/srv/nexus-config +export ANDROID_SERIAL=${BULLHEAD} +./setup_adb.sh +./setup_host.sh +./setup_android.sh + +cd ${ANDROID_BUILD_DIR} +alias python=python3 +perl scripts/jenkins/test_launcher.pl \ + scripts/benchmarks/benchmarks_run_target.sh --skip-run true + +tar -cJf test-arm-fs.txz out/host/linux-x86/bin/ out/host/linux-x86/framework/ out/target/product/arm_krait/data/ out/target/product/arm_krait/system/ +tar -cJf test-armv8-fs.txz out/host/linux-x86/bin/ out/host/linux-x86/framework/ out/target/product/armv8/data/ out/target/product/armv8/system/ + +mkdir -p pub +mv ${WORKSPACE}/*.xml *.txz pub/ +PUB_DEST=${PUB_DEST:-/android/${JOB_NAME}/${BUILD_NUMBER}} + +# Publish +test -d ${HOME}/bin || mkdir ${HOME}/bin +wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py +time python ${HOME}/bin/linaro-cp.py \ + --manifest \ + --link-latest \ + --split-job-owner \ + --server ${PUBLISH_SERVER} \ + ./pub/ \ + ${PUB_DEST} \ + --include "^[^/]+[._](img[^/]*|tar[^/]*|xml|sh|config|txz)$" \ + --include "^[BHi][^/]+txt$" \ + --include "^(MANIFEST|MD5SUMS|changelog.txt)$" + +# Construct post-build-lava parameters +cat << EOF > ${WORKSPACE}/post_build_lava_parameters +DEVICE_TYPE=nexus5x +TARGET_PRODUCT=pixel +MAKE_TARGETS=droidcore +JOB_NAME=${JOB_NAME} +BUILD_NUMBER=${BUILD_NUMBER} +BUILD_URL=${BUILD_URL} +LAVA_SERVER=staging.validation.linaro.org/RPC2/ +GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} +GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} +GERRIT_CHANGE_URL=${GERRIT_CHANGE_URL} +GERRIT_CHANGE_ID=${GERRIT_CHANGE_ID} +FRONTEND_JOB_NAME=${JOB_NAME} +DOWNLOAD_URL=http://snapshots.linaro.org/android/$JOB_NAME/$BUILD_NUMBER +CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/plain/android/nexus5x/microbenchmarks_32.yaml +SKIP_REPORT=true +EOF + diff --git a/android/linaro-art-microbenchmarks/builders.yaml.inc b/android/linaro-art-microbenchmarks/builders.yaml.inc new file mode 100644 index 0000000000..94068696fe --- /dev/null +++ b/android/linaro-art-microbenchmarks/builders.yaml.inc @@ -0,0 +1,14 @@ + - linaro-publish-token + - shell: + !include-raw: + - android/linaro-art-microbenchmarks/builders.sh + - 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/qa/test-plans.git/plain/android/nexus5x/microbenchmarks_64.yaml#g" ${WORKSPACE}/post_build_lava_parameters + - trigger-builds: + - project: 'post-build-lava' + property-file: post_build_lava_parameters + block: true -- cgit v1.2.3