Paul Sokolovsky | 7b2f2b9 | 2023-09-11 21:59:37 +0300 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-eclair-daily-separate |
| 3 | project-type: matrix |
| 4 | concurrent: true |
Paul Sokolovsky | ad5638f | 2024-10-22 12:34:15 +0700 | [diff] [blame] | 5 | disabled: true |
Paul Sokolovsky | 7b2f2b9 | 2023-09-11 21:59:37 +0300 | [diff] [blame] | 6 | defaults: global |
Paul Sokolovsky | d9f65b5 | 2024-10-22 13:50:58 +0700 | [diff] [blame] | 7 | description: | |
Paul Sokolovsky | 7b2f2b9 | 2023-09-11 21:59:37 +0300 | [diff] [blame] | 8 | ECLAIR (MISRA compliance) testing of TF-A (different configs built independently/separately) |
| 9 | properties: |
| 10 | - build-discarder: |
| 11 | days-to-keep: 40 |
Paul Sokolovsky | 7b2f2b9 | 2023-09-11 21:59:37 +0300 | [diff] [blame] | 12 | - throttle: |
| 13 | option: category |
| 14 | categories: [eclair-daily] |
| 15 | matrix-builds: false |
| 16 | matrix-configs: true |
| 17 | parameters: |
| 18 | - string: |
| 19 | name: MAKE_TARGET |
| 20 | default: '' |
| 21 | description: | |
| 22 | TF-A make target |
| 23 | - string: |
| 24 | name: DEBUG |
| 25 | default: '1' |
| 26 | description: | |
| 27 | TF-A make DEBUG setting |
| 28 | - string: |
| 29 | name: GERRIT_HOST |
| 30 | default: 'review.trustedfirmware.org' |
| 31 | - string: |
| 32 | name: GERRIT_PROJECT |
| 33 | default: 'TF-A/trusted-firmware-a' |
| 34 | description: | |
| 35 | Git project to build (also set by Gerrit trigger) |
| 36 | - string: |
| 37 | name: GERRIT_REFNAME |
| 38 | default: 'integration' |
| 39 | description: | |
| 40 | Git branch to build (also set by Gerrit trigger) |
| 41 | - string: |
| 42 | name: GERRIT_NEWREV |
| 43 | default: '' |
| 44 | description: | |
| 45 | Git revision to build (also set by Gerrit ref-updated trigger) |
| 46 | - string: |
| 47 | name: MBEDTLS_URL |
| 48 | default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.28.0.tar.gz' |
| 49 | description: | |
| 50 | URL of mbedTLS library to use in build (only for some configurations) |
| 51 | - string: |
| 52 | name: SHARE_FOLDER |
| 53 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 54 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
| 55 | axes: |
| 56 | - axis: |
| 57 | type: slave |
| 58 | name: label |
| 59 | values: |
| 60 | - docker-tf-a-eclair |
| 61 | - axis: |
| 62 | type: user-defined |
| 63 | name: TF_CONFIG |
| 64 | values: |
| 65 | - fvp-aarch32-default |
| 66 | - fvp-aarch32-enable-runtime-instr |
| 67 | - fvp-aarch32-rst-to-sp-min |
| 68 | - fvp-boot-el3-payload |
| 69 | - fvp-default |
| 70 | - fvp-enable-runtime-instr |
| 71 | - fvp-ext-pstate-ea-el3 |
| 72 | # Causes runtime error in ECLAIR: https://support.bugseng.com/mantis/view.php?id=5083 |
| 73 | #- fvp-mb_hash256-tbb_hash256-romlib |
| 74 | - fvp-no-cohmem |
| 75 | - fvp-opteed |
| 76 | - fvp-r-default |
| 77 | - fvp-rst-bl31 |
| 78 | - fvp-tspd |
| 79 | - fvp-tspd-gicv2-symmetric-model |
| 80 | - fvp-tspd-irq2el3 |
| 81 | - fvp-tspd-quad-cluster |
| 82 | - fvp-tspd-tbb-mbedtls |
| 83 | - fvp-tspd-tsp-async |
| 84 | - juno-aarch32-rst-to-sp-min |
| 85 | - juno-aarch32-rst-to-sp-min-enable-runtime-instr |
| 86 | - juno-default |
| 87 | - juno-tspd |
| 88 | triggers: |
Paul Sokolovsky | c4aa3ef | 2023-09-11 22:37:06 +0300 | [diff] [blame] | 89 | - timed: 'H 2 * * 0' |
Paul Sokolovsky | 7b2f2b9 | 2023-09-11 21:59:37 +0300 | [diff] [blame] | 90 | # - gerrit: |
| 91 | # silent: true |
| 92 | # server-name: 'review.trustedfirmware.org' |
| 93 | # projects: |
| 94 | # - branches: |
| 95 | # - branch-compare-type: PLAIN |
| 96 | # branch-pattern: integration |
| 97 | # project-compare-type: PLAIN |
| 98 | # project-pattern: 'TF-A/trusted-firmware-a' |
| 99 | # trigger-on: |
| 100 | # - ref-updated-event |
| 101 | wrappers: |
| 102 | - timestamps |
| 103 | - timeout: |
| 104 | timeout: 120 |
| 105 | fail: true |
| 106 | builders: |
| 107 | - shell: | |
| 108 | #!/bin/bash |
| 109 | set -ex |
| 110 | pwd |
| 111 | git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git |
| 112 | git clone https://git.trustedfirmware.org/ci/tf-ci-scripts.git |
| 113 | |
| 114 | git clone https://${GERRIT_HOST}/${GERRIT_PROJECT} -b ${GERRIT_REFNAME} |
| 115 | ls -l |
| 116 | if [ -n "${GERRIT_NEWREV}" ]; then |
| 117 | (cd $(basename ${GERRIT_PROJECT}); git checkout ${GERRIT_NEWREV}) |
| 118 | else |
| 119 | # Checkout last commit from yesterday, to have a stable commit for |
| 120 | # multiple builds. |
| 121 | (cd $(basename ${GERRIT_PROJECT}); git checkout $(git rev-list -n1 --before="today" HEAD)) |
| 122 | fi |
| 123 | (cd $(basename ${GERRIT_PROJECT}); git log -n1) |
| 124 | |
| 125 | export ECLAIR_CONFIG_DIR=$PWD/tf-a-ci-scripts/eclair |
| 126 | . tf-ci-scripts/eclair/utils.sh |
| 127 | # TODO |
| 128 | #. tf-a-ci-scripts/eclair/utils_tfa.sh |
| 129 | |
| 130 | detachLicense 5400 |
| 131 | trap "returnLicense" EXIT |
| 132 | |
| 133 | . tf-a-ci-scripts/eclair/analyze_common.sh |
| 134 | export ECLAIR_ANALYSIS=ECLAIR |
| 135 | eclair_prepare |
| 136 | eclair_analyze tf-a-ci-scripts/eclair/build-tfa.sh ${TF_CONFIG} |
| 137 | eclair_make_ecd |
| 138 | eclair_make_reports |
| 139 | eclair_compress_db |
| 140 | |
| 141 | tf-ci-scripts/eclair/analyze_index_html.sh |
| 142 | publishers: |
| 143 | - archive: |
| 144 | artifacts: 'ECLAIR/**, index.html' |
| 145 | excludes: 'ECLAIR/out/.data/**' |
| 146 | latest-only: false |
| 147 | allow-empty: true |