Skip to content

Commit b0720e7

Browse files
committed
Merge branch 'feature/hosted-stack-using-oblt-cli' into test/oblt-cli-hosted
* feature/hosted-stack-using-oblt-cli: (26 commits) Use the current official docker image for oblt-cli Mark the elasticinframetrics processor as deprecated and schedule for removal (#8659) [main][Automation] Update versions (#8668) chore: Update create_deployment_csp_configuration.yaml (#8669) Attempt to make test more reliable by querying ES directly (#8422) [test] split up ess and beats serverless integration tests (#8551) Remove resource/k8s processor and use k8sattributes processor for service attributes (#8599) fix: use --force-confold for deb tests in TestUpgradeAgentWithTamperProtectedEndpoint_DEB (#8649) [main][Automation] Bump stack images versions to 9.1.0-ea0b7542 (#8612) chore: Update to elastic/beats@f6594fb72670 (#8640) [deb/rpm] restart endpoint with tamper protection after elastic-agent (#8637) ci: don't preinstall fleet packages on retried CI steps (#8636) chore: Update to elastic/beats@6b6941eed496 (#8619) [main][Automation] Bump VM Image version to 1750467641 (#8617) flaky: skip TestUpgradeAgentWithTamperProtectedEndpoint_RPM (#8626) Add skip-changelog PR label for bump VM PRs (#8627) build(deps): bump github.com/elastic/go-seccomp-bpf from 1.5.0 to 1.6.0 (#8611) [ci] fix k8s integration tests flakiness (#8575) bump apmconfig Otel extension to v0.3.0 (#8600) Enhancement/6394 allow deb rpm to upgrade with endpoint tamper protection (#6907) ...
2 parents 2fbadf0 + 987041d commit b0720e7

File tree

337 files changed

+65028
-1254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

337 files changed

+65028
-1254
lines changed

.buildkite/bk.integration-fips.pipeline.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
env:
44
ASDF_MAGE_VERSION: 1.14.0
5+
MS_GOTOOLCHAIN_TELEMETRY_ENABLED: "0"
56

6-
IMAGE_UBUNTU_2404_X86_64: "platform-ingest-elastic-agent-ubuntu-2404-1749862860"
7-
IMAGE_UBUNTU_X86_64_FIPS: "platform-ingest-elastic-agent-ubuntu-2204-fips-1749862860"
8-
IMAGE_UBUNTU_ARM64_FIPS: "platform-ingest-elastic-agent-ubuntu-2204-fips-aarch64-1749862860"
7+
IMAGE_UBUNTU_2404_X86_64: "platform-ingest-elastic-agent-ubuntu-2404-1750467641"
8+
IMAGE_UBUNTU_X86_64_FIPS: "platform-ingest-elastic-agent-ubuntu-2204-fips-1750467641"
9+
IMAGE_UBUNTU_ARM64_FIPS: "platform-ingest-elastic-agent-ubuntu-2204-fips-aarch64-1750467641"
910

1011
# This section is used to define the plugins that will be used in the pipeline.
1112
# See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
@@ -53,7 +54,8 @@ steps:
5354
TF_VAR_integration_server_docker_image: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips:git-${BUILDKITE_COMMIT:0:12}"
5455
command: .buildkite/scripts/steps/ess_start.sh
5556
agents:
56-
image: "docker.elastic.co/ci-agent-images/platform-ingest/oblt-cli:latest"
57+
# image: "docker.elastic.co/ci-agent-images/platform-ingest/oblt-cli:latest"
58+
image: "docker.elastic.co/observability-ci/oblt-cli:7.21.0"
5759

5860
- group: "fips:Stateful:Ubuntu"
5961
key: integration-tests-ubuntu-fips
@@ -68,6 +70,7 @@ steps:
6870
CUSTOM_IMAGE_TAG: "git-${BUILDKITE_COMMIT:0:12}"
6971
CI_ELASTIC_AGENT_DOCKER_IMAGE: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips"
7072
TF_VAR_integration_server_docker_image: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips:git-${BUILDKITE_COMMIT:0:12}"
73+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
7174
command: |
7275
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64-fips'
7376
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix.groups}} {{matrix.sudo}}
@@ -100,6 +103,7 @@ steps:
100103
CUSTOM_IMAGE_TAG: "git-${BUILDKITE_COMMIT:0:12}"
101104
CI_ELASTIC_AGENT_DOCKER_IMAGE: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips"
102105
TF_VAR_integration_server_docker_image: "docker.elastic.co/beats-ci/elastic-agent-cloud-fips:git-${BUILDKITE_COMMIT:0:12}"
106+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
103107
command: |
104108
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-arm64-fips'
105109
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix.groups}} {{matrix.sudo}}
@@ -130,7 +134,8 @@ steps:
130134
allow_dependency_failure: true
131135
command: .buildkite/scripts/steps/ess_down.sh
132136
agents:
133-
image: "docker.elastic.co/ci-agent-images/platform-ingest/oblt-cli:latest"
137+
# image: "docker.elastic.co/ci-agent-images/platform-ingest/oblt-cli:latest"
138+
image: "docker.elastic.co/observability-ci/oblt-cli:7.21.0"
134139

135140
- label: Aggregate test reports
136141
depends_on:

.buildkite/bk.integration.pipeline.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ env:
66

77
# The following images are defined here and their values will be updated by updatecli
88
# Please do not change them manually.
9-
IMAGE_UBUNTU_2404_X86_64: "platform-ingest-elastic-agent-ubuntu-2404-1749862860"
10-
IMAGE_UBUNTU_2404_ARM_64: "platform-ingest-elastic-agent-ubuntu-2404-aarch64-1749862860"
11-
IMAGE_RHEL_8: "platform-ingest-elastic-agent-rhel-8-1749862860"
12-
IMAGE_DEBIAN_12: "platform-ingest-elastic-agent-debian-12-1749862860"
13-
IMAGE_WIN_2022: "platform-ingest-elastic-agent-windows-2022-1749862860"
14-
IMAGE_WIN_2025: "platform-ingest-elastic-agent-windows-2025-1749862860"
9+
IMAGE_UBUNTU_2404_X86_64: "platform-ingest-elastic-agent-ubuntu-2404-1750467641"
10+
IMAGE_UBUNTU_2404_ARM_64: "platform-ingest-elastic-agent-ubuntu-2404-aarch64-1750467641"
11+
IMAGE_RHEL_8: "platform-ingest-elastic-agent-rhel-8-1750467641"
12+
IMAGE_DEBIAN_12: "platform-ingest-elastic-agent-debian-12-1750467641"
13+
IMAGE_WIN_2022: "platform-ingest-elastic-agent-windows-2022-1750467641"
14+
IMAGE_WIN_2025: "platform-ingest-elastic-agent-windows-2025-1750467641"
1515

1616
# This section is used to define the plugins that will be used in the pipeline.
1717
# See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
@@ -55,7 +55,8 @@ steps:
5555
context: "buildkite/elastic-agent-extended-testing - ESS stack provision using oblt-cli"
5656
command: .buildkite/scripts/steps/ess_start.sh
5757
agents:
58-
image: "docker.elastic.co/ci-agent-images/platform-ingest/oblt-cli:latest"
58+
# image: "docker.elastic.co/ci-agent-images/platform-ingest/oblt-cli:latest"
59+
image: "docker.elastic.co/observability-ci/oblt-cli:7.21.0"
5960

6061
- group: "Extended runtime leak tests"
6162
key: extended-integration-tests
@@ -144,6 +145,8 @@ steps:
144145
- label: "Win2022:sudo:{{matrix}}"
145146
depends_on:
146147
- packaging-windows
148+
env:
149+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
147150
command: |
148151
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
149152
.buildkite/scripts/steps/integration_tests_tf.ps1 {{matrix}} true
@@ -173,6 +176,8 @@ steps:
173176
- label: "Win2022:non-sudo:{{matrix}}"
174177
depends_on:
175178
- packaging-windows
179+
env:
180+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
176181
command: |
177182
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
178183
.buildkite/scripts/steps/integration_tests_tf.ps1 {{matrix}} false
@@ -195,6 +200,8 @@ steps:
195200
- label: "Win2025:sudo:{{matrix}}"
196201
depends_on:
197202
- packaging-windows
203+
env:
204+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
198205
command: |
199206
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
200207
.buildkite/scripts/steps/integration_tests_tf.ps1 {{matrix}} true
@@ -224,6 +231,8 @@ steps:
224231
- label: "Win2025:non-sudo:{{matrix}}"
225232
depends_on:
226233
- packaging-windows
234+
env:
235+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
227236
command: |
228237
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
229238
.buildkite/scripts/steps/integration_tests_tf.ps1 {{matrix}} false
@@ -253,6 +262,8 @@ steps:
253262
steps:
254263
- label: "x86_64:non-sudo: {{matrix}}"
255264
depends_on: packaging-ubuntu-x86-64
265+
env:
266+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
256267
command: |
257268
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64'
258269
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} false
@@ -276,6 +287,8 @@ steps:
276287
depends_on:
277288
- packaging-ubuntu-x86-64
278289
# due to deb group present in matrix tar.gz and deb packages artifacts are required
290+
env:
291+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
279292
command: |
280293
buildkite-agent artifact download build/distributions/** . --step packaging-ubuntu-x86-64
281294
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} true
@@ -311,6 +324,8 @@ steps:
311324
- label: "arm:sudo: {{matrix}}"
312325
depends_on:
313326
- packaging-ubuntu-arm64
327+
env:
328+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
314329
command: |
315330
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-arm64'
316331
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} true
@@ -348,6 +363,8 @@ steps:
348363
skip: true
349364
depends_on:
350365
- packaging-ubuntu-arm64
366+
env:
367+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
351368
command: |
352369
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-arm64'
353370
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} false
@@ -377,6 +394,8 @@ steps:
377394
steps:
378395
- label: "x86_64:non-sudo: {{matrix}}"
379396
depends_on: packaging-ubuntu-x86-64
397+
env:
398+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
380399
command: |
381400
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64'
382401
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} false
@@ -400,6 +419,8 @@ steps:
400419
depends_on:
401420
- packaging-ubuntu-x86-64
402421
# due to deb group present in matrix tar.gz and deb packages artifacts are required
422+
env:
423+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
403424
command: |
404425
buildkite-agent artifact download build/distributions/** . --step packaging-ubuntu-x86-64
405426
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} true
@@ -444,6 +465,8 @@ steps:
444465
- label: "x86_64:sudo:rpm"
445466
depends_on:
446467
- packaging-ubuntu-x86-64
468+
env:
469+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
447470
command: |
448471
buildkite-agent artifact download build/distributions/** . --step packaging-ubuntu-x86-64
449472
.buildkite/scripts/steps/integration_tests_tf.sh rpm true
@@ -593,7 +616,8 @@ steps:
593616
allow_dependency_failure: true
594617
command: .buildkite/scripts/steps/ess_down.sh
595618
agents:
596-
image: "docker.elastic.co/ci-agent-images/platform-ingest/oblt-cli:latest"
619+
# image: "docker.elastic.co/ci-agent-images/platform-ingest/oblt-cli:latest"
620+
image: "docker.elastic.co/observability-ci/oblt-cli:7.21.0"
597621

598622
- label: Aggregate test reports
599623
# Warning: The key has a hook in pre-command

.buildkite/hooks/pre-command

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ CI_GCP_OBS_PATH="kv/ci-shared/observability-ingest/cloud/gcp"
1818
CI_ESS_PATH="kv/ci-shared/platform-ingest/platform-ingest-ec-prod"
1919
CI_DRA_ROLE_PATH="kv/ci-shared/release/dra-role"
2020

21+
# NOTE: oblt-cli requires the GITHUB_TOKEN to be set in the environment
22+
# unfortunatelym, we cannot use the BK pipeline itself as it will
23+
# print the content, so we need to set it in the pre-command hook.
24+
# I decided to set it here for all the steps regardless to avoid
25+
# complicated logic in the pre-command hook.
26+
export GITHUB_TOKEN=$VAULT_GITHUB_TOKEN
27+
2128
function release_manager_login {
2229
DRA_CREDS_SECRET=$(retry 5 vault kv get -field=data -format=json ${CI_DRA_ROLE_PATH})
2330
VAULT_ADDR_SECRET=$(echo ${DRA_CREDS_SECRET} | jq -r '.vault_addr')

.buildkite/pipeline.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ env:
55

66
# The following images are defined here and their values will be updated by updatecli
77
# Please do not change them manually.
8-
IMAGE_UBUNTU_2204_X86_64: "platform-ingest-elastic-agent-ubuntu-2204-1749862860"
9-
IMAGE_UBUNTU_2204_ARM_64: "platform-ingest-elastic-agent-ubuntu-2204-aarch64-1749862860"
10-
IMAGE_WIN_2016: "platform-ingest-elastic-agent-windows-2016-1749862860"
11-
IMAGE_WIN_2022: "platform-ingest-elastic-agent-windows-2022-1749862860"
12-
IMAGE_WIN_10: "platform-ingest-elastic-agent-windows-10-1749862860"
13-
IMAGE_WIN_11: "platform-ingest-elastic-agent-windows-11-1749862860"
8+
IMAGE_UBUNTU_2204_X86_64: "platform-ingest-elastic-agent-ubuntu-2204-1750467641"
9+
IMAGE_UBUNTU_2204_ARM_64: "platform-ingest-elastic-agent-ubuntu-2204-aarch64-1750467641"
10+
IMAGE_WIN_2016: "platform-ingest-elastic-agent-windows-2016-1750467641"
11+
IMAGE_WIN_2022: "platform-ingest-elastic-agent-windows-2022-1750467641"
12+
IMAGE_WIN_10: "platform-ingest-elastic-agent-windows-10-1750467641"
13+
IMAGE_WIN_11: "platform-ingest-elastic-agent-windows-11-1750467641"
1414

1515
steps:
1616
# Trigger for pull requests

.buildkite/scripts/steps/ess.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ function ess_up() {
1212
fi
1313

1414
# Create a cluster with the specified stack version and store the cluster information in a file
15-
GITHUB_TOKEN="$VAULT_GITHUB_TOKEN" \
16-
oblt-cli cluster create ess \
15+
oblt-cli cluster create ess \
1716
--stack-version "$STACK_VERSION" \
1817
--cluster-name-prefix ea-hosted-it \
1918
--output-file="${PWD}/cluster-info.json" \

.buildkite/scripts/steps/integration_tests_tf.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,16 @@ if [[ "${BUILDKITE_RETRY_COUNT}" -gt 0 ]]; then
3636
echo "~~~ The steps is retried, starting the ESS stack again"
3737
trap 'ess_down' EXIT
3838
ess_up $OVERRIDE_STACK_VERSION || (echo -e "^^^ +++\nFailed to start ESS stack")
39-
preinstall_fleet_packages
39+
else
40+
# For the first run, we start the stack in the start_ess.sh step and it sets the meta-data
41+
echo "~~~ Receiving ESS stack metadata"
42+
export ELASTICSEARCH_HOST=$(buildkite-agent meta-data get "es.host")
43+
export ELASTICSEARCH_USERNAME=$(buildkite-agent meta-data get "es.username")
44+
export ELASTICSEARCH_PASSWORD=$(buildkite-agent meta-data get "es.pwd")
45+
export KIBANA_HOST=$(buildkite-agent meta-data get "kibana.host")
46+
export KIBANA_USERNAME=$(buildkite-agent meta-data get "kibana.username")
47+
export KIBANA_PASSWORD=$(buildkite-agent meta-data get "kibana.pwd")
48+
export INTEGRATIONS_SERVER_HOST=$(buildkite-agent meta-data get "integrations_server.host")
4049
fi
4150

4251
# Run integration tests

.ci/updatecli/updatecli-bump-vm-images.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ actions:
2626
labels:
2727
- dependencies
2828
- backport-skip
29+
- skip-changelog
2930
title: '[{{ requiredEnv "BRANCH_NAME" }}][Automation] Bump VM Image version to {{ source "latestVersion" }}'
3031

3132
sources:

.oblt-cli-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.19.0
1+
7.21.0

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ check-ci:
4141
@mage -v helm:lint
4242
@mage -v helm:updateAgentVersion
4343
@mage -v helm:renderExamples
44+
@mage -v integration:buildKubernetesTestData
4445
@$(MAKE) check-no-changes
4546

4647
## check: run all the checks including linting using golangci-lint.

0 commit comments

Comments
 (0)