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