Skip to content

Commit

Permalink
updated pipline (#39910)
Browse files Browse the repository at this point in the history
Updated packetbeat pipeline to match common styling
  • Loading branch information
oakrizan authored Jun 20, 2024
1 parent 713f7c7 commit c8b52f7
Showing 1 changed file with 33 additions and 25 deletions.
58 changes: 33 additions & 25 deletions .buildkite/packetbeat/pipeline.packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ name: "beats-packetbeat"
env:
AWS_ARM_INSTANCE_TYPE: "m6g.xlarge"
AWS_IMAGE_UBUNTU_ARM_64: "platform-ingest-beats-ubuntu-2204-aarch64"

GCP_DEFAULT_MACHINE_TYPE: "c2d-highcpu-8"
GCP_HI_PERF_MACHINE_TYPE: "c2d-highcpu-16"
GCP_WIN_MACHINE_TYPE: "n2-standard-8"

IMAGE_MACOS_ARM: "generic-13-ventura-arm"
IMAGE_MACOS_X86_64: "generic-13-ventura-x64"
IMAGE_RHEL9_X86_64: "family/platform-ingest-beats-rhel-9"
Expand All @@ -27,8 +29,9 @@ env:
steps:
- group: "Packetbeat Check/Update"
key: "packetbeat-check-update"

steps:
- label: "Run check/update"
- label: "Packetbeat Run check/update"
command: |
set -eo pipefail
make -C packetbeat check update
Expand All @@ -44,7 +47,7 @@ steps:
notify:
- github_commit_status:
context: "packetbeat: check/update"

- 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
Expand All @@ -54,8 +57,9 @@ steps:

- group: "packetbeat Mandatory Tests"
key: "packetbeat-mandatory-tests"

steps:
- label: ":linux: Ubuntu Unit Tests"
- label: ":ubuntu: Packetbeat Linux x86_64 Unit Tests"
command: |
cd packetbeat
mage build unitTest
Expand All @@ -71,9 +75,9 @@ steps:
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Ubuntu Unit Tests"
context: "packetbeat: Linux x86_64 Unit Tests"

- label: ":rhel: RHEL9 Unit Tests"
- label: ":rhel: Packetbeat RHEL9 Unit Tests"
command: |
cd packetbeat
mage build unitTest
Expand All @@ -91,7 +95,7 @@ steps:
- github_commit_status:
context: "packetbeat: RHEL9 Unit Tests"

- label: ":windows: Windows 2016 Unit Tests"
- label: ":windows: Packetbeat Win-2016 Unit Tests"
command: |
Set-Location -Path packetbeat
mage build unitTest
Expand All @@ -109,9 +113,9 @@ steps:
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Windows 2016 Unit Tests"
context: "packetbeat: Win-2016 Unit Tests"

- label: ":windows: Windows 2022 Unit Tests"
- label: ":windows: Packetbeat Win-2022 Unit Tests"
command: |
Set-Location -Path packetbeat
mage build unitTest
Expand All @@ -129,13 +133,14 @@ steps:
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Windows 2022 Unit Tests"
context: "packetbeat: Win-2022 Unit Tests"

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

steps:
- label: ":windows: Windows 10 Unit Tests"
- label: ":windows: Packetbeat Win 10 Unit Tests"
command: |
Set-Location -Path packetbeat
mage build unitTest
Expand All @@ -155,7 +160,7 @@ steps:
- github_commit_status:
context: "packetbeat: Extended Windows 10 Unit Tests"

- label: ":windows: Windows 11 Unit Tests"
- label: ":windows: Packetbeat Win 11 Unit Tests"
command: |
Set-Location -Path packetbeat
mage build unitTest
Expand All @@ -174,9 +179,9 @@ steps:
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Extended Windows 11 Unit Tests"
context: "packetbeat: Win 11 Unit Tests"

- label: ":windows: Windows 2019 Unit Tests"
- label: ":windows: Packetbeat Win-2019 Unit Tests"
command: |
Set-Location -Path packetbeat
mage build unitTest
Expand All @@ -195,12 +200,13 @@ steps:
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Extended Windows 2019 Unit Tests"
context: "packetbeat: Win-2019 Unit Tests"

- group: "Extended Tests"
- group: "Packetbeat Extended Tests"
key: "extended-tests"

steps:
- label: ":mac: MacOS x86_64 Unit Tests"
- label: ":mac: Packetbeat macOS x86_64 Unit Tests"
key: "macos-x86-64-unit-tests-extended"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*macOS.*/
command: |
Expand All @@ -219,9 +225,9 @@ steps:
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Extended MacOS x86_64 Unit Tests"
context: "packetbeat: macOS x86_64 Unit Tests"

- label: ":mac: MacOS arm64 Unit Tests"
- label: ":mac: Packetbeat macOS arm64 Unit Tests"
key: "macos-arm64-unit-tests-extended"
if: build.env("GITHUB_PR_LABELS") =~ /.*(macOS|arm).*/
command: |
Expand All @@ -242,9 +248,11 @@ steps:
- github_commit_status:
context: "packetbeat: Extended MacOS arm64 Unit Tests"

- label: ":linux: Ubuntu ARM Unit Tests"
- label: ":ubuntu: Linux arm64 Unit Tests"
key: "linux-arm64-unit-tests-extended"
command: "cd packetbeat && mage build unitTest"
command: |
cd packetbeat
mage build unitTest
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/
retry:
automatic:
Expand All @@ -258,7 +266,7 @@ steps:
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Extended Ubuntu ARM Unit Tests"
context: "packetbeat: Linux arm64 Unit Tests"

- wait: ~
# with PRs, we want to run packaging only if mandatory tests succeed
Expand All @@ -270,7 +278,7 @@ steps:
- group: "Packetbeat Packaging"
key: "packaging"
steps:
- label: ":linux: Packaging Linux"
- label: ":ubuntu: Packetbeat Packaging Linux"
key: "packaging-linux"
command: |
cd packetbeat
Expand All @@ -291,7 +299,7 @@ steps:
- github_commit_status:
context: "packetbeat: Packaging Linux"

- label: ":linux: Packaging ARM"
- label: ":ubuntu: Packaging Linux arm64"
key: "packaging-arm"
command: |
cd packetbeat
Expand All @@ -309,4 +317,4 @@ steps:
PACKAGES: "docker"
notify:
- github_commit_status:
context: "packetbeat: Packaging Linux ARM"
context: "packetbeat: Packaging Linux arm64"

0 comments on commit c8b52f7

Please sign in to comment.