Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/github.com/elastic/mit…
Browse files Browse the repository at this point in the history
…o-1.17.0
  • Loading branch information
michel-laterman authored Mar 4, 2025
2 parents 54d3b66 + d668787 commit fc8060c
Show file tree
Hide file tree
Showing 79 changed files with 1,756 additions and 345 deletions.
59 changes: 40 additions & 19 deletions .buildkite/bk.integration.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ steps:
steps:
- label: "Win2022:sudo:{{matrix}}"
command: |
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows' --build ${BUILDKITE_TRIGGERED_FROM_BUILD_ID}
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
.buildkite/scripts/integration-tests.ps1 {{matrix}} true
artifact_paths:
- build/**
Expand All @@ -37,6 +37,9 @@ steps:
provider: "gcp"
machineType: "n1-standard-8"
image: "family/platform-ingest-elastic-agent-windows-2022"
retry:
automatic:
limit: 1
matrix:
- default
- fleet
Expand All @@ -49,7 +52,7 @@ steps:

- label: "Win2022:non-sudo:{{matrix}}"
command: |
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows' --build ${BUILDKITE_TRIGGERED_FROM_BUILD_ID}
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
.buildkite/scripts/integration-tests.ps1 {{matrix}} false
artifact_paths:
- build/**
Expand All @@ -58,12 +61,15 @@ steps:
provider: "gcp"
machineType: "n1-standard-8"
image: "family/platform-ingest-elastic-agent-windows-2022"
retry:
automatic:
limit: 1
matrix:
- default

- label: "Win2025:sudo:{{matrix}}"
command: |
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows' --build ${BUILDKITE_TRIGGERED_FROM_BUILD_ID}
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
.buildkite/scripts/integration-tests.ps1 {{matrix}} true
artifact_paths:
- build/**
Expand All @@ -84,7 +90,7 @@ steps:

- label: "Win2025:non-sudo:{{matrix}}"
command: |
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows' --build ${BUILDKITE_TRIGGERED_FROM_BUILD_ID}
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
.buildkite/scripts/integration-tests.ps1 {{matrix}} false
artifact_paths:
- build/**
Expand All @@ -104,11 +110,14 @@ steps:
- label: "x86_64:non-sudo: {{matrix}}"
# only packaging-ubuntu-x86-64 artifact dependency is required
command: |
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64' --build ${BUILDKITE_TRIGGERED_FROM_BUILD_ID}
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64'
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} false
artifact_paths:
- build/**
- build/diagnostics/**
retry:
automatic:
limit: 1
agents:
provider: "gcp"
machineType: "n1-standard-8"
Expand All @@ -119,11 +128,14 @@ steps:
- label: "x86_64:sudo: {{matrix}}"
# due to deb group present in matrix tar.gz and deb packages artifacts are required
command: |
buildkite-agent artifact download build/distributions/** . --build ${BUILDKITE_TRIGGERED_FROM_BUILD_ID}
buildkite-agent artifact download build/distributions/** .
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} true
artifact_paths:
- build/**
- build/diagnostics/**
retry:
automatic:
limit: 1
agents:
provider: "gcp"
machineType: "n1-standard-8"
Expand All @@ -145,9 +157,8 @@ steps:
- container

- label: "arm:sudo: {{matrix}}"
skip: true
command: |
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-arm64' --build ${BUILDKITE_TRIGGERED_FROM_BUILD_ID}
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-arm64'
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} true
artifact_paths:
- build/**
Expand All @@ -156,30 +167,37 @@ steps:
provider: "aws"
imagePrefix: "platform-ingest-beats-ubuntu-2404-aarch64"
instanceType: "m6g.2xlarge"
retry:
automatic:
limit: 1
matrix:
- default
- upgrade
- upgrade-flavor
- standalone-upgrade
- fleet
- fleet-endpoint-security
- fleet-airgapped
- fleet-airgapped-privileged
- fleet-privileged
- fleet-upgrade-to-pr-build
- install-uninstall
- fqdn
- deb
- container
# ARM tests are enabled for only selected groups in order to save resources
# - fleet-endpoint-security
# - fleet-airgapped
# - fleet-airgapped-privileged
# - fleet-privileged
# - fleet-upgrade-to-pr-build
# - install-uninstall
# - fqdn
# - deb
# - container

- label: "arm:non-sudo: {{matrix}}"
skip: true
command: |
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-arm64' --build ${BUILDKITE_TRIGGERED_FROM_BUILD_ID}
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-arm64'
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} false
artifact_paths:
- build/**
- build/diagnostics/**
retry:
automatic:
limit: 1
agents:
provider: "aws"
imagePrefix: "platform-ingest-beats-ubuntu-2404-aarch64"
Expand All @@ -194,11 +212,14 @@ steps:
steps:
- label: "x86_64:sudo:rpm"
command: |
buildkite-agent artifact download build/distributions/** . --build ${BUILDKITE_TRIGGERED_FROM_BUILD_ID}
buildkite-agent artifact download build/distributions/** .
.buildkite/scripts/steps/integration_tests_tf.sh rpm true
artifact_paths:
- build/**
- build/diagnostics/**
retry:
automatic:
limit: 1
agents:
provider: "gcp"
machineType: "n1-standard-8"
Expand Down
55 changes: 51 additions & 4 deletions .buildkite/integration.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,26 @@ steps:
command: ".buildkite/scripts/steps/integration-package.sh"
artifact_paths:
- build/distributions/**
retry:
automatic:
limit: 1
agents:
provider: "gcp"
machineType: "n2-standard-8"

- label: "Packaging: Ubuntu x86_64 FIPS"
key: "packaging-ubuntu-x86-64-fips"
env:
PACKAGES: "tar.gz"
PLATFORMS: "linux/amd64"
FIPS: "true"
command: ".buildkite/scripts/steps/integration-package.sh"
artifact_paths:
- build/distributions/**
agents:
provider: "gcp"
machineType: "n2-standard-4"

- label: "Packaging: Ubuntu arm64"
key: "packaging-ubuntu-arm64"
env:
Expand All @@ -28,10 +44,26 @@ steps:
command: ".buildkite/scripts/steps/integration-package.sh"
artifact_paths:
- build/distributions/**
retry:
automatic:
limit: 1
agents:
provider: "gcp"
machineType: "n2-standard-8"

- label: "Packaging: Ubuntu arm64 FIPS"
key: "packaging-ubuntu-arm64-fips"
env:
PACKAGES: "tar.gz"
PLATFORMS: "linux/arm64"
FIPS: "true"
command: ".buildkite/scripts/steps/integration-package.sh"
artifact_paths:
- build/distributions/**
agents:
provider: "gcp"
machineType: "n2-standard-4"

- label: "Packaging: Windows"
key: "packaging-windows"
env:
Expand All @@ -40,6 +72,9 @@ steps:
command: ".buildkite/scripts/steps/integration-package.sh"
artifact_paths:
- build/distributions/**
retry:
automatic:
limit: 1
agents:
provider: "gcp"
machineType: "n2-standard-8"
Expand All @@ -52,6 +87,9 @@ steps:
command: ".buildkite/scripts/steps/integration-package.sh"
artifact_paths:
- build/distributions/**
retry:
automatic:
limit: 1
agents:
provider: "gcp"
machineType: "n2-standard-8"
Expand Down Expand Up @@ -82,6 +120,9 @@ steps:
agents:
provider: "gcp"
machineType: "n2-standard-8"
retry:
automatic:
limit: 1
notify:
- github_commit_status:
context: "buildkite/elastic-agent-extended-testing - Serverless integration test"
Expand All @@ -103,17 +144,17 @@ steps:
agents:
provider: "gcp"
machineType: "n2-standard-8"
retry:
automatic:
limit: 1
notify:
- github_commit_status:
context: "buildkite/elastic-agent-extended-testing - Extended runtime leak tests"

- label: "Triggering Integration tests"
depends_on:
- int-packaging
trigger: "elastic-agent-extended-testing-bk"
build:
commit: "${BUILDKITE_COMMIT}"
branch: "${BUILDKITE_BRANCH}"
command: "buildkite-agent pipeline upload .buildkite/bk.integration.pipeline.yml"

- label: "Serverless Beats Tests"
# To speedup the build process only packaging-ubuntu-x86-64 artifact dependency is required
Expand All @@ -122,6 +163,9 @@ steps:
key: "serverless-beats-integration-tests"
concurrency_group: elastic-agent-extended-testing/beats-integration
concurrency: 8
retry:
automatic:
limit: 1
env:
TEST_INTEG_AUTH_GCP_DATACENTER: "us-central1-a"
command: |
Expand All @@ -140,6 +184,9 @@ steps:
K8S_VERSION: "v1.31.0"
KIND_VERSION: "v0.24.0"
command: ".buildkite/scripts/steps/k8s-extended-tests.sh"
retry:
automatic:
limit: 1
artifact_paths:
- "build/k8s-logs*/*"
- "build/k8s-logs*/**/*"
Expand Down
Loading

0 comments on commit fc8060c

Please sign in to comment.