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