Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-builder |
Boyan Karatotev | 5c87c07 | 2023-02-10 11:04:58 +0000 | [diff] [blame] | 3 | node: docker-amd64-tf-a-jammy |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 4 | project-type: freestyle |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 5 | concurrent: true |
| 6 | disabled: false |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 7 | defaults: global |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 8 | Description: | |
| 9 | Trusted Firmware A (TF-A) builder |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 10 | properties: |
| 11 | - build-discarder: |
Benjamin Copeland | 12a152f | 2022-03-18 13:16:44 +0000 | [diff] [blame] | 12 | days-to-keep: 15 |
Paul Sokolovsky | 2b0d011 | 2023-01-23 23:08:49 +0700 | [diff] [blame] | 13 | artifact-num-to-keep: 40000 |
Riku Voipio | bc87be2 | 2020-09-04 15:56:09 +0300 | [diff] [blame] | 14 | - authorization: |
Leonardo Sandoval | ebca882 | 2021-01-25 18:20:04 -0600 | [diff] [blame] | 15 | !include: authorization.yaml.inc |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 16 | parameters: |
| 17 | - string: |
Leonardo Sandoval | afdd5ce | 2020-07-06 11:35:36 -0500 | [diff] [blame] | 18 | name: import_cc |
Leonardo Sandoval | afdd5ce | 2020-07-06 11:35:36 -0500 | [diff] [blame] | 19 | - string: |
Paul Sokolovsky | 7be2e05 | 2021-11-08 14:45:01 +0300 | [diff] [blame] | 20 | name: TEST_CONFIG |
| 21 | description: | |
| 22 | Original test configuration. |
| 23 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 24 | name: TEST_DESC |
Paul Sokolovsky | 7be2e05 | 2021-11-08 14:45:01 +0300 | [diff] [blame] | 25 | description: | |
| 26 | Expanded and normalized test configuration, aka "test description" |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 27 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 28 | name: TF_GERRIT_PROJECT |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 29 | default: 'TF-A/trusted-firmware-a' |
| 30 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 31 | name: TF_GERRIT_BRANCH |
Fathi Boudra | 18eca5c | 2020-01-16 17:50:42 +0200 | [diff] [blame] | 32 | default: 'refs/heads/master' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 33 | - string: |
| 34 | name: TF_GERRIT_REFSPEC |
| 35 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 36 | - string: |
| 37 | name: TFTF_GERRIT_PROJECT |
| 38 | default: 'TF-A/tf-a-tests' |
| 39 | - string: |
| 40 | name: TFTF_GERRIT_BRANCH |
| 41 | default: 'refs/heads/master' |
| 42 | - string: |
| 43 | name: TFTF_GERRIT_REFSPEC |
| 44 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 45 | - string: |
Paul Sokolovsky | 1d4700c | 2023-06-12 16:00:16 +0300 | [diff] [blame] | 46 | name: CI_REFSPEC |
| 47 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 48 | - string: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 49 | name: DOCKER_REGISTRY |
| 50 | default: '987685672616.dkr.ecr.us-east-1.amazonaws.com' |
| 51 | - string: |
| 52 | name: ARMLMD_LICENSE_FILE |
Riku Voipio | af06a08 | 2021-08-24 13:58:13 +0300 | [diff] [blame] | 53 | default: '27000@flexnet.trustedfirmware.org' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 54 | - string: |
| 55 | name: JUNO_ROOTFS_URL |
| 56 | default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz' |
| 57 | - string: |
| 58 | name: MBEDTLS_URL |
Sandrine Bailleux | 135741b | 2023-09-11 16:10:04 +0200 | [diff] [blame] | 59 | default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.4.1.tar.gz' |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 60 | - string: |
| 61 | name: GERRIT_PATCHSET_NUMBER |
| 62 | default: '' |
| 63 | - string: |
| 64 | name: GERRIT_CHANGE_NUMBER |
| 65 | default: '' |
| 66 | - string: |
Milosz Wasilewski | 204a27e | 2020-12-10 10:29:45 +0000 | [diff] [blame] | 67 | name: GERRIT_HOST |
| 68 | default: 'review.trustedfirmware.org' |
| 69 | - string: |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 70 | name: QA_SERVER_TEAM |
| 71 | default: 'tf' |
| 72 | - string: |
| 73 | name: QA_SERVER_PROJECT |
| 74 | default: 'tf-a' |
| 75 | - string: |
Leonardo Sandoval | 3791fe4 | 2021-05-12 11:52:54 -0500 | [diff] [blame] | 76 | name: QA_SERVER_VERSION |
| 77 | default: ${BUILD_NUMBER} |
| 78 | - string: |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 79 | name: QA_SERVER |
| 80 | default: 'https://qa-reports.linaro.org' |
Leonardo Sandoval | 425ed9f | 2021-09-06 17:48:10 -0500 | [diff] [blame] | 81 | - string: |
| 82 | name: QA_TOOLS_REPO |
Paul Sokolovsky | 8fb2fb8 | 2023-03-24 15:59:29 +0700 | [diff] [blame] | 83 | default: 'https://git.gitlab.arm.com/tooling/qa-tools.git' |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 84 | - string: |
Paul Sokolovsky | fc8db3e | 2023-02-10 23:39:30 +0700 | [diff] [blame] | 85 | name: QA_TOOLS_BRANCH |
Paul Sokolovsky | 8fb2fb8 | 2023-03-24 15:59:29 +0700 | [diff] [blame] | 86 | default: 'master' |
Paul Sokolovsky | fc8db3e | 2023-02-10 23:39:30 +0700 | [diff] [blame] | 87 | - string: |
Paul Sokolovsky | 2ca12da | 2023-10-04 21:32:02 +0300 | [diff] [blame] | 88 | name: LAVA_RETRIES |
Paul Sokolovsky | 0f5a7ce | 2023-10-05 10:40:53 +0300 | [diff] [blame] | 89 | default: 2 |
Paul Sokolovsky | 2ca12da | 2023-10-04 21:32:02 +0300 | [diff] [blame] | 90 | description: | |
| 91 | Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures) |
| 92 | - string: |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 93 | name: SHARE_FOLDER |
| 94 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 95 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 96 | wrappers: |
| 97 | - timestamps |
Fathi Boudra | b4e04c0 | 2021-02-11 16:32:12 +0100 | [diff] [blame] | 98 | - timeout: |
| 99 | timeout: 120 |
| 100 | fail: true |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 101 | - credentials-binding: |
| 102 | - text: |
| 103 | credential-id: QA_REPORTS_TOKEN |
| 104 | variable: QA_REPORTS_TOKEN |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 105 | - credentials-binding: |
| 106 | - text: |
| 107 | credential-id: LAVA_USER_TF |
| 108 | variable: LAVA_USER |
| 109 | - credentials-binding: |
| 110 | - text: |
| 111 | credential-id: LAVA_TOKEN_TF |
| 112 | variable: LAVA_TOKEN |
Paul Sokolovsky | 5fd180d | 2023-11-27 18:38:00 +0300 | [diff] [blame] | 113 | - credentials-binding: |
| 114 | - text: |
| 115 | credential-id: ARMCLANG_UBL_CODE |
| 116 | variable: ARMCLANG_UBL_CODE |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 117 | builders: |
Paul Sokolovsky | 69f2091 | 2023-05-09 19:07:02 +0300 | [diff] [blame] | 118 | - shell: | |
| 119 | aarch64-none-elf-gcc -v || true |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 120 | - shell: |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 121 | !include-raw: scripts/clone.sh |
| 122 | - shell: |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 123 | !include-raw: tf-a-builder/builders.sh |
Chris Kay | f6ff467 | 2022-11-03 13:09:44 +0000 | [diff] [blame] | 124 | - inject: |
| 125 | properties-file: artefacts/env |
| 126 | - shell: | |
| 127 | ln -s "artefacts/${BIN_MODE:-release}" "artefacts-lava" |
Paul Sokolovsky | b0ef2fc | 2023-06-13 19:41:48 +0300 | [diff] [blame] | 128 | echo ${BIN_MODE:-release} >lava-binmode.txt |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 129 | - conditional-step: |
| 130 | condition-kind: file-exists |
| 131 | on-evaluation-failure: dont-run |
Chris Kay | f6ff467 | 2022-11-03 13:09:44 +0000 | [diff] [blame] | 132 | condition-filename: artefacts-lava/job.yaml |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 133 | condition-basedir: workspace |
| 134 | steps: |
| 135 | - shell: | |
| 136 | #!/bin/bash |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 137 | set -e |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 138 | DEVICE_TYPE=fvp |
Chris Kay | f6ff467 | 2022-11-03 13:09:44 +0000 | [diff] [blame] | 139 | CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts-lava/job.yaml |
| 140 | DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts-lava/job.yaml) |
Fathi Boudra | f5537c3 | 2021-01-21 09:28:05 +0100 | [diff] [blame] | 141 | cat << EOF > ${WORKSPACE}/lava.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 142 | DEVICE_TYPE=${DEVICE_TYPE} |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 143 | LAVA_SERVER=tf.validation.linaro.org |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 144 | EOF |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 145 | publishers: |
| 146 | - archive: |
Paul Sokolovsky | b0ef2fc | 2023-06-13 19:41:48 +0300 | [diff] [blame] | 147 | artifacts: artefacts/**, lava-binmode.txt |
Fathi Boudra | 9e402bf | 2019-12-05 11:16:41 +0200 | [diff] [blame] | 148 | latest-only: false |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 149 | allow-empty: true |
| 150 | - conditional-publisher: |
| 151 | - condition-kind: file-exists |
| 152 | on-evaluation-failure: dont-run |
Chris Kay | f6ff467 | 2022-11-03 13:09:44 +0000 | [diff] [blame] | 153 | condition-filename: artefacts-lava/job.yaml |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 154 | condition-basedir: workspace |
| 155 | action: |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 156 | - postbuildscript: |
Paul Sokolovsky | 096aee5 | 2023-05-09 22:10:48 +0300 | [diff] [blame] | 157 | mark-unstable-if-failed: true |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 158 | builders: |
| 159 | - role: SLAVE |
| 160 | build-on: |
| 161 | - SUCCESS |
| 162 | build-steps: |
| 163 | - inject: |
Fathi Boudra | f5537c3 | 2021-01-21 09:28:05 +0100 | [diff] [blame] | 164 | properties-file: ${WORKSPACE}/lava.param |
Leonardo Sandoval | e945013 | 2021-04-19 13:51:11 -0500 | [diff] [blame] | 165 | - shell: | |
Paul Sokolovsky | eab838b | 2023-12-30 00:15:48 +0300 | [diff] [blame^] | 166 | #!/bin/bash -x |
Leonardo Sandoval | e945013 | 2021-04-19 13:51:11 -0500 | [diff] [blame] | 167 | |
Paul Sokolovsky | eab838b | 2023-12-30 00:15:48 +0300 | [diff] [blame^] | 168 | tf-a-job-configs/pfalcon-tf-a-builder/submit-test-job.sh |
| 169 | status=$? |
Paul Sokolovsky | 05cafdf | 2023-03-16 16:49:30 +0700 | [diff] [blame] | 170 | tf-a-job-configs/tf-a-builder/lava-log-process.sh |
Paul Sokolovsky | eab838b | 2023-12-30 00:15:48 +0300 | [diff] [blame^] | 171 | if [ $status -ne 0 ]; then |
Paul Sokolovsky | 3f40cc7 | 2022-12-08 21:54:43 +0300 | [diff] [blame] | 172 | echo "LAVA JOB RESULT: 1" |
Paul Sokolovsky | 096aee5 | 2023-05-09 22:10:48 +0300 | [diff] [blame] | 173 | exit 1 |
Leonardo Sandoval | e945013 | 2021-04-19 13:51:11 -0500 | [diff] [blame] | 174 | else |
| 175 | echo "LAVA JOB RESULT: 0" |
| 176 | fi |
Paul Sokolovsky | c4df9f7 | 2021-11-16 16:35:57 +0300 | [diff] [blame] | 177 | - postbuildscript: |
| 178 | builders: |
| 179 | - role: SLAVE |
| 180 | build-on: |
| 181 | - SUCCESS |
| 182 | build-steps: |
| 183 | - shell: | |
Paul Sokolovsky | c8e985d | 2021-12-14 16:46:28 +0300 | [diff] [blame] | 184 | #!/bin/bash -e |
Paul Sokolovsky | c4df9f7 | 2021-11-16 16:35:57 +0300 | [diff] [blame] | 185 | echo "=== Starting expect-post tests ===" |
| 186 | ./tf-a-ci-scripts/script/expect-post-runner.sh |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 187 | - conditional-publisher: |
| 188 | - condition-kind: file-exists |
| 189 | on-evaluation-failure: dont-run |
Arthur She | 2586b5c | 2021-05-11 21:00:20 -0700 | [diff] [blame] | 190 | condition-filename: lava-raw-debug.log |
| 191 | condition-basedir: workspace |
| 192 | action: |
| 193 | - archive: |
| 194 | artifacts: lava-raw-debug.log |
| 195 | latest-only: false |
| 196 | allow-empty: true |
Paul Sokolovsky | 05cafdf | 2023-03-16 16:49:30 +0700 | [diff] [blame] | 197 | - archive: |
| 198 | artifacts: lava.log, lava-*.log, feedback.log, config_file.json, covtrace-*.log, trace_report/** |
| 199 | latest-only: false |
| 200 | allow-empty: true |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 201 | - groovy-postbuild: |
| 202 | script: |
| 203 | !include-raw: |
Fathi Boudra | f5537c3 | 2021-01-21 09:28:05 +0100 | [diff] [blame] | 204 | - tf-a-builder/postbuild.groovy |