Skip to content

Commit 5aa42eb

Browse files
committed
Merge branch 'main' of github.com:elastic/beats into queue-byte-limits
2 parents 91e4534 + 090ec6b commit 5aa42eb

File tree

170 files changed

+5386
-2911
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+5386
-2911
lines changed

.buildkite/auditbeat/auditbeat-pipeline.yml

+27
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,33 @@ env:
2727
TEST_COVERAGE: "true"
2828

2929
steps:
30+
- group: "Auditbeat Check/Update"
31+
key: "auditbeat-check-update"
32+
33+
steps:
34+
- label: "Run check/update"
35+
command: |
36+
make -C auditbeat check update
37+
make check-no-changes
38+
retry:
39+
automatic:
40+
- limit: 3
41+
agents:
42+
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latest"
43+
cpu: "4000m"
44+
memory: "8Gi"
45+
useCustomGlobalHooks: true
46+
notify:
47+
- github_commit_status:
48+
context: "auditbeat: check/update"
49+
50+
- wait: ~
51+
# with PRs, we want to run mandatory tests only if check/update step succeed
52+
# for other cases, e.g. merge commits, we want to run mundatory test (and publish) independently of other tests
53+
# this allows building DRA artifacts even if there is flakiness in check/update step
54+
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
55+
depends_on: "auditbeat-check-update"
56+
3057
- group: "Auditbeat Mandatory Testing"
3158
key: "auditbeat-mandatory-tests"
3259

.buildkite/filebeat/filebeat-pipeline.yml

+26
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,32 @@ env:
2727
TEST_COVERAGE: "true"
2828

2929
steps:
30+
- group: "Filebeat Check/Update"
31+
key: "filebeat-check-update"
32+
steps:
33+
- label: "Run check/update"
34+
command: |
35+
make -C filebeat check update
36+
make check-no-changes
37+
retry:
38+
automatic:
39+
- limit: 3
40+
agents:
41+
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:0.3"
42+
cpu: "4000m"
43+
memory: "8Gi"
44+
useCustomGlobalHooks: true
45+
notify:
46+
- github_commit_status:
47+
context: "filebeat: check/update"
48+
49+
- wait: ~
50+
# with PRs, we want to run mandatory tests only if check/update step succeed
51+
# for other cases, e.g. merge commits, we want to run mundatory test (and publish) independently of other tests
52+
# this allows building DRA artifacts even if there is flakiness in check/update step
53+
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
54+
depends_on: "filebeat-check-update"
55+
3056
- group: "Filebeat Mandatory Tests"
3157
key: "filebeat-mandatory-tests"
3258
steps:

.buildkite/libbeat/pipeline.libbeat.yml

+26
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,32 @@ env:
1616
TEST_COVERAGE: "true"
1717

1818
steps:
19+
- group: "libbeat Check/Update"
20+
key: "libbeat-check-update"
21+
steps:
22+
- label: "Run check/update"
23+
command: |
24+
make -C libbeat check update
25+
make check-no-changes
26+
retry:
27+
automatic:
28+
- limit: 3
29+
agents:
30+
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latest"
31+
cpu: "4000m"
32+
memory: "8Gi"
33+
useCustomGlobalHooks: true
34+
notify:
35+
- github_commit_status:
36+
context: "libbeat: check/update"
37+
38+
- wait: ~
39+
# with PRs, we want to run mandatory tests only if check/update step succeed
40+
# for other cases, e.g. merge commits, we want to run mundatory test (and publish) independently of other tests
41+
# this allows building DRA artifacts even if there is flakiness in check/update step
42+
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
43+
depends_on: "libbeat-check-update"
44+
1945
- group: "Mandatory Tests"
2046
key: "mandatory-tests"
2147
steps:

.buildkite/metricbeat/pipeline.yml

+49-51
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
name: "beats-metricbeat"
33

44
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"
67

78
GCP_DEFAULT_MACHINE_TYPE: "c2d-highcpu-8"
89
GCP_HI_PERF_MACHINE_TYPE: "c2d-highcpu-16"
910
GCP_WIN_MACHINE_TYPE: "n2-standard-8"
1011

1112
IMAGE_MACOS_ARM: "generic-13-ventura-arm"
1213
IMAGE_MACOS_X86_64: "generic-13-ventura-x64"
13-
IMAGE_UBUNTU_ARM_64: "platform-ingest-beats-ubuntu-2204-aarch64"
1414
IMAGE_UBUNTU_X86_64: "family/platform-ingest-beats-ubuntu-2204"
1515
IMAGE_WIN_10: "family/platform-ingest-beats-windows-10"
1616
IMAGE_WIN_11: "family/platform-ingest-beats-windows-11"
@@ -32,10 +32,13 @@ env:
3232
steps:
3333
- group: "Metricbeat Mandatory Tests"
3434
key: "metricbeat-mandatory-tests"
35+
3536
steps:
36-
- label: ":linux: Ubuntu Unit Tests"
37+
- label: ":ubuntu: Metricbeat Unit Tests"
3738
key: "mandatory-linux-unit-test"
38-
command: "cd metricbeat && mage build unitTest"
39+
command: |
40+
cd metricbeat
41+
mage build unitTest
3942
retry:
4043
automatic:
4144
- limit: 3
@@ -48,27 +51,20 @@ steps:
4851
- "metricbeat/build/*.json"
4952
notify:
5053
- github_commit_status:
51-
context: "metricbeat: Ubuntu Unit Tests"
54+
context: "metricbeat: Linux x86_64 Unit Tests"
5255

53-
- label: ":go: Go Integration Tests"
56+
- label: ":ubuntu: Metricbeat Go Integration Tests"
5457
key: "mandatory-int-test"
5558
command: |
5659
set -euo pipefail
5760
# defines the MODULE env var based on what's changed in a PR
5861
source .buildkite/scripts/changesets.sh
5962
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
6863
6964
echo "~~~ Running tests"
7065
export KUBECONFIG="$$PWD/kubecfg"
71-
cd metricbeat && mage goIntegTest
66+
cd metricbeat
67+
mage goIntegTest
7268
retry:
7369
automatic:
7470
- limit: 3
@@ -83,25 +79,18 @@ steps:
8379
- github_commit_status:
8480
context: "metricbeat: Go Integration Tests"
8581

86-
- label: ":python: Python Integration Tests"
82+
- label: ":ubuntu: Metricbeat Python Integration Tests"
8783
key: "mandatory-python-int-test"
8884
command: |
8985
set -euo pipefail
9086
# defines the MODULE env var based on what's changed in a PR
9187
source .buildkite/scripts/changesets.sh
9288
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
10189
10290
echo "~~~ Running tests"
10391
export KUBECONFIG="$$PWD/kubecfg"
104-
cd metricbeat && mage pythonIntegTest
92+
cd metricbeat
93+
mage pythonIntegTest
10594
retry:
10695
automatic:
10796
- limit: 3
@@ -116,7 +105,7 @@ steps:
116105
- github_commit_status:
117106
context: "metricbeat: Python Integration Tests"
118107

119-
- label: ":negative_squared_cross_mark: Cross compile"
108+
- label: ":ubuntu: Metricbeat Crosscompile"
120109
key: "mandatory-cross-compile"
121110
command: "make -C metricbeat crosscompile"
122111
retry:
@@ -131,9 +120,9 @@ steps:
131120
- "metricbeat/build/*.json"
132121
notify:
133122
- github_commit_status:
134-
context: "metricbeat: Cross compile"
123+
context: "metricbeat: Crosscompile"
135124

136-
- label: ":windows: Windows 2016 Unit Tests"
125+
- label: ":windows: Metricbeat Win-2016 Unit Tests"
137126
command: |
138127
Set-Location -Path metricbeat
139128
mage build unitTest
@@ -152,9 +141,9 @@ steps:
152141
- "metricbeat/build/*.json"
153142
notify:
154143
- github_commit_status:
155-
context: "metricbeat: Windows 2016 Unit Tests"
144+
context: "metricbeat: Win-2016 Unit Tests"
156145

157-
- label: ":windows: Windows 2022 Unit Tests"
146+
- label: ":windows: Metricbeat Win-2022 Unit Tests"
158147
command: |
159148
Set-Location -Path metricbeat
160149
mage build unitTest
@@ -173,13 +162,14 @@ steps:
173162
- "metricbeat/build/*.json"
174163
notify:
175164
- github_commit_status:
176-
context: "metricbeat: Windows 2022 Unit Tests"
165+
context: "metricbeat: Win-2022 Unit Tests"
177166

178167
- group: "Metricbeat Extended Windows Tests"
179168
key: "metricbeat-extended-win-tests"
180169
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*[Ww]indows.*/
170+
181171
steps:
182-
- label: ":windows: Windows 10 Unit Tests"
172+
- label: ":windows: Metricbeat Win 10 Unit Tests"
183173
command: |
184174
Set-Location -Path metricbeat
185175
mage build unitTest
@@ -198,9 +188,9 @@ steps:
198188
- "metricbeat/build/*.json"
199189
notify:
200190
- github_commit_status:
201-
context: "metricbeat: Extended Windows 10 Unit Tests"
191+
context: "metricbeat: Win 10 Unit Tests"
202192

203-
- label: ":windows: Windows 11 Unit Tests"
193+
- label: ":windows: Metricbeat Win 11 Unit Tests"
204194
command: |
205195
Set-Location -Path metricbeat
206196
mage build unitTest
@@ -219,9 +209,9 @@ steps:
219209
- "metricbeat/build/*.json"
220210
notify:
221211
- github_commit_status:
222-
context: "metricbeat: Extended Windows 11 Unit Tests"
212+
context: "metricbeat: Win 11 Unit Tests"
223213

224-
- label: ":windows: Windows 2019 Unit Tests"
214+
- label: ":windows: Metricbeat Win-2019 Unit Tests"
225215
command: |
226216
Set-Location -Path metricbeat
227217
mage build unitTest
@@ -240,18 +230,20 @@ steps:
240230
- "metricbeat/build/*.json"
241231
notify:
242232
- github_commit_status:
243-
context: "metricbeat: Extended Windows 2019 Unit Tests"
233+
context: "metricbeat: Win-2019 Unit Tests"
244234

245-
- group: "Metricbeat Extended MacOS Tests"
235+
- group: "Metricbeat Extended macOS Tests"
246236
key: "metricbeat-extended-macos-tests"
247237
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
238+
248239
steps:
249-
- label: ":mac: MacOS x64_64 Unit Tests"
240+
- label: ":mac: Metricbeat macOS x64_64 Unit Tests"
250241
key: "extended-macos-x64-64-unit-tests"
251242
command: |
252243
set -euo pipefail
253244
source .buildkite/scripts/install_macos_tools.sh
254-
cd metricbeat && mage build unitTest
245+
cd metricbeat
246+
mage build unitTest
255247
retry:
256248
automatic:
257249
- limit: 3
@@ -263,15 +255,17 @@ steps:
263255
- "metricbeat/build/*.json"
264256
notify:
265257
- github_commit_status:
266-
context: "metricbeat: Extended MacOS x86_64 Unit Tests"
258+
context: "metricbeat: macOS x86_64 Unit Tests"
267259

268-
- label: ":mac: MacOS arm64 Unit Tests"
260+
- label: ":mac: Metricbeat macOS arm64 Unit Tests"
269261
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
271264
command: |
272265
set -euo pipefail
273266
source .buildkite/scripts/install_macos_tools.sh
274-
cd metricbeat && mage build unitTest
267+
cd metricbeat
268+
mage build unitTest
275269
retry:
276270
automatic:
277271
- limit: 3
@@ -283,7 +277,7 @@ steps:
283277
- "metricbeat/build/*.json"
284278
notify:
285279
- github_commit_status:
286-
context: "metricbeat: Extended MacOS arm64 Unit Tests"
280+
context: "metricbeat: macOS arm64 Unit Tests"
287281

288282
- wait: ~
289283
# with PRs, we want to run packaging only if mandatory tests succeed
@@ -295,9 +289,11 @@ steps:
295289
- group: "Metricbeat Packaging"
296290
key: "metricbeat-packaging"
297291
steps:
298-
- label: ":linux: Packaging Linux"
292+
- label: ":ubuntu: Metricbeat Packaging Linux"
299293
key: "packaging-linux"
300-
command: "cd metricbeat && mage package"
294+
command: |
295+
cd metricbeat
296+
mage package
301297
retry:
302298
automatic:
303299
- limit: 3
@@ -314,20 +310,22 @@ steps:
314310
- github_commit_status:
315311
context: "metricbeat: Packaging Linux"
316312

317-
- label: ":linux: Packaging ARM"
313+
- label: ":ubuntu: Metricbeat Packaging Linux arm64"
318314
key: "packaging-arm"
319-
command: "cd metricbeat && mage package"
315+
command: |
316+
cd metricbeat
317+
mage package
320318
retry:
321319
automatic:
322320
- limit: 3
323321
timeout_in_minutes: 20
324322
agents:
325323
provider: "aws"
326-
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
324+
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
327325
instanceType: "${AWS_ARM_INSTANCE_TYPE}"
328326
env:
329327
PLATFORMS: "linux/arm64"
330328
PACKAGES: "docker"
331329
notify:
332330
- github_commit_status:
333-
context: "metricbeat: Packaging Linux ARM"
331+
context: "metricbeat: Packaging Linux arm64"

.buildkite/packetbeat/pipeline.packetbeat.yml

+26
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,32 @@ env:
2525
TEST_COVERAGE: "true"
2626

2727
steps:
28+
- group: "Packetbeat Check/Update"
29+
key: "packetbeat-check-update"
30+
steps:
31+
- label: "Run check/update"
32+
command: |
33+
make -C packetbeat check update
34+
make check-no-changes
35+
retry:
36+
automatic:
37+
- limit: 3
38+
agents:
39+
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latest"
40+
cpu: "4000m"
41+
memory: "8Gi"
42+
useCustomGlobalHooks: true
43+
notify:
44+
- github_commit_status:
45+
context: "packetbeat: check/update"
46+
47+
- wait: ~
48+
# with PRs, we want to run mandatory tests only if check/update step succeed
49+
# for other cases, e.g. merge commits, we want to run mundatory test (and publish) independently of other tests
50+
# this allows building DRA artifacts even if there is flakiness in check/update step
51+
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
52+
depends_on: "packetbeat-check-update"
53+
2854
- group: "packetbeat Mandatory Tests"
2955
key: "packetbeat-mandatory-tests"
3056
steps:

0 commit comments

Comments
 (0)