Skip to content

Commit 0491b4c

Browse files
committed
Merge remote-tracking branch 'upstream/main' into otel-adapter
2 parents 7bcfa46 + 89b0da5 commit 0491b4c

Some content is hidden

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

48 files changed

+861
-375
lines changed

.ci/scripts/bench.sh

+33-8
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,28 @@ function buildkite::download_last_artifact {
125125
BUILDKITE_DOWNLOAD_URL="${download_url}" buildkite::req_download_artifact
126126
}
127127

128+
#######################################
129+
# Retry n number of times the given command
130+
function retry() {
131+
local retries=$1
132+
shift
133+
134+
local count=0
135+
until "$@"; do
136+
exit=$?
137+
wait=$((2 ** count))
138+
count=$((count + 1))
139+
if [ $count -lt "$retries" ]; then
140+
>&2 echo "Retry $count/$retries exited $exit, retrying in $wait seconds..."
141+
sleep $wait
142+
else
143+
>&2 echo "Retry $count/$retries exited $exit, no more retries left."
144+
return $exit
145+
fi
146+
done
147+
return 0
148+
}
149+
128150
## Buildkite specific configuration
129151
if [ "${CI}" == "true" ] ; then
130152
# If HOME is not set then use the Buildkite workspace
@@ -147,17 +169,20 @@ if [ "${CI}" == "true" ] ; then
147169
[ -z "${REPO}" ] && echo "Environment variable 'REPO' must be defined" && exit 1;
148170
export BUILDKITE_TOKEN="${BUILDKITE_TOKEN_SECRET}"
149171

172+
echo "--- Setting up the :golang: environment..."
173+
GO_VERSION=$(cat .go-version)
174+
OS_NAME=linux
175+
OS_ARCH=amd64
176+
retry 5 curl -sL -o "${BASE_PROJECT}"/gvm "https://github.com/andrewkroh/gvm/releases/download/v0.5.2/gvm-${OS_NAME}-${OS_ARCH}"
177+
chmod +x "${BASE_PROJECT}"/gvm
178+
retry 5 "${BASE_PROJECT}"/gvm install "$GO_VERSION"
179+
eval "$("${BASE_PROJECT}"/gvm use "$GO_VERSION")"
180+
echo "Golang version:"
181+
go version
182+
GOPATH=$(command go env GOPATH)
150183
# Redirect go env to current dir
151-
export GOROOT="${BASE_PROJECT}/.go"
152-
export GOPATH="${BASE_PROJECT}/go"
153184
export PATH="${GOPATH}/bin:${PATH}"
154185

155-
# Install g (go version manager)
156-
curl -sSL https://git.io/g-install | bash -s -- -y
157-
158-
# Install specific version
159-
g install $(cat .go-version)
160-
161186
# Make sure gomod can be deleted automatically as part of the CI
162187
function teardown {
163188
local arg=${?}

.ci/scripts/download-png-from-kibana.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ JOB_PARAMS=$(echo "
3535
" | tr -d "[:space:]")
3636

3737

38-
png_url_path=$(curl -XPOST -v -L -u "$kibana_user:$kibana_pwd" -H 'kbn-xsrf: true' --data-urlencode "jobParams=${JOB_PARAMS}" $kibana_host/api/reporting/generate/pngV2 | jq -r '.path')
38+
png_url_path=$(curl -L -u "$kibana_user:$kibana_pwd" -H 'kbn-xsrf: true' --data-urlencode "jobParams=${JOB_PARAMS}" $kibana_host/api/reporting/generate/pngV2 | jq -r '.path')
3939

4040
if [[ "$png_url_path" == "null" ]]
4141
then

.ci/updatecli/bump-golang.yml

-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ targets:
106106
files:
107107
- go.mod
108108
- cmd/intake-receiver/go.mod
109-
- internal/glog/go.mod
110109
- systemtest/go.mod
111110
- tools/go.mod
112111
matchpattern: 'go \d+.\d+'

.github/workflows/benchmarks.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ on:
88
required: false
99
type: boolean
1010
default: false
11+
enableTailSampling:
12+
description: 'Enable tail-based sampling on the APM server'
13+
required: false
14+
type: boolean
15+
default: false
16+
tailSamplingStorageLimit:
17+
description: 'Storage size limit of tail-based sampling on the APM server, defaults to 10GB'
18+
required: false
19+
type: string
20+
default: "10GB"
1121
profile:
1222
description: 'The system profile used to run the benchmarks'
1323
required: false
@@ -52,12 +62,14 @@ jobs:
5262
TF_VAR_private_key: ./id_rsa_terraform
5363
TF_VAR_public_key: ./id_rsa_terraform.pub
5464
TF_VAR_run_standalone: ${{ inputs.runStandalone || github.event.schedule=='0 5 */5 * *' }}
65+
TF_VAR_apm_server_tail_sampling: ${{ inputs.enableTailSampling || 'false' }} # set the default again otherwise schedules won't work
66+
TF_VAR_apm_server_tail_sampling_storage_limit: ${{ inputs.tailSamplingStorageLimit || '10GB' }} # set the default again otherwise schedules won't work
5567
RUN_STANDALONE: ${{ inputs.runStandalone || github.event.schedule=='0 5 */5 * *' }}
5668
TFVARS_SOURCE: ${{ inputs.profile || 'system-profiles/8GBx1zone.tfvars' }} # // Default to use an 8gb profile
5769
TF_VAR_BUILD_ID: ${{ github.run_id }}
5870
TF_VAR_ENVIRONMENT: ci
5971
TF_VAR_REPO: ${{ github.repository }}
60-
GOBENCH_TAGS: branch=${{ github.head_ref || github.ref }},commit=${{ github.sha }},target_branch=${{ github.base_ref }}
72+
GOBENCH_TAGS: branch=${{ github.head_ref || github.ref }},commit=${{ github.sha }},target_branch=${{ github.base_ref }},enable_tail_sampling=${{ inputs.enableTailSampling }}
6173
GOBENCH_PASSWORD: ${{ secrets.GOBENCH_PASSWORD }}
6274
GOBENCH_USERNAME: ${{ secrets.GOBENCH_USERNAME }}
6375
GOBENCH_HOST: ${{ secrets.GOBENCH_HOST }}

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
- uses: actions/checkout@v4
124124
- name: Get changed files
125125
id: changed-files
126-
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf # v45.0.4
126+
uses: tj-actions/changed-files@bab30c2299617f6615ec02a68b9a40d10bd21366 # v45.0.5
127127
with:
128128
files: .go-version
129129

.go-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.23.3
1+
1.23.4

CHANGELOG.asciidoc

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// tag::list[]
2+
* <<apm-release-notes-8.17>>
23
* <<apm-release-notes-8.16>>
34
* <<apm-release-notes-8.15>>
45
* <<apm-release-notes-8.14>>
@@ -20,6 +21,7 @@
2021
2122
// tag::includes[]
2223
include::./changelogs/head.asciidoc[]
24+
include::./changelogs/8.17.asciidoc[]
2325
include::./changelogs/8.16.asciidoc[]
2426
include::./changelogs/8.15.asciidoc[]
2527
include::./changelogs/8.14.asciidoc[]

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ BEATS_VERSION?=main
180180
BEATS_MODULE:=github.com/elastic/beats/v7
181181

182182
.PHONY: update-beats
183-
update-beats: update-beats-module update
183+
update-beats: update-beats-module tidy notice
184184
@echo --- Use this commit message: Update to elastic/beats@$(shell go list -m -f {{.Version}} $(BEATS_MODULE) | cut -d- -f3)
185185

186186
.PHONY: update-beats-module

0 commit comments

Comments
 (0)