2
2
name : " beats-metricbeat"
3
3
4
4
env :
5
- AWS_ARM_INSTANCE_TYPE : " t4g.xlarge"
5
+ AWS_ARM_INSTANCE_TYPE : " m6g.xlarge"
6
+ AWS_IMAGE_UBUNTU_ARM_64 : " platform-ingest-beats-ubuntu-2204-aarch64"
6
7
7
8
GCP_DEFAULT_MACHINE_TYPE : " c2d-highcpu-8"
8
9
GCP_HI_PERF_MACHINE_TYPE : " c2d-highcpu-16"
9
10
GCP_WIN_MACHINE_TYPE : " n2-standard-8"
10
11
11
12
IMAGE_MACOS_ARM : " generic-13-ventura-arm"
12
13
IMAGE_MACOS_X86_64 : " generic-13-ventura-x64"
13
- IMAGE_UBUNTU_ARM_64 : " platform-ingest-beats-ubuntu-2204-aarch64"
14
14
IMAGE_UBUNTU_X86_64 : " family/platform-ingest-beats-ubuntu-2204"
15
15
IMAGE_WIN_10 : " family/platform-ingest-beats-windows-10"
16
16
IMAGE_WIN_11 : " family/platform-ingest-beats-windows-11"
32
32
steps :
33
33
- group : " Metricbeat Mandatory Tests"
34
34
key : " metricbeat-mandatory-tests"
35
+
35
36
steps :
36
- - label : " :linux: Ubuntu Unit Tests"
37
+ - label : " :ubuntu: Metricbeat Unit Tests"
37
38
key : " mandatory-linux-unit-test"
38
- command : " cd metricbeat && mage build unitTest"
39
+ command : |
40
+ cd metricbeat
41
+ mage build unitTest
39
42
retry :
40
43
automatic :
41
44
- limit : 3
@@ -48,27 +51,20 @@ steps:
48
51
- " metricbeat/build/*.json"
49
52
notify :
50
53
- github_commit_status :
51
- context : " metricbeat: Ubuntu Unit Tests"
54
+ context : " metricbeat: Linux x86_64 Unit Tests"
52
55
53
- - label : " :go: Go Integration Tests"
56
+ - label : " :ubuntu: Metricbeat Go Integration Tests"
54
57
key : " mandatory-int-test"
55
58
command : |
56
59
set -euo pipefail
57
60
# defines the MODULE env var based on what's changed in a PR
58
61
source .buildkite/scripts/changesets.sh
59
62
defineModuleFromTheChangeSet metricbeat
60
- echo "~~~ Running tests"
61
-
62
- # TODO move this section to base image / pre-command hook
63
- echo "~~~ Installing kind"
64
- asdf plugin add kind
65
- asdf install kind $ASDF_KIND_VERSION
66
-
67
- .buildkite/deploy/kubernetes/scripts/kind-setup.sh
68
63
69
64
echo "~~~ Running tests"
70
65
export KUBECONFIG="$$PWD/kubecfg"
71
- cd metricbeat && mage goIntegTest
66
+ cd metricbeat
67
+ mage goIntegTest
72
68
retry :
73
69
automatic :
74
70
- limit : 3
@@ -83,25 +79,18 @@ steps:
83
79
- github_commit_status :
84
80
context : " metricbeat: Go Integration Tests"
85
81
86
- - label : " :python: Python Integration Tests"
82
+ - label : " :ubuntu: Metricbeat Python Integration Tests"
87
83
key : " mandatory-python-int-test"
88
84
command : |
89
85
set -euo pipefail
90
86
# defines the MODULE env var based on what's changed in a PR
91
87
source .buildkite/scripts/changesets.sh
92
88
defineModuleFromTheChangeSet metricbeat
93
- echo "~~~ Running tests"
94
-
95
- # TODO move this section to base image / pre-command hook
96
- echo "~~~ Installing kind"
97
- asdf plugin add kind
98
- asdf install kind $ASDF_KIND_VERSION
99
-
100
- .buildkite/deploy/kubernetes/scripts/kind-setup.sh
101
89
102
90
echo "~~~ Running tests"
103
91
export KUBECONFIG="$$PWD/kubecfg"
104
- cd metricbeat && mage pythonIntegTest
92
+ cd metricbeat
93
+ mage pythonIntegTest
105
94
retry :
106
95
automatic :
107
96
- limit : 3
@@ -116,7 +105,7 @@ steps:
116
105
- github_commit_status :
117
106
context : " metricbeat: Python Integration Tests"
118
107
119
- - label : " :negative_squared_cross_mark: Cross compile "
108
+ - label : " :ubuntu: Metricbeat Crosscompile "
120
109
key : " mandatory-cross-compile"
121
110
command : " make -C metricbeat crosscompile"
122
111
retry :
@@ -131,9 +120,9 @@ steps:
131
120
- " metricbeat/build/*.json"
132
121
notify :
133
122
- github_commit_status :
134
- context : " metricbeat: Cross compile "
123
+ context : " metricbeat: Crosscompile "
135
124
136
- - label : " :windows: Windows 2016 Unit Tests"
125
+ - label : " :windows: Metricbeat Win- 2016 Unit Tests"
137
126
command : |
138
127
Set-Location -Path metricbeat
139
128
mage build unitTest
@@ -152,9 +141,9 @@ steps:
152
141
- " metricbeat/build/*.json"
153
142
notify :
154
143
- github_commit_status :
155
- context : " metricbeat: Windows 2016 Unit Tests"
144
+ context : " metricbeat: Win- 2016 Unit Tests"
156
145
157
- - label : " :windows: Windows 2022 Unit Tests"
146
+ - label : " :windows: Metricbeat Win- 2022 Unit Tests"
158
147
command : |
159
148
Set-Location -Path metricbeat
160
149
mage build unitTest
@@ -173,13 +162,14 @@ steps:
173
162
- " metricbeat/build/*.json"
174
163
notify :
175
164
- github_commit_status :
176
- context : " metricbeat: Windows 2022 Unit Tests"
165
+ context : " metricbeat: Win- 2022 Unit Tests"
177
166
178
167
- group : " Metricbeat Extended Windows Tests"
179
168
key : " metricbeat-extended-win-tests"
180
169
if : build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*[Ww]indows.*/
170
+
181
171
steps :
182
- - label : " :windows: Windows 10 Unit Tests"
172
+ - label : " :windows: Metricbeat Win 10 Unit Tests"
183
173
command : |
184
174
Set-Location -Path metricbeat
185
175
mage build unitTest
@@ -198,9 +188,9 @@ steps:
198
188
- " metricbeat/build/*.json"
199
189
notify :
200
190
- github_commit_status :
201
- context : " metricbeat: Extended Windows 10 Unit Tests"
191
+ context : " metricbeat: Win 10 Unit Tests"
202
192
203
- - label : " :windows: Windows 11 Unit Tests"
193
+ - label : " :windows: Metricbeat Win 11 Unit Tests"
204
194
command : |
205
195
Set-Location -Path metricbeat
206
196
mage build unitTest
@@ -219,9 +209,9 @@ steps:
219
209
- " metricbeat/build/*.json"
220
210
notify :
221
211
- github_commit_status :
222
- context : " metricbeat: Extended Windows 11 Unit Tests"
212
+ context : " metricbeat: Win 11 Unit Tests"
223
213
224
- - label : " :windows: Windows 2019 Unit Tests"
214
+ - label : " :windows: Metricbeat Win- 2019 Unit Tests"
225
215
command : |
226
216
Set-Location -Path metricbeat
227
217
mage build unitTest
@@ -240,18 +230,20 @@ steps:
240
230
- " metricbeat/build/*.json"
241
231
notify :
242
232
- github_commit_status :
243
- context : " metricbeat: Extended Windows 2019 Unit Tests"
233
+ context : " metricbeat: Win- 2019 Unit Tests"
244
234
245
- - group : " Metricbeat Extended MacOS Tests"
235
+ - group : " Metricbeat Extended macOS Tests"
246
236
key : " metricbeat-extended-macos-tests"
247
237
if : build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
238
+
248
239
steps :
249
- - label : " :mac: MacOS x64_64 Unit Tests"
240
+ - label : " :mac: Metricbeat macOS x64_64 Unit Tests"
250
241
key : " extended-macos-x64-64-unit-tests"
251
242
command : |
252
243
set -euo pipefail
253
244
source .buildkite/scripts/install_macos_tools.sh
254
- cd metricbeat && mage build unitTest
245
+ cd metricbeat
246
+ mage build unitTest
255
247
retry :
256
248
automatic :
257
249
- limit : 3
@@ -263,15 +255,17 @@ steps:
263
255
- " metricbeat/build/*.json"
264
256
notify :
265
257
- github_commit_status :
266
- context : " metricbeat: Extended MacOS x86_64 Unit Tests"
258
+ context : " metricbeat: macOS x86_64 Unit Tests"
267
259
268
- - label : " :mac: MacOS arm64 Unit Tests"
260
+ - label : " :mac: Metricbeat macOS arm64 Unit Tests"
269
261
key : " extended-macos-arm64-unit-tests"
270
- skip : " due to https://github.com/elastic/beats/issues/33035"
262
+ skip : " Skipping due to elastic/beats#33035"
263
+ # https://github.com/elastic/beats/issues/33035
271
264
command : |
272
265
set -euo pipefail
273
266
source .buildkite/scripts/install_macos_tools.sh
274
- cd metricbeat && mage build unitTest
267
+ cd metricbeat
268
+ mage build unitTest
275
269
retry :
276
270
automatic :
277
271
- limit : 3
@@ -283,7 +277,7 @@ steps:
283
277
- " metricbeat/build/*.json"
284
278
notify :
285
279
- github_commit_status :
286
- context : " metricbeat: Extended MacOS arm64 Unit Tests"
280
+ context : " metricbeat: macOS arm64 Unit Tests"
287
281
288
282
- wait : ~
289
283
# with PRs, we want to run packaging only if mandatory tests succeed
@@ -295,9 +289,11 @@ steps:
295
289
- group : " Metricbeat Packaging"
296
290
key : " metricbeat-packaging"
297
291
steps :
298
- - label : " :linux: Packaging Linux"
292
+ - label : " :ubuntu: Metricbeat Packaging Linux"
299
293
key : " packaging-linux"
300
- command : " cd metricbeat && mage package"
294
+ command : |
295
+ cd metricbeat
296
+ mage package
301
297
retry :
302
298
automatic :
303
299
- limit : 3
@@ -314,20 +310,22 @@ steps:
314
310
- github_commit_status :
315
311
context : " metricbeat: Packaging Linux"
316
312
317
- - label : " :linux: Packaging ARM "
313
+ - label : " :ubuntu: Metricbeat Packaging Linux arm64 "
318
314
key : " packaging-arm"
319
- command : " cd metricbeat && mage package"
315
+ command : |
316
+ cd metricbeat
317
+ mage package
320
318
retry :
321
319
automatic :
322
320
- limit : 3
323
321
timeout_in_minutes : 20
324
322
agents :
325
323
provider : " aws"
326
- imagePrefix : " ${IMAGE_UBUNTU_ARM_64 }"
324
+ imagePrefix : " ${AWS_IMAGE_UBUNTU_ARM_64 }"
327
325
instanceType : " ${AWS_ARM_INSTANCE_TYPE}"
328
326
env :
329
327
PLATFORMS : " linux/arm64"
330
328
PACKAGES : " docker"
331
329
notify :
332
330
- github_commit_status :
333
- context : " metricbeat: Packaging Linux ARM "
331
+ context : " metricbeat: Packaging Linux arm64 "
0 commit comments