Skip to content

Commit b4792d3

Browse files
authored
[8.13](backport #39261) Update filebeat pipeline to match Jenkins steps (#39509)
updated filebeat pipeline to match same steps & commands as in Jenkins
1 parent 52f0a8b commit b4792d3

File tree

2 files changed

+28
-25
lines changed

2 files changed

+28
-25
lines changed

.buildkite/filebeat/filebeat-pipeline.yml

+27-24
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ steps:
3030
- group: "Filebeat Mandatory Tests"
3131
key: "filebeat-mandatory-tests"
3232
steps:
33-
- label: ":ubuntu: Ubuntu Unit Tests"
33+
- label: ":ubuntu: Filebeat Unit Tests"
3434
command: |
3535
cd filebeat
3636
mage build unitTest
@@ -46,9 +46,9 @@ steps:
4646
- "filebeat/build/*.json"
4747
notify:
4848
- github_commit_status:
49-
context: "filebeat: Ubuntu Unit Tests"
49+
context: "filebeat: Linux x86_64 Unit Tests"
5050

51-
- label: ":ubuntu: Ubuntu Go Integration Tests"
51+
- label: ":ubuntu: Filebeat Go Integration Tests"
5252
command: |
5353
cd filebeat
5454
mage goIntegTest
@@ -64,9 +64,9 @@ steps:
6464
- "filebeat/build/*.json"
6565
notify:
6666
- github_commit_status:
67-
context: "filebeat: Ubuntu Go Integration Tests"
67+
context: "filebeat: Filebeat Go Integration Tests"
6868

69-
- label: ":ubuntu: Ubuntu Python Integration Tests"
69+
- label: ":ubuntu: Filebeat Python Integration Tests"
7070
command: |
7171
cd filebeat
7272
mage pythonIntegTest
@@ -84,7 +84,7 @@ steps:
8484
- github_commit_status:
8585
context: "filebeat: Python Integration Tests"
8686

87-
- label: ":windows: Windows 2016 Unit Tests"
87+
- label: ":windows: Filebeat Windows 2016 Unit Tests"
8888
key: "windows-2016-unit-tests"
8989
command: |
9090
Set-Location -Path filebeat
@@ -105,7 +105,7 @@ steps:
105105
- github_commit_status:
106106
context: "filebeat: Windows 2016 Unit Tests"
107107

108-
- label: ":windows: Windows 2022 Unit Tests"
108+
- label: ":windows: Filebeat Windows 2022 Unit Tests"
109109
key: "windows-2022-unit-tests"
110110
command: |
111111
Set-Location -Path filebeat
@@ -128,8 +128,10 @@ steps:
128128

129129
- group: "Filebeat Extended Tests"
130130
key: "filebeat-extended-tests"
131+
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*(macOS|arm).*/
132+
131133
steps:
132-
- label: ":mac: MacOS x64_64 Unit Tests"
134+
- label: ":mac: Filebeat macOS x86_64 Unit Tests"
133135
key: "macos-unit-tests-extended"
134136
if: build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
135137
command: |
@@ -148,9 +150,9 @@ steps:
148150
- "filebeat/build/*.json"
149151
notify:
150152
- github_commit_status:
151-
context: "filebeat: Extended MacOS Unit Tests"
153+
context: "filebeat: macOS x86_64 Unit Tests"
152154

153-
- label: ":mac: MacOS arm64 Unit Tests"
155+
- label: ":mac: Filebeat macOS arm64 Unit Tests"
154156
key: "macos-arm64-unit-tests-extended"
155157
if: build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
156158
command: |
@@ -169,9 +171,9 @@ steps:
169171
- "filebeat/build/*.json"
170172
notify:
171173
- github_commit_status:
172-
context: "filebeat: Extended MacOS ARM Unit Tests"
174+
context: "filebeat: macOS arm64 Unit Tests"
173175

174-
- label: ":linux: Ubuntu ARM Unit Tests"
176+
- label: ":linux: Filebeat arm64 Unit Tests"
175177
key: "extended-arm64-unit-test"
176178
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/
177179
command: |
@@ -189,13 +191,14 @@ steps:
189191
- "filebeat/build/*.json"
190192
notify:
191193
- github_commit_status:
192-
context: "filebeat: Extended Ubuntu ARM Unit Tests"
194+
context: "filebeat: Linux arm64 Unit Tests"
193195

194-
- group: "Extended Windows Tests"
196+
- group: "Filebeat Extended Windows Tests"
195197
key: "filebeat-extended-win-tests"
196198
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*[Ww]indows.*/
199+
197200
steps:
198-
- label: ":windows: Windows 2019 Unit Tests"
201+
- label: ":windows: Filebeat Windows 2019 Unit Tests"
199202
key: "windows-extended-2019"
200203
command: |
201204
Set-Location -Path filebeat
@@ -214,9 +217,9 @@ steps:
214217
- "filebeat/build/*.json"
215218
notify:
216219
- github_commit_status:
217-
context: "filebeat: Extended Windows 2019 Unit Tests"
220+
context: "filebeat: Windows 2019 Unit Tests"
218221

219-
- label: ":windows: Windows 11 Unit Tests"
222+
- label: ":windows: Filebeat Windows 11 Unit Tests"
220223
key: "windows-extended-11"
221224
command: |
222225
Set-Location -Path filebeat
@@ -235,9 +238,9 @@ steps:
235238
- "filebeat/build/*.json"
236239
notify:
237240
- github_commit_status:
238-
context: "filebeat: Extended Windows 11 Unit Tests"
241+
context: "filebeat: Windows 11 Unit Tests"
239242

240-
- label: ":windows: Windows 10 Unit Tests"
243+
- label: ":windows: Filebeat Windows 10 Unit Tests"
241244
key: "windows-extended-10"
242245
command: |
243246
Set-Location -Path filebeat
@@ -256,7 +259,7 @@ steps:
256259
- "filebeat/build/*.json"
257260
notify:
258261
- github_commit_status:
259-
context: "filebeat: Extended Windows 10 Unit Tests"
262+
context: "filebeat: Windows 10 Unit Tests"
260263

261264
- wait: ~
262265
# with PRs, we want to run packaging only if mandatory tests succeed
@@ -268,7 +271,7 @@ steps:
268271
- group: "Filebeat Packaging"
269272
key: "packaging"
270273
steps:
271-
- label: ":linux: Packaging Linux"
274+
- label: ":linux: Filebeat Packaging Linux"
272275
key: "packaging-linux"
273276
command: |
274277
cd filebeat
@@ -287,9 +290,9 @@ steps:
287290
PLATFORMS: "+all linux/amd64 linux/arm64 windows/amd64 darwin/amd64 darwin/arm64"
288291
notify:
289292
- github_commit_status:
290-
context: "filebeat: Packaging"
293+
context: "filebeat: Packaging Linux"
291294

292-
- label: ":linux: Packaging ARM"
295+
- label: ":linux: Filebeat Packaging arm64"
293296
key: "packaging-arm"
294297
command: |
295298
cd filebeat
@@ -307,4 +310,4 @@ steps:
307310
PACKAGES: "docker"
308311
notify:
309312
- github_commit_status:
310-
context: "filebeat: Packaging ARM"
313+
context: "filebeat: Packaging arm64"

.buildkite/hooks/pre-command

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PRIVATE_CI_GCS_CREDENTIALS_PATH="kv/ci-shared/platform-ingest/gcp-platform-inges
1111
DOCKER_REGISTRY_SECRET_PATH="kv/ci-shared/platform-ingest/docker_registry_prod"
1212
GITHUB_TOKEN_VAULT_PATH="kv/ci-shared/platform-ingest/github_token"
1313

14-
if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats" || "$BUILDKITE_PIPELINE_SLUG" == "filebeat" ]]; then
14+
if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats" ]]; then
1515
source .buildkite/env-scripts/env.sh
1616
if [[ -z "${GO_VERSION-""}" ]]; then
1717
export GO_VERSION=$(cat "${WORKSPACE}/.go-version")

0 commit comments

Comments
 (0)