aboutsummaryrefslogtreecommitdiff
path: root/tcwg_gnu.yaml.in
blob: b5b39d90789c426999ee6a44c7d42456c011f0e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
# Beware: git branch names need the 'refs/heads/' prefix, while tags need 'refs/tags/'
- project:
    name: #{RR}
    type_of_test: ""
    timeout_build: 1000
#if PRECOMMIT_TRIGGER_yes
    # Trigger configuration that have precommit testing every 6 hours
    # to test incoming patches in a timely manner.
    cron_master: 'H H/6 * * *'
#elif RR_tcwg_gnu_embed
    # We have 9 ci_configs for tcwg_gnu_embed_* projects, so trigger these
    # once in 3 days.
    cron_master: 'H H H/3 * *'
#else
    # By default, run each CI loop daily.
    cron_master: 'H H * * *'
#endif
    docker_security: ''
#if RR_tcwg_gcc
    ci_project:
      - tcwg_gcc_build
      - tcwg_gcc_check
#elif RR_tcwg_bootstrap
# We put tcwg_bootstrap_* jobs separately from tcwg_gcc_* jobs to avoid
# slowing down [quick] tcwg_gcc_* when bisecting bootstrap regressions.
# If a bootstrap job catches a regression first, it will block bisects
# of all configurations in the same ci_project.  This would prevent
# tcwg_gcc_* jobs from bisecting same regression much quicker.
    ci_project:
      - tcwg_bootstrap_build:
          type_of_test: -bootstrap
      - tcwg_bootstrap_build:
          type_of_test: -bootstrap_lto
      - tcwg_bootstrap_build:
          type_of_test: -bootstrap_O1
      - tcwg_bootstrap_build:
          type_of_test: -bootstrap_O3
      - tcwg_bootstrap_build:
          type_of_test: -bootstrap_debug
      - tcwg_bootstrap_build:
          type_of_test: -bootstrap_profiled
      - tcwg_bootstrap_build:
          type_of_test: -bootstrap_profiled_lto
      - tcwg_bootstrap_build:
          type_of_test: -bootstrap_profiled_lto_lean
      - tcwg_bootstrap_build:
          type_of_test: -bootstrap_ubsan
      - tcwg_bootstrap_check:
          type_of_test: -check_bootstrap
      - tcwg_bootstrap_check:
          type_of_test: -check_bootstrap_lto
#elif RR_tcwg_binutils
    ci_project:
      - tcwg_binutils_build
      - tcwg_binutils_check
#elif RR_tcwg_glibc
    ci_project:
      - tcwg_glibc_build
      - tcwg_glibc_check:
          # The SYS_ADMIN is required to allow the glibc container tests use mount, chroot, and ptrace syscalls.
          # Also, docker default apprmor filter disables the mount sycall, so disable it as well.
          # See https://linaro.atlassian.net/browse/GNU-836 for more details.
          docker_security: '--cap-add=SYS_ADMIN --security-opt apparmor=unconfined'
#elif RR_tcwg_gdb
    ci_project:
      - tcwg_gdb_build
      - tcwg_gdb_check:
          timeout_build: 2000
#elif RR_tcwg_gnu_cross
    ci_project:
      - tcwg_gnu_cross_build
      - tcwg_gnu_cross_check_binutils
      - tcwg_gnu_cross_check_gcc
#elif RR_tcwg_gnu_embed
    ci_project:
      - tcwg_gnu_embed_build
      - tcwg_gnu_embed_check_binutils
      - tcwg_gnu_embed_check_gcc
#elif RR_tcwg_gnu_mingw
    ci_project:
      - tcwg_gnu_mingw_build
      - tcwg_gnu_mingw_check_binutils
      - tcwg_gnu_mingw_check_gcc
#elif RR_tcwg_gnu_native
    ci_project:
      - tcwg_gnu_native_build
      - tcwg_gnu_native_check_binutils
      - tcwg_gnu_native_check_gcc
      - tcwg_gnu_native_check_glibc:
          # See tcwg_glibc_check above.
          docker_security: '--cap-add=SYS_ADMIN --security-opt apparmor=unconfined'
      - tcwg_gnu_native_check_gdb:
          timeout_build: 2000
      - tcwg_gnu_native_fast_check_gcc
      - tcwg_gnu_native_fast_check_gdb
#endif
#if COMPONENTS_binutils
    binutils_url: git://sourceware.org/git/binutils-gdb.git
#endif
#if COMPONENTS_gcc
# if RR_tcwg_gnu_mingw
    gcc_url: https://github.com/Windows-on-ARM-Experiments/gcc-woarm64.git
# else
    gcc_url: https://github.com/gcc-mirror/gcc.git
# endif
#endif
#if COMPONENTS_glibc
    glibc_url: git://sourceware.org/git/glibc.git
#endif
#if COMPONENTS_gdb
    gdb_url: git://sourceware.org/git/binutils-gdb.git
#endif
#if COMPONENTS_mingw
    mingw_url: https://git.code.sf.net/p/mingw-w64/mingw-w64.git
#endif
#if COMPONENTS_newlib
    newlib_url: git://sourceware.org/git/newlib-cygwin.git
#endif
#if COMPONENTS_qemu
    qemu_url: https://gitlab.com/qemu-project/qemu.git
#endif
    target:
#if RR_tcwg_gnu_cross || RR_tcwg_gnu_embed
# if RR_tcwg_gnu_cross
      - aarch64
      - arm
# elif RR_tcwg_gnu_embed
      - arm_eabi
      - arm_v7a_softfp_eabi
      - thumb_v8a_hard_eabi
      - thumb_m0_eabi
      - thumb_m0_soft_eabi
      - thumb_m3_eabi
      - thumb_m3_softfp_eabi
      - thumb_m7_eabi
      - thumb_m7_hard_eabi
      - thumb_m23_eabi
      - thumb_m23_soft_eabi
      - thumb_m33_eabi
      - thumb_m33_hard_eabi
      - thumb_m55_hard_eabi
# endif
    node: tcwg-build && tcwg-x86_64
#elif RR_tcwg_gnu_mingw
      - woa64:
          node: tcwg-wsl
#else
      - aarch64:
          node: tcwg-build && tcwg-armv8_64
          docker_arch: arm64
      - arm:
          node: tcwg-build && tcwg-armv8_32
          docker_arch: armhf
#endif
    jobs:
      - #{RR}-master

- job-group:
    name: #{RR}-master
    toolchain_ver: master
    cron: '{cron_master}'
#if COMPONENTS_binutils
    binutils_branch: refs/heads/master
#endif
#if COMPONENTS_gcc
# if RR_tcwg_gnu_mingw
    gcc_branch: refs/heads/aarch64-mingw32-baseline
# else
    gcc_branch: refs/heads/master
# endif
#endif
#if COMPONENTS_linux
    linux_url: https://git.linaro.org/kernel-org/linux.git
    linux_branch: refs/heads/master
#endif
#if COMPONENTS_glibc
    glibc_branch: refs/heads/master
#endif
#if COMPONENTS_gdb
    gdb_branch: refs/heads/master
#endif
#if COMPONENTS_mingw
    mingw_branch: refs/heads/master
#endif
#if COMPONENTS_newlib
    newlib_branch: refs/heads/master
#endif
#if COMPONENTS_qemu
    qemu_branch: refs/heads/master
#endif
    distro: default
    jobs:
      - '{ci_project}--{toolchain_ver}-{target}{type_of_test}-build'
#if PRECOMMIT_ENABLE_yes
      - '{ci_project}--{toolchain_ver}-{target}{type_of_test}-precommit'
#endif
      - '{ci_project}--{toolchain_ver}-{target}{type_of_test}-bisect'
    ci_config: '{toolchain_ver}-{target}{type_of_test}'

#include tcwg/round-robin.yaml.inc

- job-template:
    name: '{ci_project}--{toolchain_ver}-{target}{type_of_test}-build'
    project-type: freestyle
    defaults: global
    properties:
      - build-properties:
          ci_project: '{ci_project}'
          ci_config: '{ci_config}'
    parameters:
      - build-parameters:
          default_git: 'default'
          distro: '{distro}'
    disabled: false
    node: '{node}'
    concurrent: false
    display-name: 'TCWG Build {ci_project}/{ci_config}'
    workspace: workspace/tcwg_gnu_$EXECUTOR_NUMBER
    scm:
      - build-scms:
#if COMPONENTS_binutils
          binutils_url: '{binutils_url}'
          binutils_branch: '{binutils_branch}'
#endif
#if COMPONENTS_gcc
          gcc_url: '{gcc_url}'
          gcc_branch: '{gcc_branch}'
#endif
#if COMPONENTS_linux
          linux_url: '{linux_url}'
          linux_branch: '{linux_branch}'
#endif
#if COMPONENTS_glibc
          glibc_url: '{glibc_url}'
          glibc_branch: '{glibc_branch}'
#endif
#if COMPONENTS_gdb
          gdb_url: '{gdb_url}'
          gdb_branch: '{gdb_branch}'
#endif
#if COMPONENTS_mingw
          mingw_url: '{mingw_url}'
          mingw_branch: '{mingw_branch}'
#endif
#if COMPONENTS_newlib
          newlib_url: '{newlib_url}'
          newlib_branch: '{newlib_branch}'
#endif
#if COMPONENTS_qemu
          qemu_url: '{qemu_url}'
          qemu_branch: '{qemu_branch}'
#endif
    triggers:
#if PRECOMMIT_TRIGGER_yes
      - timed: '{cron}'
#else
      - pollscm:
          cron: '{cron}'
#endif
    wrappers:
      - build-wrappers:
          timeout: '{timeout_build}'
    builders:
      - run-build:
          ci_project: '{ci_project}'
          ci_config: '{ci_config}'
          build_script: 'tcwg_gnu-build.sh'
#if RR_tcwg_gnu_native || RR_tcwg_gcc || RR_tcwg_bootstrap || RR_tcwg_binutils || RR_tcwg_glibc || RR_tcwg_gdb
          docker_arch: '{docker_arch}'
#endif
          docker_security: '{docker_security}'
    publishers:
      - build-publishers:
          email_on_failure: false
          email_on_success: true

#if PRECOMMIT_ENABLE_yes
- job-template:
    name: '{ci_project}--{toolchain_ver}-{target}{type_of_test}-precommit'
    project-type: freestyle
    defaults: global
    properties:
      - precommit-properties:
          ci_project: '{ci_project}'
          ci_config: '{ci_config}'
    parameters:
      - precommit-parameters:
          default_git: 'baseline'
          distro: '{distro}'
    disabled: false
    node: '{node}'
    concurrent: true
    display-name: 'TCWG Precommit {ci_project}/{ci_config}'
    workspace: workspace/tcwg_gnu_$EXECUTOR_NUMBER
    scm:
      - jenkins-scripts
    wrappers:
      - build-wrappers:
          timeout: 300
    builders:
      - run-precommit:
          ci_project: '{ci_project}'
          ci_config: '{ci_config}'
          build_script: 'tcwg_gnu-build.sh'
#if RR_tcwg_gnu_native || RR_tcwg_gcc || RR_tcwg_bootstrap || RR_tcwg_binutils || RR_tcwg_glibc || RR_tcwg_gdb
          docker_arch: '{docker_arch}'
#endif
          docker_security: '{docker_security}'
    publishers:
      - build-publishers:
          email_on_failure: true
          email_on_success: false
#endif

- job-template:
    name: '{ci_project}--{toolchain_ver}-{target}{type_of_test}-bisect'
    project-type: freestyle
    defaults: global
    properties:
      - bisect-properties:
          ci_project: '{ci_project}'
          ci_config: '{ci_config}'
    parameters:
      - bisect-parameters:
          distro: '{distro}'
    disabled: false
    node: '{node}'
    concurrent: false
    display-name: 'TCWG Bisect {ci_project}/{ci_config}'
    workspace: workspace/tcwg_gnu_$EXECUTOR_NUMBER
    scm:
      - jenkins-scripts
    wrappers:
      - bisect-wrappers:
          timeout: 6000
    builders:
      - run-bisect:
          ci_project: '{ci_project}'
          ci_config: '{ci_config}'
          build_script: 'tcwg_gnu-build.sh'
#if RR_tcwg_gnu_native || RR_tcwg_gcc || RR_tcwg_bootstrap || RR_tcwg_binutils || RR_tcwg_glibc || RR_tcwg_gdb
          docker_arch: '{docker_arch}'
#endif
          docker_security: '{docker_security}'
    publishers:
      - bisect-publishers