Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 1 | - job: |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 2 | name: tf-a-gerrit-tforg-l2 |
Paul Sokolovsky | bd2d064 | 2023-06-06 19:49:22 +0300 | [diff] [blame] | 3 | node: docker-amd64-tf-a-jammy |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 4 | project-type: multijob |
| 5 | concurrent: true |
| 6 | disabled: false |
| 7 | description: | |
| 8 | Job that triggers for every TF-A patch approved with the Allow-CI+2 |
| 9 | label on review.trustedfirmware.org. |
| 10 | properties: |
| 11 | - throttle: |
| 12 | option: project |
| 13 | enabled: true |
| 14 | max-total: 5 |
| 15 | - build-discarder: |
Arthur She | 1e9ab36 | 2025-02-25 14:30:42 -0800 | [diff] [blame] | 16 | days-to-keep: 15 |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 17 | parameters: |
| 18 | - string: |
| 19 | name: GERRIT_PROJECT |
| 20 | default: 'TF-A/trusted-firmware-a' |
| 21 | - string: |
| 22 | name: GERRIT_BRANCH |
Leonardo Sandoval | 3da340d | 2021-02-09 14:53:30 -0600 | [diff] [blame] | 23 | default: 'refs/heads/integration' |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 24 | - string: |
| 25 | name: GERRIT_REFSPEC |
Leonardo Sandoval | 3da340d | 2021-02-09 14:53:30 -0600 | [diff] [blame] | 26 | default: '+refs/heads/integration:refs/remotes/origin/integration' |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 27 | - string: |
| 28 | name: GERRIT_PATCHSET_NUMBER |
| 29 | default: '' |
| 30 | - string: |
| 31 | name: GERRIT_CHANGE_NUMBER |
| 32 | default: '' |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 33 | - string: |
| 34 | name: TF_GERRIT_REFSPEC |
| 35 | default: ${GERRIT_REFSPEC} |
| 36 | description: 'Parameter only used by the clone script' |
| 37 | - string: |
Paul Sokolovsky | 3f52301 | 2023-03-01 16:19:39 +0700 | [diff] [blame] | 38 | name: TFTF_GERRIT_PROJECT |
| 39 | default: 'TF-A/tf-a-tests' |
| 40 | - string: |
| 41 | name: TFTF_GERRIT_BRANCH |
| 42 | default: 'refs/heads/master' |
| 43 | - string: |
| 44 | name: TFTF_GERRIT_REFSPEC |
| 45 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 46 | - string: |
Paul Sokolovsky | d840f24 | 2024-02-02 12:48:47 +0700 | [diff] [blame] | 47 | name: SPM_REFSPEC |
| 48 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 49 | description: | |
| 50 | SPM(Hafnium) refspec to use. The master branch is used by default. |
| 51 | - string: |
Manish V Badarkhe | 08e108b | 2025-04-11 08:01:14 +0100 | [diff] [blame] | 52 | name: RMM_REFSPEC |
| 53 | default: '+refs/heads/main:refs/remotes/origin/main' |
| 54 | description: | |
| 55 | tf-rmm refspec to use. The main branch is used by default. |
| 56 | - string: |
Paul Sokolovsky | d840f24 | 2024-02-02 12:48:47 +0700 | [diff] [blame] | 57 | name: CI_REFSPEC |
| 58 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 59 | - string: |
Saheer Babu | b495f03 | 2025-01-21 23:01:11 +0000 | [diff] [blame] | 60 | name: JOBS_REFSPEC |
| 61 | default: 'refs/heads/master' |
| 62 | description: | |
| 63 | tf-a-job-configs refspec to use. The master branch is used by default. |
| 64 | - string: |
Paul Sokolovsky | d840f24 | 2024-02-02 12:48:47 +0700 | [diff] [blame] | 65 | name: MBEDTLS_URL |
Lauren Wehrmeister | cec409a | 2025-04-03 14:34:02 -0500 | [diff] [blame] | 66 | default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz' |
Paul Sokolovsky | d840f24 | 2024-02-02 12:48:47 +0700 | [diff] [blame] | 67 | - string: |
Paul Sokolovsky | ccbe4af | 2023-10-04 22:53:03 +0300 | [diff] [blame] | 68 | name: LAVA_RETRIES |
Paul Sokolovsky | 048d74a | 2023-10-04 23:40:00 +0300 | [diff] [blame] | 69 | default: 2 |
Paul Sokolovsky | ccbe4af | 2023-10-04 22:53:03 +0300 | [diff] [blame] | 70 | description: | |
| 71 | Number of tries submitting job to LAVA in case it fails (stopgap measure against nondeterministic failures) |
| 72 | - string: |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 73 | name: SHARE_FOLDER |
| 74 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 75 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 76 | wrappers: |
| 77 | - credentials-binding: |
| 78 | - ssh-user-private-key: |
| 79 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 80 | key-file-variable: CI_BOT_KEY |
| 81 | username-variable: CI_BOT_USERNAME |
| 82 | passphrase-variable: '' |
| 83 | - workspace-cleanup |
| 84 | - timestamps |
| 85 | builders: |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 86 | - shell: |
| 87 | !include-raw: scripts/clone.sh |
Fathi Boudra | 9c8a945 | 2020-12-08 22:16:57 +0100 | [diff] [blame] | 88 | - shell: | |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 89 | #!/bin/bash |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 90 | set -e |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 91 | cat << EOF > env.param |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 92 | GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} |
| 93 | GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} |
Milosz Wasilewski | 204a27e | 2020-12-10 10:29:45 +0000 | [diff] [blame] | 94 | GERRIT_HOST=${GERRIT_HOST} |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 95 | QA_SERVER_PROJECT=${JOB_NAME} |
| 96 | QA_SERVER_VERSION=${BUILD_NUMBER} |
Leonardo Sandoval | 030e336 | 2021-06-17 11:38:25 -0500 | [diff] [blame] | 97 | TF_GERRIT_PROJECT=${GERRIT_PROJECT} |
| 98 | TF_GERRIT_BRANCH=${GERRIT_BRANCH} |
| 99 | TF_GERRIT_REFSPEC=${GERRIT_REFSPEC} |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 100 | SHARE_FOLDER=${SHARE_FOLDER} |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 101 | EOF |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 102 | - multijob: |
| 103 | condition: COMPLETED |
| 104 | name: Carry out level 1 tests |
| 105 | projects: |
| 106 | - kill-phase-on: NEVER |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 107 | name: tf-a-gerrit-tforg-l1 |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 108 | current-parameters: true |
| 109 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 110 | - multijob: |
| 111 | condition: COMPLETED |
| 112 | name: Build Trusted Firmware |
| 113 | projects: |
| 114 | - kill-phase-on: NEVER |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 115 | name: tf-a-ci-gateway |
Paul Sokolovsky | d255a1a | 2024-02-02 13:57:30 +0700 | [diff] [blame] | 116 | current-parameters: true |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 117 | predefined-parameters: | |
| 118 | TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno |
| 119 | TF_REFSPEC=$GERRIT_REFSPEC |
| 120 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 121 | - multijob: |
| 122 | condition: COMPLETED |
Manish Pandey | 3c8b670 | 2024-03-20 15:38:46 +0000 | [diff] [blame] | 123 | name: Run platform boot tests |
Manish Pandey | 253f88a | 2022-06-28 11:59:28 +0100 | [diff] [blame] | 124 | projects: |
| 125 | - kill-phase-on: NEVER |
| 126 | name: tf-a-ci-gateway |
| 127 | predefined-parameters: | |
Manish Pandey | 939c500 | 2024-03-22 14:06:21 +0000 | [diff] [blame] | 128 | TEST_GROUPS=tf-l2-boot-tests-arm-plats tf-l2-boot-tests-partner-boards |
Manish Pandey | 253f88a | 2022-06-28 11:59:28 +0100 | [diff] [blame] | 129 | TF_REFSPEC=$GERRIT_REFSPEC |
| 130 | property-file: env.param |
| 131 | - multijob: |
| 132 | condition: COMPLETED |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 133 | name: TFTF tests |
| 134 | projects: |
| 135 | - kill-phase-on: NEVER |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 136 | name: tf-a-ci-gateway |
Paul Sokolovsky | d255a1a | 2024-02-02 13:57:30 +0700 | [diff] [blame] | 137 | current-parameters: true |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 138 | predefined-parameters: | |
Leonardo Sandoval | 0b9ee85 | 2021-02-12 18:27:37 -0600 | [diff] [blame] | 139 | TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 140 | TF_REFSPEC=$GERRIT_REFSPEC |
| 141 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 142 | - multijob: |
| 143 | condition: COMPLETED |
| 144 | name: Boot up to the Linux shell prompt |
| 145 | projects: |
| 146 | - kill-phase-on: NEVER |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 147 | name: tf-a-ci-gateway |
Paul Sokolovsky | d255a1a | 2024-02-02 13:57:30 +0700 | [diff] [blame] | 148 | current-parameters: true |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 149 | predefined-parameters: | |
Manish Pandey | 3c8b670 | 2024-03-20 15:38:46 +0000 | [diff] [blame] | 150 | TEST_GROUPS=tf-l2-boot-tests-aarch32 tf-l2-boot-tests-bl2_el3 tf-l2-boot-tests-cortex tf-l2-boot-tests-juno tf-l2-boot-tests-latest tf-l2-boot-tests-misc tf-l2-boot-tests-rootfs tf-l2-boot-tests-spm-mm spm-l2-boot-tests |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 151 | TF_REFSPEC=$GERRIT_REFSPEC |
| 152 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 153 | - conditional-step: |
| 154 | condition-command: |- |
| 155 | [ "$NOMINATION_FILE" ] |
| 156 | condition-kind: shell |
| 157 | on-evaluation-failure: dont-run |
| 158 | steps: |
| 159 | - multijob: |
| 160 | condition: COMPLETED |
| 161 | name: Nominated tests |
| 162 | projects: |
| 163 | - kill-phase-on: NEVER |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 164 | name: tf-a-ci-gateway |
Paul Sokolovsky | d255a1a | 2024-02-02 13:57:30 +0700 | [diff] [blame] | 165 | current-parameters: true |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 166 | predefined-parameters: | |
| 167 | TEST_GROUPS=@$NOMINATION_FILE |
| 168 | TF_REFSPEC=$GERRIT_REFSPEC |
| 169 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 170 | triggers: |
| 171 | - gerrit: |
| 172 | server-name: review.trustedfirmware.org |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 173 | trigger-on: |
| 174 | - comment-added-event: |
| 175 | approval-category: "Allow-CI" |
| 176 | approval-value: 2 |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 177 | projects: |
| 178 | - project-compare-type: PLAIN |
Saheer Babu | fd52422 | 2025-01-21 23:42:41 +0000 | [diff] [blame] | 179 | project-pattern: next/TF-A/trusted-firmware-a |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 180 | branches: |
| 181 | - branch-compare-type: PLAIN |
Saheer Babu | fd52422 | 2025-01-21 23:42:41 +0000 | [diff] [blame] | 182 | branch-pattern: openci-migration |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 183 | override-votes: true |
Fathi Boudra | 0dcfdbe | 2020-12-14 10:16:12 +0100 | [diff] [blame] | 184 | gerrit-build-started-verified-value: 0 |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 185 | gerrit-build-successful-verified-value: 1 |
Arthur She | 06125a4 | 2021-10-19 22:58:21 -0700 | [diff] [blame] | 186 | gerrit-build-failed-verified-value: -1 |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 187 | gerrit-build-unstable-verified-value: -1 |
Fathi Boudra | 0dcfdbe | 2020-12-14 10:16:12 +0100 | [diff] [blame] | 188 | gerrit-build-notbuilt-verified-value: 0 |
| 189 | gerrit-build-started-codereview-value: 0 |
| 190 | gerrit-build-successful-codereview-value: 0 |
| 191 | gerrit-build-failed-codereview-value: 0 |
Arthur She | 06125a4 | 2021-10-19 22:58:21 -0700 | [diff] [blame] | 192 | gerrit-build-unstable-codereview-value: 0 |
Fathi Boudra | 0dcfdbe | 2020-12-14 10:16:12 +0100 | [diff] [blame] | 193 | gerrit-build-notbuilt-codereview-value: 0 |
| 194 | failure-message: 'OpenCI: build failed' |
| 195 | successful-message: 'OpenCI: build successful' |
| 196 | unstable-message: 'OpenCI: build unstable' |
| 197 | notbuilt-message: 'OpenCI: no builds executed' |
Fathi Boudra | 0dcfdbe | 2020-12-14 10:16:12 +0100 | [diff] [blame] | 198 | silent: false |
| 199 | silent-start: false |