aboutsummaryrefslogtreecommitdiff
path: root/tcwg_bmk_ci.yaml.in
blob: 341a0c59a876def9b21232f2ced18ebd544f233c (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
# Beware: git branch names need the 'refs/heads/' prefix, while tags need 'refs/tags/'
- project:
    name: tcwg_bmk_ci_#{TOOLCHAIN}
    binutils_url: git://sourceware.org/git/binutils-gdb.git
    gcc_url: https://github.com/gcc-mirror/gcc.git
#if !TOOLCHAIN_gnu_eabi
    linux_url: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
    linux_branch: refs/heads/linux-rolling-stable
    glibc_url: git://sourceware.org/git/glibc.git
#else
    newlib_url: git://sourceware.org/git/newlib-cygwin.git
#endif
#if TOOLCHAIN_llvm
    llvm_url: https://github.com/llvm/llvm-project.git
#endif
    hw:
#if TOOLCHAIN_gnu_eabi
      - stm32:
          target: arm_eabi
#else
      - apm:
          target: arm
      - apm:
          target: aarch64
      - tk1:
          target: arm
      - tx1:
          target: aarch64
#endif
    toolchain_name: #{TOOLCHAIN}
    components: #{COMPONENTS}
    bmk:
#if TOOLCHAIN_gnu_eabi
      - coremark
#else
      - spec2k6
#endif
    cflags:
      - Os
      - Os_LTO
      - O2
      - O2_LTO
      - O3
      - O3_LTO
#if TOOLCHAIN_llvm
      - Oz
      - Oz_LTO
#else
      - O3_VECT
      - O3_LTO_VECT
#endif
    jobs:
      - 'tcwg_bmk_ci_#{TOOLCHAIN}-master'
      - 'tcwg_bmk_ci_#{TOOLCHAIN}-release'
    exclude:
      - hw: apm
        cflags: O2
      - hw: apm
        cflags: O2_LTO
      - hw: apm
        cflags: O3
      - hw: apm
        cflags: O3_LTO
      - hw: apm
        cflags: O3_VECT
      - hw: apm
        cflags: O3_LTO_VECT
      - hw: tk1
        cflags: Os
      - hw: tk1
        cflags: Os_LTO
      - hw: tk1
        cflags: Oz
      - hw: tk1
        cflags: Oz_LTO
      - hw: tx1
        cflags: Os
      - hw: tx1
        cflags: Os_LTO
      - hw: tx1
        cflags: Oz
      - hw: tx1
        cflags: Oz_LTO

- job-group:
    name: tcwg_bmk_ci_#{TOOLCHAIN}-master
    toolchain_ver: master
    binutils_branch: refs/heads/master
    gcc_branch: refs/heads/master
#if !TOOLCHAIN_gnu_eabi
    glibc_branch: refs/heads/master
#else
    newlib_branch: refs/heads/master
#endif
#if TOOLCHAIN_llvm
    llvm_branch: refs/heads/main
#endif
    distro: lts
    cron_schedule: 'H H H/3 * *'
    jobs:
      - 'tcwg_bmk_ci_#{TOOLCHAIN}-build-tcwg_bmk_{hw}-#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}'
      - 'tcwg_bmk_ci_#{TOOLCHAIN}-bisect-tcwg_bmk_{hw}-#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}'

- job-group:
    name: tcwg_bmk_ci_#{TOOLCHAIN}-release
    toolchain_ver: release
    binutils_branch: refs/heads/binutils-2_37-branch
    gcc_branch: refs/heads/releases/gcc-11
#if !TOOLCHAIN_gnu_eabi
    glibc_branch: refs/heads/release/2.34/master
#else
    newlib_branch: refs/heads/master
#endif
#if TOOLCHAIN_llvm
    llvm_branch: refs/heads/release/13.x
#endif
    distro: lts_1
    cron_schedule: 'H H H/6 * *'
    jobs:
      - 'tcwg_bmk_ci_#{TOOLCHAIN}-build-tcwg_bmk_{hw}-#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}'
      - 'tcwg_bmk_ci_#{TOOLCHAIN}-bisect-tcwg_bmk_{hw}-#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}'

- view:
    name: tcwg_bmk_ci_#{TOOLCHAIN}
    view-type: list
    regex: 'tcwg_bmk_ci_#{TOOLCHAIN}-build-.*'

#include tcwg/round-robin.yaml.inc

- job-template:
    name: tcwg_bmk_ci_#{TOOLCHAIN}-build-tcwg_bmk_{hw}-#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}
    project-type: freestyle
    defaults: global
    properties:
      - default-properties
      - build-blocker:
          blocking-jobs:
            - "tcwg_bmk_ci_#{TOOLCHAIN}-bisect-tcwg_bmk_{hw}-#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}"
          queue-scanning: 'ALL'
    parameters:
      - build-parameters:
          ci_project: 'tcwg_bmk_#{TOOLCHAIN}_{hw}'
          ci_config: '#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}'
          default_git: 'default'
          distro: '{distro}'
    disabled: false
#if TOOLCHAIN_gnu_eabi
    node: tcwg-x86_64-build
#else
    node: tcwg-x86_64-build_bmk
#endif
    concurrent: false
    display-name: 'TCWG Build tcwg_bmk_{hw}/#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}'
    workspace: workspace/tcwg_bmk_$EXECUTOR_NUMBER
    scm:
      - build-scms:
          binutils_url: '{binutils_url}'
          binutils_branch: '{binutils_branch}'
          gcc_url: '{gcc_url}'
          gcc_branch: '{gcc_branch}'
#if !TOOLCHAIN_gnu_eabi
          linux_url: '{linux_url}'
          linux_branch: '{linux_branch}'
          glibc_url: '{glibc_url}'
          glibc_branch: '{glibc_branch}'
#else
          newlib_url: '{newlib_url}'
          newlib_branch: '{newlib_branch}'
#endif
#if TOOLCHAIN_llvm
          llvm_url: '{llvm_url}'
          llvm_branch: '{llvm_branch}'
#endif
    triggers:
      - pollscm:
          cron: '{cron_schedule}'
    wrappers:
      - build-wrappers:
          timeout: 600
    builders:
      - run-build:
          build_script: 'tcwg_bmk-build.sh'
          components: '{components}'
          rr_project: 'tcwg_bmk_ci_#{TOOLCHAIN}'
          job_suffix: '-tcwg_bmk_{hw}-#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}'
    publishers:
        - build-publishers

- job-template:
    name: tcwg_bmk_ci_#{TOOLCHAIN}-bisect-tcwg_bmk_{hw}-#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}
    project-type: freestyle
    defaults: global
    properties:
      - default-properties
      - build-blocker:
          # Run at most 1 bisect job for all configurations.
          # Bisect jobs can easily run for 5+ hours, and a few of them
          # can hog the entire TCWG build farm for a long time.  Since
          # same regression tends to appear in multiple configurations,
          # run bisections for all configurations in-order.
          blocking-jobs:
            - "tcwg_bmk_ci_#{TOOLCHAIN}-bisect-tcwg_bmk_{hw}-#{TOOLCHAIN}-.*"
          queue-scanning: 'BUILDABLE'
    parameters:
      - bisect-parameters:
          ci_project: 'tcwg_bmk_#{TOOLCHAIN}_{hw}'
          ci_config: '#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}'
          distro: '{distro}'
    disabled: false
#if TOOLCHAIN_gnu_eabi
    node: tcwg-x86_64-dev-02
#else
    node: tcwg-x86_64-build_bmk
#endif
    concurrent: false
    display-name: 'TCWG Bisect tcwg_bmk_{hw}/#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}'
    workspace: workspace/tcwg_bmk_$EXECUTOR_NUMBER
    scm:
      - jenkins-scripts
      - bmk-scripts
    wrappers:
      - bisect-wrappers:
          timeout: 2880
    builders:
      - run-bisect:
          build_script: 'tcwg_bmk-build.sh'
          rr_project: 'tcwg_bmk_ci_#{TOOLCHAIN}'
          job_suffix: '-tcwg_bmk_{hw}-#{TOOLCHAIN}-{toolchain_ver}-{target}-{bmk}-{cflags}'
    publishers:
        - bisect-publishers