-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 alerting/faad-resources-common
- Loading branch information
Showing
994 changed files
with
19,391 additions
and
7,970 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
.buildkite/pipelines/scalability/api_capacity_testing_daily.yml
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,38 @@ | ||
steps: | ||
- label: 'Pre-Build' | ||
command: .buildkite/scripts/lifecycle/pre_build.sh | ||
agents: | ||
queue: kibana-default | ||
|
||
- wait | ||
|
||
- label: 'Build Kibana Distribution and Plugins' | ||
command: .buildkite/scripts/steps/build_kibana.sh | ||
agents: | ||
queue: n2-16-spot | ||
key: build | ||
if: "build.env('KIBANA_BUILD_ID') == null || build.env('KIBANA_BUILD_ID') == ''" | ||
timeout_in_minutes: 60 | ||
retry: | ||
automatic: | ||
- exit_status: '-1' | ||
limit: 3 | ||
|
||
- label: ':kibana: APIs Capacity Tests' | ||
command: .buildkite/scripts/steps/scalability/api_capacity_testing.sh | ||
agents: | ||
queue: kb-static-scalability | ||
depends_on: build | ||
timeout_in_minutes: 90 | ||
retry: | ||
automatic: | ||
- exit_status: '*' | ||
limit: 1 | ||
|
||
- wait: ~ | ||
continue_on_failure: true | ||
|
||
- label: 'Post-Build' | ||
command: .buildkite/scripts/lifecycle/post_build.sh | ||
agents: | ||
queue: kibana-default |
28 changes: 28 additions & 0 deletions
28
.buildkite/scripts/steps/scalability/api_capacity_testing.sh
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,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source .buildkite/scripts/common/util.sh | ||
|
||
source .buildkite/scripts/steps/scalability/util.sh | ||
|
||
bootstrap_kibana | ||
|
||
KIBANA_LOAD_TESTING_DIR="${KIBANA_DIR}/kibana-load-testing" | ||
# These tests are running on static workers so we must delete previous build, load runner and scalability artifacts | ||
rm -rf "${KIBANA_BUILD_LOCATION}" | ||
rm -rf "${KIBANA_LOAD_TESTING_DIR}" | ||
|
||
echo "--- Download the build artifacts" | ||
.buildkite/scripts/download_build_artifacts.sh | ||
|
||
echo "--- Clone kibana-load-testing repo and compile project" | ||
mkdir -p "${KIBANA_LOAD_TESTING_DIR}" && cd "${KIBANA_LOAD_TESTING_DIR}" | ||
checkout_and_compile_load_runner | ||
|
||
echo "--- Run single apis capacity tests" | ||
cd "$KIBANA_DIR" | ||
node scripts/run_scalability --kibana-install-dir "$KIBANA_BUILD_LOCATION" --journey-path "x-pack/test/scalability/apis" | ||
|
||
echo "--- Upload test results" | ||
upload_test_results |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
checkout_and_compile_load_runner() { | ||
if [[ ! -d .git ]]; then | ||
git init | ||
git remote add origin https://github.com/elastic/kibana-load-testing.git | ||
fi | ||
git fetch origin --depth 1 "main" | ||
git reset --hard FETCH_HEAD | ||
|
||
KIBANA_LOAD_TESTING_GIT_COMMIT="$(git rev-parse HEAD)" | ||
export KIBANA_LOAD_TESTING_GIT_COMMIT | ||
|
||
mvn -q test-compile | ||
echo "Set 'GATLING_PROJECT_PATH' env var for ScalabilityTestRunner" | ||
export GATLING_PROJECT_PATH="$(pwd)" | ||
} | ||
|
||
upload_test_results() { | ||
echo "Upload server logs as build artifacts" | ||
tar -czf server-logs.tar.gz data/ftr_servers_logs/**/* | ||
buildkite-agent artifact upload server-logs.tar.gz | ||
echo "--- Upload Gatling reports as build artifacts" | ||
tar -czf "scalability_test_report.tar.gz" --exclude=simulation.log -C kibana-load-testing/target gatling | ||
buildkite-agent artifact upload "scalability_test_report.tar.gz" | ||
} | ||
|
||
bootstrap_kibana() { | ||
echo "--- yarn kbn bootstrap --force-install" | ||
if ! yarn kbn bootstrap --force-install; then | ||
echo "bootstrap failed, trying again in 15 seconds" | ||
sleep 15 | ||
|
||
rm -rf node_modules | ||
|
||
echo "--- yarn kbn reset && yarn kbn bootstrap, attempt 2" | ||
yarn kbn reset && yarn kbn bootstrap | ||
fi | ||
} |
Validating CODEOWNERS rules …
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 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 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 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 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 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 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 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 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 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.