-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into page-load-as-child-transaction
- Loading branch information
Showing
186 changed files
with
58,115 additions
and
36,764 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
name: Bump elastic stack to latest version | ||
|
||
actions: | ||
default: | ||
title: '[updatecli] Bump elastic stack version to {{ source "latestRelease" }}' | ||
kind: github/pullrequest | ||
spec: | ||
labels: | ||
- dependencies | ||
scmid: default | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: '{{ requiredEnv "GITHUB_ACTOR" }}' | ||
owner: elastic | ||
repository: apm-agent-rum-js | ||
token: '{{ requiredEnv "GITHUB_TOKEN" }}' | ||
username: '{{ requiredEnv "GITHUB_ACTOR" }}' | ||
branch: main | ||
commitusingapi: true | ||
|
||
sources: | ||
latestRelease: | ||
name: Get Latest Elastic Release | ||
kind: githubrelease | ||
transformers: | ||
- trimprefix: v | ||
spec: | ||
owner: elastic | ||
repository: elasticsearch | ||
token: '{{ requiredEnv "GITHUB_TOKEN" }}' | ||
username: '{{ requiredEnv "GITHUB_ACTOR" }}' | ||
versionfilter: | ||
kind: regex | ||
pattern: ^v8\.(\d+)\.(\d+)$ | ||
|
||
conditions: | ||
dockerTag: | ||
name: Is docker image elasticsearch:{{ source "latestRelease" }} published | ||
kind: dockerimage | ||
spec: | ||
image: elasticsearch | ||
tag: '{{ source "latestRelease" }}' | ||
sourceid: latestRelease | ||
|
||
targets: | ||
|
||
update-ci-workflow: | ||
name: 'Update elastic stack version to {{ source "latestRelease" }}' | ||
sourceid: latestRelease | ||
scmid: default | ||
kind: file | ||
spec: | ||
file: .github/workflows/ci.yml | ||
content: >- | ||
'{{ source `latestRelease` }}' | ||
matchpattern: \'[0-9]+\.[0-9]+\.[0-9]+\' | ||
|
||
update-microbenchmark-workflow: | ||
name: 'Update elastic stack version to {{ source "latestRelease" }}' | ||
sourceid: latestRelease | ||
scmid: default | ||
kind: file | ||
spec: | ||
file: .github/workflows/microbenchmark.yml | ||
content: >- | ||
'{{ source `latestRelease` }}' | ||
matchpattern: \'[0-9]+\.[0-9]+\.[0-9]+\' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Bash strict mode | ||
set -eo pipefail | ||
|
||
# Found current script directory | ||
RELATIVE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
# Found project directory | ||
BASE_PROJECT="$(dirname "$(dirname "${RELATIVE_DIR}")")" | ||
|
||
## Buildkite specific configuration | ||
if [ "${CI}" == "true" ] ; then | ||
# If HOME is not set then use the Buildkite workspace | ||
# that's normally happening when running in the CI | ||
# owned by Elastic. | ||
if [ -z "${HOME}" ] ; then | ||
export HOME="${BUILDKITE_BUILD_CHECKOUT_PATH}" | ||
export HOME | ||
fi | ||
|
||
# required when running the benchmark | ||
PATH="${PATH}:${HOME}/.local/bin" | ||
export PATH | ||
|
||
echo 'Docker login is done in the Buildkite hooks' | ||
fi | ||
|
||
# Validate env vars | ||
[ -z "${ES_USER_SECRET}" ] && echo "Environment variable 'ES_USER_SECRET' must be defined" && exit 1; | ||
[ -z "${ES_PASS_SECRET}" ] && echo "Environment variable 'ES_PASS_SECRET' must be defined" && exit 1; | ||
[ -z "${ES_URL_SECRET}" ] && echo "Environment variable 'ES_URL_SECRET' must be defined" && exit 1; | ||
[ -z "${STACK_VERSION}" ] && echo "Environment variable 'STACK_VERSION' must be defined" && exit 1; | ||
|
||
# Debug env vars | ||
echo "Will run microbenchmarks on STACK_VERSION=${STACK_VERSION}" | ||
|
||
# It does not fail so it runs for benchmark, load testing and then we report the error at the end. | ||
set +e | ||
status=0 | ||
|
||
# Run the benchmarks | ||
REPORT_FILE="apm-agent-benchmark-results.json" "${BASE_PROJECT}/.ci/scripts/benchmarks.sh" | ||
|
||
# Gather error if any | ||
if [ $? -gt 0 ] ; then | ||
status=1 | ||
fi | ||
|
||
# Then we ship the data using the helper | ||
sendBenchmark "${ES_USER_SECRET}" "${ES_PASS_SECRET}" "${ES_URL_SECRET}" "${BASE_PROJECT}/apm-agent-benchmark-results.json" | ||
|
||
# Run the load testing | ||
REPORT_FILE="apm-agent-load-testing-results.json" "${BASE_PROJECT}/.ci/scripts/load-testing.sh" "${STACK_VERSION}" | ||
|
||
# Gather error if any | ||
if [ $? -gt 0 ] ; then | ||
status=1 | ||
fi | ||
|
||
# Then we ship the data using the helper | ||
sendBenchmark "${ES_USER_SECRET}" "${ES_PASS_SECRET}" "${ES_URL_SECRET}" "${BASE_PROJECT}/apm-agent-load-testing-results.json" | ||
|
||
# Report status | ||
exit $status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.