Skip to content

Commit

Permalink
Merge branch '7.17' into 7.17-client
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-laterman authored Jun 20, 2024
2 parents 82c16d7 + 5a16c8f commit 361c571
Show file tree
Hide file tree
Showing 34 changed files with 262 additions and 253 deletions.
27 changes: 27 additions & 0 deletions .buildkite/heartbeat/heartbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,33 @@ env:
TEST_COVERAGE: "true"

steps:
- group: "Heartbeat Check/Update"
key: "heartbeat-check-update"

steps:
- label: "Run check/update"
command: |
make -C heartbeat check update
make check-no-changes
retry:
automatic:
- limit: 3
agents:
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latest"
cpu: "4000m"
memory: "8Gi"
useCustomGlobalHooks: true
notify:
- github_commit_status:
context: "hearbeat: 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
# this allows building DRA artifacts even if there is flakiness in check/update step
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
depends_on: "heartbeat-check-update"

- group: "Heartbeat Mandatory Testing"
key: "heartbeat-mandatory-tests"

Expand Down
28 changes: 27 additions & 1 deletion .buildkite/metricbeat/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,32 @@ env:
TEST_COVERAGE: "true"

steps:
- group: "Metricbeat Check/Update"
key: "metricbeat-check-update"
steps:
- label: "Run check/update"
command: |
make -C metricbeat check update
make check-no-changes
retry:
automatic:
- limit: 3
agents:
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latest"
cpu: "4000m"
memory: "8Gi"
useCustomGlobalHooks: true
notify:
- github_commit_status:
context: "metricbeat: 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
# this allows building DRA artifacts even if there is flakiness in check/update step
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
depends_on: "metricbeat-check-update"

- group: "Metricbeat Mandatory Tests"
key: "metricbeat-mandatory-tests"
steps:
Expand Down Expand Up @@ -209,7 +235,7 @@ steps:
- "metricbeat/build/*.json"
notify:
- github_commit_status:
context: "metricbeat: EmacOS x86_64 Unit Tests"
context: "metricbeat: macOS x86_64 Unit Tests"

- wait: ~
# with PRs, we want to run packaging only if mandatory tests succeed
Expand Down
125 changes: 25 additions & 100 deletions .buildkite/packetbeat/pipeline.packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ 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"
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"

#Deps
ASDF_MAGE_VERSION: 1.15.0
Expand Down Expand Up @@ -53,8 +53,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 @@ -70,11 +71,13 @@ steps:
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Ubuntu Unit Tests"
context: "packetbeat: Linux x86_64 Unit Tests"

- label: ":linux: Ubuntu ARM Unit Tests"
- label: ":ubuntu: Packetbeat Linux arm64 Unit Tests"
key: "linux-arm64-unit-tests"
command: "cd packetbeat && mage build unitTest"
command: |
cd packetbeat
mage build unitTest
retry:
automatic:
- limit: 3
Expand All @@ -87,9 +90,9 @@ steps:
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Ubuntu ARM Unit Tests"
context: "packetbeat: Linux arm64 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 @@ -107,33 +110,14 @@ steps:
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Windows 2019 Unit Tests"
context: "packetbeat: Win-2019 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 2016 Unit Tests"
command: |
Set-Location -Path packetbeat
mage build unitTest
retry:
automatic:
- limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_2016}"
machine_type: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
artifact_paths:
- "packetbeat/build/*.xml"
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Extended Windows 2016 Unit Tests"

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

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

- label: ":windows: Windows 11 Unit Tests"
command: |
Set-Location -Path packetbeat
mage build unitTest
key: "extended-win-11-unit-tests"
retry:
automatic:
- limit: 3
agents:
provider: "gcp"
image: "${IMAGE_WIN_11}"
machineType: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
artifact_paths:
- "packetbeat/build/*.xml"
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Extended Windows 11 Unit Tests"
context: "packetbeat: Win 10 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 @@ -216,46 +180,7 @@ steps:
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Extended MacOS x86_64 Unit Tests"

- label: ":mac: MacOS arm64 Unit Tests"
key: "macos-arm64-unit-tests-extended"
if: build.env("GITHUB_PR_LABELS") =~ /.*(macOS|arm).*/
command: |
set -euo pipefail
source .buildkite/scripts/install_macos_tools.sh
cd packetbeat
mage build unitTest
retry:
automatic:
- limit: 3
agents:
provider: "orka"
imagePrefix: "${IMAGE_MACOS_ARM}"
artifact_paths:
- "packetbeat/build/*.xml"
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Extended MacOS arm64 Unit Tests"

- label: ":linux: Ubuntu ARM Unit Tests"
key: "linux-arm64-unit-tests-extended"
command: "cd packetbeat && mage build unitTest"
if: build.env("BUILDKITE_PULL_REQUEST") == "false" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/
retry:
automatic:
- limit: 3
agents:
provider: "aws"
imagePrefix: "${AWS_IMAGE_UBUNTU_ARM_64}"
instanceType: "${AWS_ARM_INSTANCE_TYPE}"
artifact_paths:
- "packetbeat/build/*.xml"
- "packetbeat/build/*.json"
notify:
- github_commit_status:
context: "packetbeat: Extended Ubuntu ARM Unit Tests"
context: "packetbeat: macOS x86_64 Unit Tests"

- wait: ~
# with PRs, we want to run packaging only if mandatory tests succeed
Expand All @@ -267,7 +192,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 @@ -288,7 +213,7 @@ steps:
- github_commit_status:
context: "packetbeat: Packaging Linux"

- label: ":linux: Packaging ARM"
- label: ":ubuntu: Packetbeat Packaging arm64"
key: "packaging-arm"
command: |
cd packetbeat
Expand All @@ -306,4 +231,4 @@ steps:
PACKAGES: "docker"
notify:
- github_commit_status:
context: "packetbeat: Packaging Linux ARM"
context: "packetbeat: Packaging Linux arm64"
2 changes: 1 addition & 1 deletion .buildkite/scripts/changesets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ definePattern() {
}

defineExclusions() {
exclude="^$beatPath\/module\/(.*(?<!\.asciidoc|\.png))$"
exclude="^$beatPath\/module\/(.*(?<!\.asciidoc|\.png|Dockerfile))$"
}

defineFromCommit() {
Expand Down
26 changes: 26 additions & 0 deletions .buildkite/winlogbeat/pipeline.winlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,32 @@ env:
DOCKER_PULL: 0

steps:
- group: "Winlogbeat Check/Update"
key: "winlogbeat-check-update"
steps:
- label: "Run check/update"
command: |
make -C winlogbeat check update
make check-no-changes
retry:
automatic:
- limit: 3
agents:
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latest"
cpu: "4000m"
memory: "8Gi"
useCustomGlobalHooks: true
notify:
- github_commit_status:
context: "winlogbeat: 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
# this allows building DRA artifacts even if there is flakiness in check/update step
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
depends_on: "winlogbeat-check-update"

- group: "Winlogbeat Mandatory Tests"
key: "winlogbeat-mandatory-tests"

Expand Down
26 changes: 26 additions & 0 deletions .buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,32 @@ env:
TEST_COVERAGE: "true"

steps:
- group: "x-pack/dockerlogbeat Check/Update"
key: "x-pack-dockerlogbeat-check-update"
steps:
- label: "Run check/update"
command: |
make -C x-pack/dockerlogbeat check update
make check-no-changes
retry:
automatic:
- limit: 3
agents:
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:latest"
cpu: "4000m"
memory: "8Gi"
useCustomGlobalHooks: true
notify:
- github_commit_status:
context: "x-pack/dockerlogbeat: 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
# 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-dockerlogbeat-check-update"

- group: "x-pack/dockerlogbeat Mandatory Tests"
key: "xpack-dockerlogbeat-mandatory-tests"
steps:
Expand Down
Loading

0 comments on commit 361c571

Please sign in to comment.