Skip to content

Commit

Permalink
updated xpack/libbeat pipeline (#39642)
Browse files Browse the repository at this point in the history
Updated x-pack/libbeat pipeline to match same steps/commands as in Jenkins and to apply same naming style as in other BK pipelines for beats
  • Loading branch information
oakrizan authored May 23, 2024
1 parent fbe98c2 commit 2562e44
Showing 1 changed file with 28 additions and 23 deletions.
51 changes: 28 additions & 23 deletions .buildkite/x-pack/pipeline.xpack.libbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
name: "beats-xpack-libbeat"

env:
AWS_ARM_INSTANCE_TYPE: "t4g.xlarge"
GCP_DEFAULT_MACHINE_TYPE: "c2d-highcpu-8"
GCP_HI_PERF_MACHINE_TYPE: "c2d-highcpu-16"
GCP_WIN_MACHINE_TYPE: "n2-standard-8"
IMAGE_UBUNTU_ARM_64: "platform-ingest-beats-ubuntu-2204-aarch64"
AWS_ARM_INSTANCE_TYPE: "m6g.xlarge"
AWS_IMAGE_UBUNTU_ARM_64: "platform-ingest-beats-ubuntu-2204-aarch64"

IMAGE_UBUNTU_X86_64: "family/platform-ingest-beats-ubuntu-2204"
IMAGE_WIN_10: "family/platform-ingest-beats-windows-10"
IMAGE_WIN_11: "family/platform-ingest-beats-windows-11"
IMAGE_WIN_2016: "family/platform-ingest-beats-windows-2016"
IMAGE_WIN_2019: "family/platform-ingest-beats-windows-2019"
IMAGE_WIN_2022: "family/platform-ingest-beats-windows-2022"

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

Expand All @@ -24,8 +26,9 @@ env:
steps:
- group: "x-pack/libbeat Mandatory Tests"
key: "x-pack-libbeat-mandatory-tests"

steps:
- label: ":linux: Ubuntu Unit Tests"
- label: ":ubuntu: x-pack/libbeat Unit Tests"
key: "mandatory-linux-unit-test"
command: |
cd x-pack/libbeat
Expand All @@ -42,9 +45,9 @@ steps:
- "x-pack/libbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/libbeat: Ubuntu Unit Tests"
context: "x-pack/libbeat: Unit Tests"

- label: ":go: Go Integration Tests"
- label: ":ubuntu: x-pack/libbeat Go Integration Tests"
key: "mandatory-int-test"
command: |
cd x-pack/libbeat
Expand All @@ -63,7 +66,7 @@ steps:
- github_commit_status:
context: "x-pack/libbeat: Go Integration Tests"

- label: ":python: Python Integration Tests"
- label: ":ubuntu: x-pack/libbeat Python Integration Tests"
key: "mandatory-python-int-test"
command: |
cd x-pack/libbeat
Expand All @@ -82,7 +85,7 @@ steps:
- github_commit_status:
context: "x-pack/libbeat: Python Integration Tests"

- label: ":windows: Windows 2016 Unit Tests"
- label: ":windows: x-pack/libbeat Win-2016 Unit Tests"
command: |
Set-Location -Path x-pack/libbeat
mage -w reader\etw build goUnitTest
Expand All @@ -101,9 +104,9 @@ steps:
- "x-pack/libbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/libbeat: Windows 2016 Unit Tests"
context: "x-pack/libbeat: Win-2016 Unit Tests"

- label: ":windows: Windows 2022 Unit Tests"
- label: ":windows: x-pack/libbeat Win-2022 Unit Tests"
command: |
Set-Location -Path x-pack/libbeat
mage -w reader\etw build goUnitTest
Expand All @@ -122,13 +125,14 @@ steps:
- "x-pack/libbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/libbeat: Windows 2022 Unit Tests"
context: "x-pack/libbeat: Win-2022 Unit Tests"

- group: "x-pack/libbeat Extended Windows Tests"
key: "x-pack-libbeat-extended-win-tests"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*[Ww]indows.*/

steps:
- label: ":windows: Windows 10 Unit Tests"
- label: ":windows: x-pack/libbeat Win 10 Unit Tests"
command: |
Set-Location -Path x-pack/libbeat
mage -w reader\etw build goUnitTest
Expand All @@ -147,9 +151,9 @@ steps:
- "x-pack/libbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/libbeat: Windows 10 Unit Tests"
context: "x-pack/libbeat: Win 10 Unit Tests"

- label: ":windows: Windows 11 Unit Tests"
- label: ":windows: x-pack/libbeat Win 11 Unit Tests"
command: |
Set-Location -Path x-pack/libbeat
mage -w reader\etw build goUnitTest
Expand All @@ -168,9 +172,9 @@ steps:
- "x-pack/libbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/libbeat: Windows 11 Unit Tests"
context: "x-pack/libbeat: Win 11 Unit Tests"

- label: ":windows: Windows 2019 Unit Tests"
- label: ":windows: x-pack/libbeat Win-2019 Unit Tests"
command: |
Set-Location -Path x-pack/libbeat
mage -w reader\etw build goUnitTest
Expand All @@ -189,13 +193,14 @@ steps:
- "x-pack/libbeat/build/*.json"
notify:
- github_commit_status:
context: "x-pack/libbeat: Windows 2019 Unit Tests"
context: "x-pack/libbeat: Win-2019 Unit Tests"

- group: "x-pack/libbeat Linux arm Extended Tests"
- group: "x-pack/libbeat 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: ":linux: Ubuntu ARM64 Unit Tests"
- label: ":ubuntu: x-pack/libbeat arm64 Unit Tests"
key: "extended-arm64-unit-tests"
command: |
cd x-pack/libbeat
Expand All @@ -205,11 +210,11 @@ steps:
- limit: 3
agents:
provider: "aws"
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
imagePrefix: "${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 Extended Unit Tests"
context: "x-pack/libbeat: Linux arm64 Unit Tests"

0 comments on commit 2562e44

Please sign in to comment.