-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy pathverify.pipeline.yml
More file actions
290 lines (270 loc) · 8.72 KB
/
Copy pathverify.pipeline.yml
File metadata and controls
290 lines (270 loc) · 8.72 KB
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
---
env:
# Use the Go module mirror and checksum database by default.
# See https://proxy.golang.org for details.
GOPROXY: "https://proxy.golang.org,direct"
GOSUMDB: "sum.golang.org"
expeditor:
cached_folders:
- vendor
defaults:
buildkite:
timeout_in_minutes: 90
steps:
#########################################################################
# Lint Tests
#########################################################################
- label: license-scout
command:
- .expeditor/license_scout.sh
expeditor:
executor:
docker:
environment:
- OCTOKIT_ACCESS_TOKEN
#########################################################################
# Component Tests
#########################################################################
# moving this test to chef-server-omnibus-config repo,
# - label: omnibus
# command:
# - /workdir/scripts/bk_tests/bk_install.sh
# - gem uninstall bundler -v '>= 2.0.1' -a
# - cd /workdir/omnibus; make install
# - make ci
# expeditor:
# executor:
# docker:
# image: "chefes/a1-buildkite"
# environment:
# - LUALIB=~/.luarocks/lib/lua/5.2
# - COMPONENT=omnibus
# - GITHUB_TOKEN
- label: chef-server-ctl
command:
- /workdir/scripts/bk_tests/bk_install.sh
- cd /workdir/src/chef-server-ctl; make install
- make ci
expeditor:
executor:
docker:
image: "chefes/a1-buildkite"
environment:
- COMPONENT=src/chef-server-ctl
- label: oc_erchef_unit
command:
- date
- /workdir/scripts/bk_tests/bk_install.sh
- date
- cd /workdir/src/oc_erchef; make install
- make ci_eunit
- date
expeditor:
executor:
docker:
image: "chefes/a1-buildkite"
environment:
- PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin
- PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl
- LUALIB=~/.luarocks/lib/lua/5.2
- ELIXIR_VERSION=1.4
- COMPONENT=src/oc_
- label: oc_erchef_ct
command:
- date
- /workdir/scripts/bk_tests/bk_install.sh
- date
- cd /workdir/src/oc_erchef; make install
- make ci_ct
- date
expeditor:
executor:
docker:
image: "chefes/a1-buildkite"
environment:
- PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin
- PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl
- LUALIB=~/.luarocks/lib/lua/5.2
- ELIXIR_VERSION=1.4
- COMPONENT=src/oc_erchef
- label: oc-id
command:
- /workdir/scripts/bk_tests/bk_install.sh
- cd /workdir/src/oc-id
- make install ci
expeditor:
executor:
docker:
image: "chefes/a1-buildkite"
environment:
- COMPONENT=src/oc-id
- label: oc_bifrost
command:
- /workdir/scripts/bk_tests/bk_install.sh
- cd /workdir/src/oc_bifrost; make install
- make ci
expeditor:
executor:
docker:
image: "chefes/a1-buildkite"
environment:
- PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin
- PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl
- LUALIB=~/.luarocks/lib/lua/5.2
- COMPONENT=src/oc_bifrost
- label: bookshelf
command:
- /workdir/scripts/bk_tests/bk_install.sh
- cd /workdir/src/bookshelf; make install
- make ci
expeditor:
executor:
docker:
image: "chefes/a1-buildkite"
environment:
- PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin
- PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl
- LUALIB=~/.luarocks/lib/lua/5.2
- COMPONENT=src/bookshelf
- label: With chef-zero
command:
- /workdir/scripts/bk_tests/bk_install.sh
- gem uninstall bundler -v '>= 2.0.1' -a
- cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile
- bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle
- cd /workdir/oc-chef-pedant
- bundle exec rake chef_zero_spec
expeditor:
executor:
docker:
image: "chefes/a1-buildkite"
environment:
- LUALIB=~/.luarocks/lib/lua/5.2
- USE_OMNIBUS_FILES=0
- PEDANT_OPTS="--skip-oc_id"
- BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile
- IS_AUTOMATE=false
- label: With ChefFS=1
command:
- /workdir/scripts/bk_tests/bk_install.sh
- gem install bundler -v 2.2.4
- gem uninstall bundler -v '> 2.2.4' -a
- cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile
- bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle
- cd /workdir/oc-chef-pedant
- bundle exec rake chef_zero_spec
expeditor:
executor:
docker:
image: "chefes/a1-buildkite"
environment:
- LUALIB=~/.luarocks/lib/lua/5.2
- USE_OMNIBUS_FILES=0
- PEDANT_OPTS="--skip-oc_id"
- CHEF_FS=1
- BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile
- IS_AUTOMATE=false
- label: automate_build
command:
- .expeditor/automate_build.sh
env:
ALLOW_LOCAL_PACKAGES: true
HAB_STUDIO_SUP: false
HAB_NONINTERACTIVE: true
GOPROXY: "https://proxy.golang.org,direct"
HAB_BLDR_CHANNEL: LTS-2024
HAB_FALLBACK_CHANNEL: "dev"
expeditor:
secrets:
HAB_STUDIO_SECRET_GITHUB_TOKEN:
account: github/chef
field: token
OPENSEARCH_ROOT_CA_PEM:
path: secret/a2/a2ha/opensearch
field: root-ca.pem
OPENSEARCH_ADMIN_PEM:
path: secret/a2/a2ha/opensearch
field: admin.pem
OPENSEARCH_ADMIN_KEY_PEM:
path: secret/a2/a2ha/opensearch
field: admin-key.pem
OPENSEARCH_NODE1_PEM:
path: secret/a2/a2ha/opensearch
field: node1.pem
OPENSEARCH_NODE1_KEY_PEM:
path: secret/a2/a2ha/opensearch
field: node1-key.pem
executor:
linux:
privileged: true
# waiting for the automate build to finish before running the chef server tests
- wait
- label: "chef server"
command:
- .expeditor/chef_server.sh
env:
IS_AUTOMATE: true
timeout_in_minutes: 30 # longer timeout for chef-server
soft_fail: true
expeditor:
secrets:
A2_LICENSE:
path: secret/a2/license
field: license
A2_EXPIRED_LICENSE:
path: secret/a2/license
field: expLicense
executor:
linux:
privileged: true
environment:
- IS_AUTOMATE=true
- label: "chef server only"
command:
- .expeditor/chef_server_only.sh
env:
IS_AUTOMATE: true
timeout_in_minutes: 20
soft_fail: true
expeditor:
secrets:
A2_LICENSE:
path: secret/a2/license
field: license
A2_EXPIRED_LICENSE:
path: secret/a2/license
field: expLicense
executor:
linux:
privileged: true
environment:
- IS_AUTOMATE=true
- label: "ha chef server"
command:
- .expeditor/ha_chef_server.sh
env:
IS_AUTOMATE: true
DOCKER_CONFIG: /var/lib/buildkite-agent/.docker
HAB_BLDR_CHANNEL: "stable"
#HAB_STUDIO_SECRET_HAB_BLDR_CHANNEL: "curl8"
#HAB_FALLBACK_CHANNEL: "stable"
HAB_STUDIO_SECRET_HAB_FALLBACK_CHANNEL: "stable"
GOPROXY: "https://proxy.golang.org,direct"
GOSUMDB: "sum.golang.org"
PGGSSENCMODE: "disable"
timeout_in_minutes: 35
soft_fail: true
expeditor:
secrets:
A2_LICENSE:
path: secret/a2/license
field: license
A2_EXPIRED_LICENSE:
path: secret/a2/license
field: expLicense
executor:
linux:
privileged: true
single-use: true
environment:
- IS_AUTOMATE=true