-
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 fix/synthetics-flaky-test
- Loading branch information
Showing
3,791 changed files
with
158,253 additions
and
136,517 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,27 @@ | ||
steps: | ||
- block: ":gear: Performance Tests Configuration" | ||
prompt: "Fill out the details for performance test" | ||
fields: | ||
- text: ":arrows_counterclockwise: Iterations" | ||
key: "performance-test-iteration-count" | ||
hint: "How many times you want to run tests? " | ||
required: true | ||
if: build.env('PERF_TEST_COUNT') == null | ||
|
||
- label: ":male-mechanic::skin-tone-2: Pre-Build" | ||
- label: ':male-mechanic::skin-tone-2: Pre-Build' | ||
command: .buildkite/scripts/lifecycle/pre_build.sh | ||
agents: | ||
queue: kibana-default | ||
|
||
- wait | ||
|
||
- label: ":factory_worker: Build Kibana Distribution and Plugins" | ||
- label: ':factory_worker: Build Kibana Distribution and Plugins' | ||
command: .buildkite/scripts/steps/build_kibana.sh | ||
agents: | ||
queue: c2-16 | ||
key: build | ||
|
||
- label: ":muscle: Performance Tests with Playwright config" | ||
- label: ':muscle: Performance Tests with Playwright config' | ||
command: .buildkite/scripts/steps/functional/performance_playwright.sh | ||
agents: | ||
queue: c2-16 | ||
queue: kb-static-ubuntu | ||
depends_on: build | ||
|
||
- wait: ~ | ||
continue_on_failure: true | ||
|
||
- label: ":male_superhero::skin-tone-2: Post-Build" | ||
- label: ':male_superhero::skin-tone-2: Post-Build' | ||
command: .buildkite/scripts/lifecycle/post_build.sh | ||
|
||
agents: | ||
queue: kibana-default |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ steps: | |
|
||
- command: .buildkite/scripts/lifecycle/post_build.sh | ||
label: Post-Build | ||
agents: | ||
queue: kibana-default |
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
65 changes: 48 additions & 17 deletions
65
.buildkite/scripts/steps/functional/performance_playwright.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 |
---|---|---|
@@ -1,24 +1,55 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
set -uo pipefail | ||
set -euo pipefail | ||
|
||
if [ -z "${PERF_TEST_COUNT+x}" ]; then | ||
TEST_COUNT="$(buildkite-agent meta-data get performance-test-iteration-count)" | ||
else | ||
TEST_COUNT=$PERF_TEST_COUNT | ||
fi | ||
source .buildkite/scripts/common/util.sh | ||
|
||
tput setab 2; tput setaf 0; echo "Performance test will be run at ${BUILDKITE_BRANCH} ${TEST_COUNT} times" | ||
.buildkite/scripts/bootstrap.sh | ||
.buildkite/scripts/download_build_artifacts.sh | ||
|
||
cat << EOF | buildkite-agent pipeline upload | ||
steps: | ||
- command: .buildkite/scripts/steps/functional/performance_sub_playwright.sh | ||
parallelism: "$TEST_COUNT" | ||
concurrency: 20 | ||
concurrency_group: 'performance-test-group' | ||
agents: | ||
queue: c2-16 | ||
EOF | ||
echo --- Run Performance Tests with Playwright config | ||
|
||
node scripts/es snapshot& | ||
|
||
esPid=$! | ||
|
||
export TEST_ES_URL=http://elastic:changeme@localhost:9200 | ||
export TEST_ES_DISABLE_STARTUP=true | ||
|
||
sleep 120 | ||
|
||
cd "$XPACK_DIR" | ||
|
||
jobId=$(npx uuid) | ||
export TEST_JOB_ID="$jobId" | ||
|
||
journeys=("ecommerce_dashboard" "flight_dashboard" "web_logs_dashboard" "promotion_tracking_dashboard") | ||
|
||
for i in "${journeys[@]}"; do | ||
echo "JOURNEY[${i}] is running" | ||
|
||
export TEST_PERFORMANCE_PHASE=WARMUP | ||
export ELASTIC_APM_ACTIVE=false | ||
export JOURNEY_NAME="${i}" | ||
|
||
checks-reporter-with-killswitch "Run Performance Tests with Playwright Config (Journey:${i},Phase: WARMUP)" \ | ||
node scripts/functional_tests \ | ||
--config test/performance/config.playwright.ts \ | ||
--include "test/performance/tests/playwright/${i}.ts" \ | ||
--kibana-install-dir "$KIBANA_BUILD_LOCATION" \ | ||
--debug \ | ||
--bail | ||
|
||
export TEST_PERFORMANCE_PHASE=TEST | ||
export ELASTIC_APM_ACTIVE=true | ||
|
||
checks-reporter-with-killswitch "Run Performance Tests with Playwright Config (Journey:${i},Phase: TEST)" \ | ||
node scripts/functional_tests \ | ||
--config test/performance/config.playwright.ts \ | ||
--include "test/performance/tests/playwright/${i}.ts" \ | ||
--kibana-install-dir "$KIBANA_BUILD_LOCATION" \ | ||
--debug \ | ||
--bail | ||
done | ||
|
||
kill "$esPid" |
41 changes: 0 additions & 41 deletions
41
.buildkite/scripts/steps/functional/performance_sub_playwright.sh
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
Oops, something went wrong.