diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2021-06-18 08:16:24 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2021-06-18 09:36:42 +0000 |
commit | 975fab10feea6ecef8e7d8d36768273320c37cd1 (patch) | |
tree | 167969176600d6338667d31a722484a6beed9e53 /tcwg-benchmark-stm32.yaml | |
parent | 8f5f73d478402d35610eb86c063f0f5f3acaa1d7 (diff) |
tcwg-benchmark: Split benchmarking into frontend and backend jobs
Change-Id: Ib37258257f7374acb13ed8354fc605597735c727
Diffstat (limited to 'tcwg-benchmark-stm32.yaml')
-rw-r--r-- | tcwg-benchmark-stm32.yaml | 208 |
1 files changed, 3 insertions, 205 deletions
diff --git a/tcwg-benchmark-stm32.yaml b/tcwg-benchmark-stm32.yaml index f00f4b0b0e..bfb3e76990 100644 --- a/tcwg-benchmark-stm32.yaml +++ b/tcwg-benchmark-stm32.yaml @@ -52,208 +52,6 @@ name: tcwg-benchmark-stm32 project-type: freestyle defaults: global - properties: - - default-properties - parameters: - - choice: - name: bmk_hw - choices: - - stm32 - description: 'Hardware to use for benchmarking' - - string: - name: toolchain_url - default: '' - description: 'Toolchain URL. Either http[s]://xxx.tar.xz, rsync://machine:/path/bin/target-triplet-, or ssh://machine/path/compiler' - - choice: - name: toolchain_type - choices: - - auto - - gnu - - llvm - - string: - name: sysroot - default: 'tarball' - description: 'Rsync-friendly path to the sysroot to run against; use libs from toolchain_url tarball/rsync if "tarball"; use system libs if empty' - - string: - name: bench_list - default: 'coremark' - description: 'List of benchmarks to run (from spec2k6). Use "all" to run all of them.' - - string: - name: cflags - default: '' - description: 'CFLAGS to use' - - string: - name: ldflags - default: 'default' - description: 'LDFLAGS to use' - - choice: - name: extension - choices: - - default - - O2 - - O3 - - O2g - - O3g - - Ofast - - Os - description: 'Compilation profile' - - choice: - name: testmode - choices: - - verify - - build - - benchmark - description: 'Whether to just build or run full benchmarks' - - string: - name: iterations - default: '1' - description: 'Number of benchmark iterations' - - string: - name: results_id - default: '@hw_tag@/tcwg-benchmark/@build_num@' - description: 'ID for benchmarking results; results will appear in bkp-01.tcwglab:/home/tcwg-benchmark/results-$results_id/' - - bool: - name: forceinstall - default: 'true' - description: 'Force clean re-install of benchmark sources' - - choice: - name: run_profile - choices: - - parallel - - serial - description: 'Run benchmarks in parallel or serially.' - - choice: - name: image_arch - choices: - - armhf - description: 'Docker image architecture -- arm64 or armhf' - - bool: - name: reboot - default: 'false' - description: 'Reboot the board before building and running the benchmarks.' - - string: - name: displaytag - default: '' - description: 'Tag to display in the Jenkins console, so that the build name is more meaningful' - - bool: - name: ignore_errors - default: 'false' - description: 'Ignore build errors as much as possible' - - string: - name: clean_older_than - default: '60' - description: 'Delete previous results older than X days (on board)' - - string: - name: builder - default: 'tcwg-x86_64-build' - description: 'Builder -- jenkins label or node' - - string: - name: scripts_branch - default: master - description: 'Jenkins-scripts branch to use' - - string: - name: bmk_branch - default: master - description: 'Bmk-scripts branch to use' - disabled: false - concurrent: true - display-name: 'TCWG Benchmark stm32' - workspace: workspace/tcwg-benchmark-${NODE_NAME}_$EXECUTOR_NUMBER - scm: - - jenkins-scripts - - bmk-scripts - wrappers: - - timeout: - timeout: 900 - - timestamps - - ssh-agent-credentials: - users: - - 'tcwg-benchmark' - - build-name: - name: '#$BUILD_NUMBER-$displaytag' - builders: - - conditional-step: - condition-kind: execution-node - nodes: - - tcwg-bmk-bkp-01 - steps: - - shell: - command: | - #!/bin/bash - - set -euf -o pipefail - set -x - - rm -rf artifacts - mkdir artifacts - - case "$bmk_hw:$image_arch" in - stm32:*) hw_tag=stm32_STM32L476RGTx ;; - esac - - results_id=$(echo "$results_id" | sed \ - -e "s/@build_num@/$BUILD_NUMBER/g" \ - -e "s/@hw_tag@/$hw_tag/g") - - n_boards=$(set +f; ls -tr $HOME/boards/tcwg-bmk-$bmk_hw-*.lock | wc -l) - count=1 - while read -a bmks; do - cat > artifacts/bmk-$count-parameters <<EOF - bench_list=${bmks[@]}" - displaytag=#$BUILD_NUMBER+$count-$displaytag - bmk_node=tcwg-bmk-$bmk_hw - results_id=$results_id - EOF - count=$(($count+1)) - done < <(./bmk-scripts/break-up-bmks.sh \ - --bench_list "$bench_list" \ - --bmk_hw "$bmk_hw" \ - --n_boards "$n_boards" \ - --run_profile "$run_profile") - - trigger-builds: - - project: tcwg-benchmark-stm32 - block: true - current-parameters: true - parameter-factories: - - factory: filebuild - file-pattern: artifacts/bmk-*-parameters - - conditional-step: - condition-kind: not - condition-operand: - condition-kind: execution-node - nodes: - - tcwg-bmk-bkp-01 - steps: - - shell: - command: | - #!/bin/bash - - set -euf -o pipefail - set -x - - rm -rf artifacts - mkdir artifacts - - while true; do - for lock in $(set +f; ls -tr $HOME/boards/$NODE_NAME-*.lock); do - ( - flock -en -E 123 9 - touch $lock - NODE_NAME=$(cat <&9) - export NODE_NAME - exec ./jenkins-scripts/tcwg-benchmark-bare.sh - ) 9<$lock & - res=0 && wait $! || res=$? - if [ $res != 123 ]; then - exit $res - fi - done - sleep 30 - done - unstable-return: 125 - publishers: - - archive: - artifacts: 'artifacts/**' - latest-only: false - allow-empty: true -# checksum: e74659e4ca8ba33080c6142e6a265c66 + disabled: true + display-name: 'DELETE ME' +# checksum: e1700788398c5f953cc8a9598c1b15da |