aboutsummaryrefslogtreecommitdiff
path: root/ldcg-onednn-benchmarks.yaml
blob: 18afa9c1ae424ebea5ac91c3d0de85dcb7199a61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
- job:
    name: ldcg-onednn-benchmarks
    display-name: 'OneDNN - CI Benchmark'
    project-type: freestyle
    defaults: global
    description: |
        Updates source and builds OneDNN and ACL frequently for benchmark testing.
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            everyone-flat:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 90
            num-to-keep: 90
        - github:
            url: https://github.com/oneapi-src/oneDNN.git
    disabled: false
    node: d05bench
    concurent: false
    wrappers:
        - timestamps
        - credentials-binding:
            - text:
                credential-id: QA_REPORTS_TOKEN
                variable: QA_REPORTS_TOKEN
    builders:
        - shell:
            !include-raw: ldcg-onednn-benchmarks/build-onednn-acl.sh
        - shell:
            !include-raw: ldcg-onednn-benchmarks/test-onednn.sh
        - shell: |
            #!/bin/bash -ex

            if [ ! -d "${WORKSPACE}" ]; then
              set -x
              WORKSPACE=$(pwd)
            else
              set -ex
            fi

            if [ -f "${WORKSPACE}"/format-tests.sh ]; then
                rm -r "${WORKSPACE}"/format-tests.sh
            fi

            wget https://git.linaro.org/ci/job/configs.git/plain/ldcg-onednn-benchmarks/format-tests.sh

            sh format-tests.sh

            curl \
                --header "Auth-Token: $QA_REPORTS_TOKEN" \
                --form tests=@"${WORKSPACE}"/oneDNN-results/final_full-oneDNN-results.json \
                https://qa-reports.linaro.org/api/submit/ldcg/onednn/"${BUILD_NUMBER}"/d05

    publisher:
        - email:
            recipients: 'theodore.grey@linaro.org andrew.goodbody@linaro.org'