-
Notifications
You must be signed in to change notification settings - Fork 5k
Expand file tree
/
Copy pathpipeline.xpack.libbeat.yml
More file actions
216 lines (198 loc) · 7.21 KB
/
Copy pathpipeline.xpack.libbeat.yml
File metadata and controls
216 lines (198 loc) · 7.21 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
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
name: "beats-xpack-libbeat"
env:
AWS_ARM_INSTANCE_TYPE: "m6g.xlarge"
AWS_IMAGE_UBUNTU_ARM_64: "platform-ingest-beats-ubuntu-2204-aarch64-1782878510"
IMAGE_UBUNTU_X86_64: "platform-ingest-beats-ubuntu-2204-1782878510"
IMAGE_WIN_2022: "platform-ingest-beats-windows-2022-1782878510"
IMAGE_BEATS_WITH_HOOKS_LATEST: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latest"
GCP_DEFAULT_MACHINE_TYPE: "c2d-highcpu-8"
GCP_HI_PERF_MACHINE_TYPE: "c2d-highcpu-16"
GCP_WIN_MACHINE_TYPE: "n2-standard-8"
#Deps
ASDF_MAGE_VERSION: 1.15.0
# Unit tests
RACE_DETECTOR: "true"
TEST_COVERAGE: "true"
steps:
- group: "Check/Update"
key: "x-pack-libbeat-check-update"
steps:
- label: "x-pack/libbeat: Run check/update"
command: |
set -eo pipefail
make -C x-pack/libbeat check update
make check-no-changes
retry:
automatic:
- limit: 1
agents:
image: "${IMAGE_BEATS_WITH_HOOKS_LATEST}"
cpu: "4000m"
memory: "8Gi"
# 10GB storage was not enough for check/update.
ephemeralStorage: "40G"
useCustomGlobalHooks: true
notify:
- github_commit_status:
context: "x-pack/libbeat: check/update"
- label: "x-pack/libbeat: Run pre-commit"
command: "pre-commit run --all-files"
agents:
image: "${IMAGE_BEATS_WITH_HOOKS_LATEST}"
memory: "2Gi"
useCustomGlobalHooks: true
notify:
- github_commit_status:
context: "x-pack/libbeat: pre-commit"
- wait: ~
# with PRs, we want to run mandatory tests only if check/update step succeed
# for other cases, e.g. merge commits, we want to run mundatory test (and publish) independently of other tests
# this allows building DRA artifacts even if there is flakiness in check/update step
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
depends_on: "x-pack-libbeat-check-update"
- group: "Mandatory Tests"
key: "x-pack-libbeat-mandatory-tests"
steps:
- label: ":ubuntu: x-pack/libbeat: Ubuntu x86_64 Unit Tests"
key: "mandatory-linux-unit-test"
command: |
cd x-pack/libbeat
mage build unitTest
retry:
automatic:
- limit: 1
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
machineType: "${GCP_DEFAULT_MACHINE_TYPE}"
artifact_paths:
- "x-pack/libbeat/build/*.xml"
- "x-pack/libbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/libbeat: Ubuntu x86_64 Unit Tests"
- label: ":ubuntu: x-pack/libbeat: Ubuntu x86_64 Unit Tests with requirefips build tag"
key: "mandatory-linux-unit-test-fips-tag"
command: |
cd x-pack/libbeat
mage unitTest
retry:
automatic:
- limit: 1
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
machineType: "${GCP_DEFAULT_MACHINE_TYPE}"
env:
FIPS: "true"
artifact_paths:
- "x-pack/libbeat/build/*.xml"
- "x-pack/libbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/libbeat: Ubuntu x86_64 Unit Tests with requirefips build tag"
- label: ":ubuntu: x-pack/libbeat: Ubuntu x86_64 fips140=only Unit Tests"
key: "mandatory-linux-unit-test-fips-only"
command: |
cd x-pack/libbeat
mage goFIPSOnlyUnitTest
retry:
automatic:
- limit: 1
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
machineType: "${GCP_DEFAULT_MACHINE_TYPE}"
env:
FIPS: "true"
artifact_paths:
- "x-pack/libbeat/build/*.xml"
- "x-pack/libbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/libbeat: Ubuntu x86_64 fips140=only Unit Tests"
- label: ":ubuntu: x-pack/libbeat: Go Integration Tests"
command: |
cd x-pack/libbeat
mage goIntegTest
retry:
automatic:
- limit: 1
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
machineType: "${GCP_HI_PERF_MACHINE_TYPE}"
artifact_paths:
- "x-pack/libbeat/build/*.xml"
- "x-pack/libbeat/build/*.json"
- "x-pack/libbeat/build/integration-tests/*"
- "x-pack/libbeat/build/integration-tests/Test*/*"
- "x-pack/libbeat/build/integration-tests/Test*/data/**/*"
notify:
- github_commit_status:
context: "x-pack/libbeat: Go Integration Tests / Ubuntu x86_64"
- label: ":windows: x-pack/libbeat: Go Integration Tests"
skip: "Skipped due to https://github.com/elastic/beats/issues/44537"
command: |
cd x-pack/libbeat
mage goIntegTest
retry:
automatic:
- limit: 1
agents:
provider: "gcp"
image: "${IMAGE_WIN_2022}"
machineType: "${GCP_HI_PERF_MACHINE_TYPE}"
artifact_paths:
- "x-pack/libbeat/build/*.xml"
- "x-pack/libbeat/build/*.json"
- "x-pack/libbeat/build/integration-tests/*"
- "x-pack/libbeat/build/integration-tests/Test*/*"
- "x-pack/libbeat/build/integration-tests/Test*/data/**/*"
notify:
- github_commit_status:
context: "x-pack/libbeat: Go Integration Tests / Windows"
- label: ":ubuntu: x-pack/libbeat: Python Integration Tests"
key: "mandatory-python-int-test"
command: |
cd x-pack/libbeat
mage pythonIntegTest
retry:
automatic:
- limit: 1
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"
machineType: "${GCP_HI_PERF_MACHINE_TYPE}"
artifact_paths:
- "x-pack/libbeat/build/*.xml"
- "x-pack/libbeat/build/*.json"
- "x-pack/libbeat/build/integration-tests/*"
- "x-pack/libbeat/build/integration-tests/Test*/*"
- "x-pack/libbeat/build/integration-tests/Test*/data/**/*"
notify:
- github_commit_status:
context: "x-pack/libbeat: Python Integration Tests"
- group: "Extended Tests"
key: "x-pack-libbeat-extended-tests-linux-arm"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/
steps:
- label: ":ubuntu: x-pack/libbeat: Ubuntu arm64 Unit Tests"
key: "extended-arm64-unit-tests"
command: |
cd x-pack/libbeat
mage build unitTest
retry:
automatic:
- limit: 1
agents:
provider: "aws"
image: "${AWS_IMAGE_UBUNTU_ARM_64}"
instanceType: "${AWS_ARM_INSTANCE_TYPE}"
artifact_paths:
- "x-pack/libbeat/build/*.xml"
- "x-pack/libbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/libbeat: Ubuntu arm64 Unit Tests"