Stuart Monteith | 20f0edb | 2019-01-21 10:42:06 +0000 | [diff] [blame] | 1 | - job: |
| 2 | name: jdk12-specjbb2015-benchmark-persist-results |
| 3 | project-type: matrix |
| 4 | defaults: global |
| 5 | description: | |
| 6 | * Writes the results to $HOME/srv/openjdk12/SPECjbb2015-nightly-runs.<br> |
| 7 | * This job has the client axis <b>disabled</b> until there is enough build/test time available.<br> |
| 8 | * If the client axis is enabled the heap size for the VM will need to be adjusted using -Xmxm |
| 9 | properties: |
| 10 | - authorization: |
Benjamin Copeland | 9dc2eb8 | 2022-10-11 12:40:33 +0100 | [diff] [blame] | 11 | everyone-flat: |
Stuart Monteith | 20f0edb | 2019-01-21 10:42:06 +0000 | [diff] [blame] | 12 | - job-read |
| 13 | openjdk-members: |
| 14 | - job-build |
| 15 | - job-cancel |
| 16 | - build-discarder: |
| 17 | days-to-keep: 30 |
| 18 | num-to-keep: 10 |
| 19 | artifact-num-to-keep: 5 |
Riku Voipio | b7c49aa | 2020-12-01 15:15:24 +0200 | [diff] [blame] | 20 | disabled: true |
Stuart Monteith | 20f0edb | 2019-01-21 10:42:06 +0000 | [diff] [blame] | 21 | node: j12-qrep-01 |
| 22 | display-name: 'OpenJDK 12 - Write SPECjbb2015 results' |
| 23 | axes: |
| 24 | - axis: |
| 25 | type: user-defined |
| 26 | name: BUILD_TYPE |
| 27 | values: |
| 28 | - release |
| 29 | - axis: |
| 30 | type: slave |
| 31 | name: label |
| 32 | values: |
| 33 | - j12-qrep-01 |
| 34 | execution-strategy: |
| 35 | sequential: true |
| 36 | wrappers: |
| 37 | - workspace-cleanup: |
| 38 | dirmatch: false |
| 39 | - timestamps |
| 40 | - matrix-tie-parent: |
| 41 | node: j12-qrep-01 |
| 42 | builders: |
| 43 | - copyartifact: |
| 44 | project: jdk12-specjbb2015-benchmark |
| 45 | filter: 'out/specjbb*.gz' |
| 46 | target: incoming |
| 47 | flatten: true |
| 48 | - shell: | |
| 49 | #!/bin/bash |
| 50 | |
| 51 | tree -f . |
| 52 | |
| 53 | PERSIST=$HOME/srv/openjdk12 |
| 54 | TOP_DIR=$PERSIST |
| 55 | export SPECJBB_PRODUCT_HOME=$PERSIST/SPECjbb2015 |
| 56 | mkdir -p $TOP_DIR |
| 57 | |
| 58 | SCRIPT_DIR=$PERSIST/specjbb-test-scripts |
| 59 | if [ -d $SCRIPT_DIR ]; then |
| 60 | (cd $SCRIPT_DIR; git pull) |
| 61 | else |
| 62 | git clone https://git.linaro.org/leg/openjdk/specjbb-test-scripts.git $SCRIPT_DIR |
| 63 | fi |
| 64 | |
| 65 | source $SCRIPT_DIR/common.sh |
| 66 | |
| 67 | # Ensure nightly results dir exists. |
| 68 | mkdir -p $SPECJBB_EXPANDED_RESULTS_DIR |
| 69 | |
| 70 | echo "Previous Results" |
| 71 | cat ${RESULTS_CSV} |
| 72 | set -eux |
| 73 | result_tarball=${WORKSPACE}/incoming/BUILD_TYPE=${BUILD_TYPE},label=${label}/specjbb-result-${BUILD_TYPE}.tar.gz |
| 74 | [ -e $result_tarball ] || exit 1 |
| 75 | tar -C ${SPECJBB_EXPANDED_RESULTS_DIR} -xf $result_tarball |
| 76 | cp incoming/BUILD_TYPE=${BUILD_TYPE},label=${label}/*.data.gz ${SPECJBB_EXPANDED_RESULTS_DIR} |
| 77 | pushd ${SPECJBB_EXPANDED_RESULTS_DIR} |
| 78 | echo "Updating ${RESULTS_CSV}" |
| 79 | $SCRIPT_DIR/update-results-csv -- --verbose --output=${RESULTS_CSV} |