diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2017-04-11 16:19:17 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2017-04-11 12:57:44 +0000 |
commit | fe7004387438388c8bfe60984b1c8f5ce3c2c959 (patch) | |
tree | 18266263b2860be8ffb75bc06f8c117f0e9370eb /linaro-art | |
parent | 4afe2c7f2bf79b6f4cbfff054d86a6d8a7614cf0 (diff) |
linaro-art-tip microbenchmarks: Use lava-v2 to run microbenchmarks
Change-Id: I1241a5324783f9acae1ccfe0540dd21811f55097
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'linaro-art')
-rw-r--r-- | linaro-art/microbenchmarks/baseline-builders.yaml.inc | 26 | ||||
-rw-r--r-- | linaro-art/microbenchmarks/builders.sh | 60 | ||||
-rw-r--r-- | linaro-art/microbenchmarks/builders.yaml.inc | 14 |
3 files changed, 100 insertions, 0 deletions
diff --git a/linaro-art/microbenchmarks/baseline-builders.yaml.inc b/linaro-art/microbenchmarks/baseline-builders.yaml.inc new file mode 100644 index 00000000..f65fa398 --- /dev/null +++ b/linaro-art/microbenchmarks/baseline-builders.yaml.inc @@ -0,0 +1,26 @@ + - linaro-publish-token + - shell: + !include-raw: + - 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/linaro-art/microbenchmarks/builders.sh b/linaro-art/microbenchmarks/builders.sh new file mode 100644 index 00000000..85fe29c5 --- /dev/null +++ b/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/linaro-art/microbenchmarks/builders.yaml.inc b/linaro-art/microbenchmarks/builders.yaml.inc new file mode 100644 index 00000000..921be6aa --- /dev/null +++ b/linaro-art/microbenchmarks/builders.yaml.inc @@ -0,0 +1,14 @@ + - linaro-publish-token + - shell: + !include-raw: + - 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 |