aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duraj <julien.duraj@linaro.org>2017-01-10 13:22:16 +0000
committerJulien Duraj <julien.duraj@linaro.org>2017-01-13 09:47:31 +0000
commitdf5fefcbdecba8206f470ed65782840b896142ec (patch)
treef03a147216c59db349cf0e4fc346cd7e0d18728c
parentbcb40264a55f3ef243af2ddf9dbe087ef94b0533 (diff)
downloadconfigs-df5fefcbdecba8206f470ed65782840b896142ec.tar.gz
VIXL: Add Host tests and Target Tests
These 2 new jobs are triggered daily, and they can also be triggered from a gerrit patch using the comment IncludeVixlArtTests In case of failure, also alert linaro-vixl@linaro.org Change-Id: I276d5e3cd06eeb3c1605e316df1035202073a53f
-rw-r--r--linaro-art-vixl-art-host-test.yaml136
-rw-r--r--linaro-art-vixl-art-target-test.yaml130
-rw-r--r--linaro-art-vixl-test.yaml2
-rw-r--r--trigger-android-daily-builds.yaml2
4 files changed, 270 insertions, 0 deletions
diff --git a/linaro-art-vixl-art-host-test.yaml b/linaro-art-vixl-art-host-test.yaml
new file mode 100644
index 000000000..6aa44da89
--- /dev/null
+++ b/linaro-art-vixl-art-host-test.yaml
@@ -0,0 +1,136 @@
+- job:
+ name: linaro-art-vixl-art-host-test
+ project-type: freestyle
+ defaults: global
+ description: >
+ Runs the ART
+ <a href="https://android-git.linaro.org/linaro-art/art-build-scripts.git/tree/tests/test_art_host.sh">Host Tests</a>
+ on the tip using the
+ <a href="https://git.linaro.org/arm/vixl.git">latest VIXL tree.</a><br>
+ This job will be launched nightly.<br>
+ This build can also be triggered by adding the comment "IncludeVixlArtTests" in your Gerrit patch.
+ properties:
+ - authorization:
+ anonymous:
+ - job-discover
+ linaro-android-builders:
+ - job-read
+ - job-extended-read
+ - job-workspace
+ linaro-art:
+ - job-build
+ - job-read
+ - job-extended-read
+ - job-workspace
+ - build-discarder:
+ days-to-keep: 60
+ num-to-keep: 60
+ parameters:
+ - string:
+ name: BUILD_CONFIG_REPO
+ default: 'git://android-git.linaro.org/android-build-configs.git'
+ - string:
+ name: BUILD_CONFIG_BRANCH
+ default: 'master'
+ - string:
+ name: BUILD_CONFIG_FILENAME
+ default: 'linaro-art-tip-aosp_arm64'
+ disabled: false
+ node: docker-utopic-art
+ display-name: 'VIXL: ART Host Tests'
+ concurrent: true
+ scm:
+ - git:
+ url: ssh://git@dev-private-git.linaro.org/linaro-art/platform/art.git
+ branches:
+ - origin/master
+ credentials-id: '768c1ba1-6052-4b97-a531-7e4fabda6979'
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ triggers:
+ - gerrit:
+ override-votes: true
+ gerrit-build-successful-verified-value: 1
+ gerrit-build-failed-verified-value: -1
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: '.*IncludeVixlArtTests.*'
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'linaro-art/platform/art'
+ branches:
+ - branch-pattern: 'master'
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'arm/vixl'
+ branches:
+ - branch-pattern: 'master'
+ wrappers:
+ - timestamps
+ - timeout:
+ timeout: 500
+ - ssh-agent-credentials:
+ users:
+ - '768c1ba1-6052-4b97-a531-7e4fabda6979'
+ builders:
+ - shell: |
+ CI_MAIL_RECIPIENTS="${GERRIT_CHANGE_OWNER_EMAIL},${GERRIT_EVENT_ACCOUNT_EMAIL}"
+ CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},vishal.bhoj@linaro.org"
+ CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},daniel.diaz@linaro.org"
+ CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},julien.duraj@linaro.org"
+ CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},linaro-vixl@linaro.org"
+ echo "CI_MAIL_RECIPIENTS=${CI_MAIL_RECIPIENTS}" > env_var_parameters
+ - inject:
+ properties-file: env_var_parameters
+ - shell: |
+ #!/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
+ ./setup_host.sh
+ ./setup_android.sh
+
+ cd ${ANDROID_BUILD_DIR}
+ rm -rf external/vixl
+ git clone https://git.linaro.org/arm/vixl external/vixl
+ perl scripts/jenkins/test_launcher.pl \
+ scripts/tests/test_art_host.sh
+ publishers:
+ - email-ext:
+ recipients: '${CI_MAIL_RECIPIENTS}'
+ content-type: text
+ body: |
+ Build Triggered by: ${GERRIT_CHANGE_SUBJECT}: ${GERRIT_CHANGE_URL}
+ Build URL: ${PROJECT_URL}${BUILD_NUMBER}/
+ Full log: ${PROJECT_URL}${BUILD_NUMBER}/consoleText
+ Parsed warnings/errors: ${PROJECT_URL}${BUILD_NUMBER}/parsed_console
+
+ Errors:
+ ${BUILD_LOG_REGEX, regex=".*ERROR:.* ", linesBefore=0, linesAfter=0, showTruncatedLines=false}
+ - archive:
+ artifacts: '*.txt, *.xml'
+ - logparser:
+ parse-rules: '/var/lib/jenkins/userContent/android-art.parse'
+ unstable-on-warning: false
+ fail-on-error: false
+ - groovy-postbuild:
+ script: !include-raw: linaro-art/postbuild.groovy
+ - plot:
+ - title: 'Sync Time'
+ group: 'Time Measurements'
+ yaxis: 'Seconds'
+ style: line
+ series:
+ - file: time_repo.txt
+ format: properties
+ - title: 'Test Time'
+ group: 'Time Measurements'
+ yaxis: 'Seconds'
+ style: line
+ series:
+ - file: time_test.txt
+ format: properties
diff --git a/linaro-art-vixl-art-target-test.yaml b/linaro-art-vixl-art-target-test.yaml
new file mode 100644
index 000000000..aec6214b6
--- /dev/null
+++ b/linaro-art-vixl-art-target-test.yaml
@@ -0,0 +1,130 @@
+- job:
+ name: linaro-art-vixl-art-target-test
+ project-type: freestyle
+ defaults: global
+ description: >
+ Runs the ART
+ <a href="https://android-git.linaro.org/linaro-art/art-build-scripts.git/tree/tests/test_art_target.sh">Target Tests</a>
+ on a device via adb using android root.<br>
+ The build slave in the cloud is
+ able to reach the physical device using port forwarding via SSH.<br>
+ This job is using the latest VIXL tree.<br>
+ This job will be launched nightly.<br>
+ This build can also be triggered by adding the comment "IncludeVixlArtTests" in your Gerrit patch.
+ properties:
+ - authorization:
+ anonymous:
+ - job-discover
+ linaro-android-builders:
+ - job-read
+ - job-extended-read
+ - job-workspace
+ linaro-art:
+ - job-build
+ - job-read
+ - job-extended-read
+ - job-workspace
+ - build-discarder:
+ days-to-keep: 60
+ num-to-keep: 60
+ parameters:
+ - string:
+ name: ADB_VERSION
+ default: 'adb-tip'
+ - string:
+ name: BUILD_CONFIG_REPO
+ default: 'git://android-git.linaro.org/android-build-configs.git'
+ - string:
+ name: BUILD_CONFIG_BRANCH
+ default: 'master'
+ - string:
+ name: BUILD_CONFIG_FILENAME
+ default: 'linaro-art-tip-aosp_flounder'
+ disabled: false
+ node: docker-utopic-art
+ display-name: 'VIXL: ART Target Tests'
+ concurrent: true
+ scm:
+ - git:
+ url: ssh://git@dev-private-git.linaro.org/linaro-art/platform/art.git
+ branches:
+ - origin/master
+ credentials-id: '768c1ba1-6052-4b97-a531-7e4fabda6979'
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ triggers:
+ - gerrit:
+ override-votes: true
+ gerrit-build-successful-verified-value: 1
+ gerrit-build-failed-verified-value: -1
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: '.*IncludeVixlArtTests.*'
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'linaro-art/platform/art'
+ branches:
+ - branch-pattern: 'master'
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'arm/vixl'
+ branches:
+ - branch-pattern: 'master'
+ wrappers:
+ - timestamps
+ - timeout:
+ timeout: 500
+ - ssh-agent-credentials:
+ users:
+ - '768c1ba1-6052-4b97-a531-7e4fabda6979'
+ builders:
+ - shell: |
+ CI_MAIL_RECIPIENTS="${GERRIT_CHANGE_OWNER_EMAIL},${GERRIT_EVENT_ACCOUNT_EMAIL}"
+ CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},vishal.bhoj@linaro.org"
+ CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},daniel.diaz@linaro.org"
+ CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},julien.duraj@linaro.org"
+ CI_MAIL_RECIPIENTS="${CI_MAIL_RECIPIENTS},linaro-vixl@linaro.org"
+ echo "CI_MAIL_RECIPIENTS=${CI_MAIL_RECIPIENTS}" > env_var_parameters
+ - inject:
+ properties-file: env_var_parameters
+ - shell: |
+ #!/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}
+ rm -rf external/vixl
+ git clone https://git.linaro.org/arm/vixl external/vixl
+ perl scripts/jenkins/test_launcher.pl \
+ scripts/tests/test_art_target.sh --default
+ publishers:
+ - email-ext:
+ recipients: '${CI_MAIL_RECIPIENTS}'
+ content-type: text
+ body: |
+ Build Triggered by: ${GERRIT_CHANGE_SUBJECT}: ${GERRIT_CHANGE_URL}
+ Build URL: ${PROJECT_URL}${BUILD_NUMBER}/
+ Full log: ${PROJECT_URL}${BUILD_NUMBER}/consoleText
+ Parsed warnings/errors: ${PROJECT_URL}${BUILD_NUMBER}/parsed_console
+
+ Errors:
+ ${BUILD_LOG_REGEX, regex=".*ERROR:.* ", linesBefore=0, linesAfter=0, showTruncatedLines=false}
+ - archive:
+ artifacts: '*.txt, *.xml'
+ - logparser:
+ parse-rules: '/var/lib/jenkins/userContent/android-art.parse'
+ unstable-on-warning: false
+ fail-on-error: false
+ - groovy-postbuild:
+ script: !include-raw: linaro-art/postbuild.groovy
diff --git a/linaro-art-vixl-test.yaml b/linaro-art-vixl-test.yaml
index 57c36e779..3344eccce 100644
--- a/linaro-art-vixl-test.yaml
+++ b/linaro-art-vixl-test.yaml
@@ -52,6 +52,8 @@
gerrit-build-failed-verified-value: -1
trigger-on:
- comment-added-contains-event:
+ comment-contains-value: '.*IncludeVixlArtTests.*'
+ - comment-added-contains-event:
comment-contains-value: '.*IncludeUpstreamVIXLTests.*'
projects:
- project-compare-type: 'PLAIN'
diff --git a/trigger-android-daily-builds.yaml b/trigger-android-daily-builds.yaml
index f38fc6ee7..1008bc218 100644
--- a/trigger-android-daily-builds.yaml
+++ b/trigger-android-daily-builds.yaml
@@ -22,5 +22,7 @@
- project:
- 'linaro-art-stable-build-ARTVixlTest'
- 'linaro-art-vixl-test'
+ - 'linaro-art-vixl-art-target-test'
+ - 'linaro-art-vixl-art-host-test'
- 'linaro-art-tip-build-ARTVixlTest'
- 'android-clang-toolchain'