Skip to content

Commit b0cb128

Browse files
Merge branch '8.17' into mergify/bp/8.17/pr-8605
2 parents fec9507 + 3e53359 commit b0cb128

File tree

62 files changed

+410
-231
lines changed

Some content is hidden

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

62 files changed

+410
-231
lines changed

.buildkite/bk.integration.pipeline.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ 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-1749258065"
10-
IMAGE_UBUNTU_2404_ARM_64: "platform-ingest-elastic-agent-ubuntu-2404-aarch64-1749258065"
11-
IMAGE_RHEL_8: "platform-ingest-elastic-agent-rhel-8-1749258065"
12-
IMAGE_DEBIAN_12: "platform-ingest-elastic-agent-debian-12-1749258065"
13-
IMAGE_WIN_2022: "platform-ingest-elastic-agent-windows-2022-1749258065"
14-
IMAGE_WIN_2025: "platform-ingest-elastic-agent-windows-2025-1749258065"
9+
IMAGE_UBUNTU_2404_X86_64: "platform-ingest-elastic-agent-ubuntu-2404-1751072471"
10+
IMAGE_UBUNTU_2404_ARM_64: "platform-ingest-elastic-agent-ubuntu-2404-aarch64-1751072471"
11+
IMAGE_RHEL_8: "platform-ingest-elastic-agent-rhel-8-1751072471"
12+
IMAGE_DEBIAN_12: "platform-ingest-elastic-agent-debian-12-1751072471"
13+
IMAGE_WIN_2022: "platform-ingest-elastic-agent-windows-2022-1751072471"
14+
IMAGE_WIN_2025: "platform-ingest-elastic-agent-windows-2025-1751072471"
15+
# Remove AGENT_VERSION pinning once 8.17.9 DRA and stack are released
16+
AGENT_VERSION: "8.17.8-SNAPSHOT"
17+
1518

1619
# This section is used to define the plugins that will be used in the pipeline.
1720
# See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
@@ -130,6 +133,8 @@ steps:
130133
- label: "Win2022:sudo:{{matrix}}"
131134
depends_on:
132135
- packaging-windows
136+
env:
137+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
133138
command: |
134139
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
135140
.buildkite/scripts/steps/integration_tests_tf.ps1 {{matrix}} true
@@ -155,6 +160,8 @@ steps:
155160
- label: "Win2022:non-sudo:{{matrix}}"
156161
depends_on:
157162
- packaging-windows
163+
env:
164+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
158165
command: |
159166
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
160167
.buildkite/scripts/steps/integration_tests_tf.ps1 {{matrix}} false
@@ -174,6 +181,8 @@ steps:
174181
- label: "Win2025:sudo:{{matrix}}"
175182
depends_on:
176183
- packaging-windows
184+
env:
185+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
177186
command: |
178187
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
179188
.buildkite/scripts/steps/integration_tests_tf.ps1 {{matrix}} true
@@ -200,6 +209,8 @@ steps:
200209
- label: "Win2025:non-sudo:{{matrix}}"
201210
depends_on:
202211
- packaging-windows
212+
env:
213+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
203214
command: |
204215
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
205216
.buildkite/scripts/steps/integration_tests_tf.ps1 {{matrix}} false
@@ -226,6 +237,8 @@ steps:
226237
steps:
227238
- label: "x86_64:non-sudo: {{matrix}}"
228239
depends_on: packaging-ubuntu-x86-64
240+
env:
241+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
229242
command: |
230243
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64'
231244
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} false
@@ -246,6 +259,8 @@ steps:
246259
depends_on:
247260
- packaging-ubuntu-x86-64
248261
# due to deb group present in matrix tar.gz and deb packages artifacts are required
262+
env:
263+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
249264
command: |
250265
buildkite-agent artifact download build/distributions/** . --step packaging-ubuntu-x86-64
251266
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} true
@@ -277,6 +292,8 @@ steps:
277292
- label: "arm:sudo: {{matrix}}"
278293
depends_on:
279294
- packaging-ubuntu-arm64
295+
env:
296+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
280297
command: |
281298
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-arm64'
282299
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} true
@@ -310,6 +327,8 @@ steps:
310327
skip: true
311328
depends_on:
312329
- packaging-ubuntu-arm64
330+
env:
331+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
313332
command: |
314333
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-arm64'
315334
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} false
@@ -336,6 +355,8 @@ steps:
336355
steps:
337356
- label: "x86_64:non-sudo: {{matrix}}"
338357
depends_on: packaging-ubuntu-x86-64
358+
env:
359+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
339360
command: |
340361
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64'
341362
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} false
@@ -356,6 +377,8 @@ steps:
356377
depends_on:
357378
- packaging-ubuntu-x86-64
358379
# due to deb group present in matrix tar.gz and deb packages artifacts are required
380+
env:
381+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
359382
command: |
360383
buildkite-agent artifact download build/distributions/** . --step packaging-ubuntu-x86-64
361384
.buildkite/scripts/steps/integration_tests_tf.sh {{matrix}} true
@@ -397,6 +420,8 @@ steps:
397420
- label: "x86_64:sudo:rpm"
398421
depends_on:
399422
- packaging-ubuntu-x86-64
423+
env:
424+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/ess"
400425
command: |
401426
buildkite-agent artifact download build/distributions/** . --step packaging-ubuntu-x86-64
402427
.buildkite/scripts/steps/integration_tests_tf.sh rpm true

.buildkite/integration.pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
env:
44
VAULT_PATH: "kv/ci-shared/observability-ingest/cloud/gcp"
5+
# Remove AGENT_PACKAGE_VERSION and AGENT_VERSION pinning once 8.17.8 DRA and stack are released
6+
AGENT_PACKAGE_VERSION: "8.17.8"
7+
BEAT_VERSION: "8.17.8"
58

69
steps:
710
- group: "Integration tests: packaging"

.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-1749258065"
9-
IMAGE_UBUNTU_2204_ARM_64: "platform-ingest-elastic-agent-ubuntu-2204-aarch64-1749258065"
10-
IMAGE_WIN_2016: "platform-ingest-elastic-agent-windows-2016-1749258065"
11-
IMAGE_WIN_2022: "platform-ingest-elastic-agent-windows-2022-1749258065"
12-
IMAGE_WIN_10: "platform-ingest-elastic-agent-windows-10-1749258065"
13-
IMAGE_WIN_11: "platform-ingest-elastic-agent-windows-11-1749258065"
8+
IMAGE_UBUNTU_2204_X86_64: "platform-ingest-elastic-agent-ubuntu-2204-1751072471"
9+
IMAGE_UBUNTU_2204_ARM_64: "platform-ingest-elastic-agent-ubuntu-2204-aarch64-1751072471"
10+
IMAGE_WIN_2016: "platform-ingest-elastic-agent-windows-2016-1751072471"
11+
IMAGE_WIN_2022: "platform-ingest-elastic-agent-windows-2022-1751072471"
12+
IMAGE_WIN_10: "platform-ingest-elastic-agent-windows-10-1751072471"
13+
IMAGE_WIN_11: "platform-ingest-elastic-agent-windows-11-1751072471"
1414

1515
steps:
1616
- label: "check-ci"

.buildkite/scripts/buildkite-integration-tests.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ go install gotest.tools/gotestsum
2525
gotestsum --version
2626

2727
$env:TEST_BINARY_NAME = "elastic-agent"
28-
# Parsing version.go. Will be simplified here: https://github.com/elastic/ingest-dev/issues/4925
29-
$AGENT_VERSION = (Get-Content version/version.go | Select-String -Pattern 'const defaultBeatVersion =' | ForEach-Object { $_ -replace '.*?"(.*?)".*', '$1' })
30-
$env:AGENT_VERSION = $AGENT_VERSION + "-SNAPSHOT"
28+
if (-not $env:AGENT_VERSION) {
29+
# Parsing version.go. Will be simplified here: https://github.com/elastic/ingest-dev/issues/4925
30+
$AGENT_VERSION = (Get-Content version/version.go | Select-String -Pattern 'const defaultBeatVersion =' | ForEach-Object { $_ -replace '.*?"(.*?)".*', '$1' })
31+
$env:AGENT_VERSION = $AGENT_VERSION + "-SNAPSHOT"
32+
}
3133

3234
Write-Output "~~~ Agent version: $env:AGENT_VERSION"
3335
$env:SNAPSHOT = $true

.buildkite/scripts/buildkite-integration-tests.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ echo "~~~ Running integration tests as $USER"
3232

3333
make install-gotestsum
3434

35-
# Parsing version.go. Will be simplified here: https://github.com/elastic/ingest-dev/issues/4925
36-
AGENT_VERSION=$(grep "const defaultBeatVersion =" version/version.go | cut -d\" -f2)
37-
AGENT_VERSION="${AGENT_VERSION}-SNAPSHOT"
35+
if [[ -z "${AGENT_VERSION:-}" ]]; then
36+
# Parsing version.go. Will be simplified here: https://github.com/elastic/ingest-dev/issues/4925
37+
AGENT_VERSION=$(grep "const defaultBeatVersion =" version/version.go | cut -d\" -f2)
38+
AGENT_VERSION="${AGENT_VERSION}-SNAPSHOT"
39+
fi
40+
3841
export AGENT_VERSION
3942
echo "~~~ Agent version: ${AGENT_VERSION}"
4043

.buildkite/scripts/common.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ fi
99
if [[ -z "${SETUP_GVM_VERSION-""}" ]]; then
1010
SETUP_GVM_VERSION="v0.5.2" # https://github.com/andrewkroh/gvm/issues/44#issuecomment-1013231151
1111
fi
12-
BEAT_VERSION=$(grep -oE '[0-9]+\.[0-9]+\.[0-9]+(\-[a-zA-Z]+[0-9]+)?' "${WORKSPACE}/version/version.go")
13-
export BEAT_VERSION
12+
13+
if [[ -z "${BEAT_VERSION-""}" ]]; then
14+
BEAT_VERSION=$(grep -oE '[0-9]+\.[0-9]+\.[0-9]+(\-[a-zA-Z]+[0-9]+)?' "${WORKSPACE}/version/version.go")
15+
export BEAT_VERSION
16+
fi
1417

1518
getOSOptions() {
1619
case $(uname | tr '[:upper:]' '[:lower:]') in

.buildkite/scripts/steps/integration_tests_tf.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ 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
4039
else
4140
# For the first run, we start the stack in the start_ess.sh step and it sets the meta-data
4241
echo "~~~ Receiving ESS stack metadata"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Kind can be one of:
2+
# - breaking-change: a change to previously-documented behavior
3+
# - deprecation: functionality that is being removed in a later release
4+
# - bug-fix: fixes a problem in a previous version
5+
# - enhancement: extends functionality but does not break or fix existing behavior
6+
# - feature: new functionality
7+
# - known-issue: problems that we are aware of in a given version
8+
# - security: impacts on the security of a product or a user’s deployment.
9+
# - upgrade: important information for someone upgrading from a prior version
10+
# - other: does not fit into any of the other categories
11+
kind: bug-fix
12+
13+
# Change summary; a 80ish characters long description of the change.
14+
summary: Remove incorrect logging that unprivileged installations are in beta.
15+
16+
# Long description; in case the summary is not enough to describe the change
17+
# this field accommodate a description without length limits.
18+
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment.
19+
description: "Unprivileged installations went GA in 8.15.0: https://www.elastic.co/docs/reference/fleet/elastic-agent-unprivileged"
20+
21+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
22+
component: "elastic-agent"
23+
24+
# PR URL; optional; the PR number that added the changeset.
25+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
26+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
27+
# Please provide it if you are adding a fragment for a different PR.
28+
pr: https://github.com/elastic/elastic-agent/pull/8715
29+
30+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
31+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
32+
issue: https://github.com/elastic/elastic-agent/issues/8689

deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-managed/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ configMapGenerator:
1515

1616
resources:
1717
- ./base
18-
- https://github.com/kubernetes/kube-state-metrics
18+
- https://github.com/kubernetes/kube-state-metrics/?ref=v2.15.0
1919

2020
patches:
2121
- path: environmental-variables-remove.yaml

deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-standalone/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ configMapGenerator:
1616

1717
resources:
1818
- ./base
19-
- https://github.com/kubernetes/kube-state-metrics/
19+
- https://github.com/kubernetes/kube-state-metrics/?ref=v2.15.0
2020

2121
patches:
2222
- path: environmental-variables-remove.yaml

0 commit comments

Comments
 (0)