-
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 '126695-make-upload-and-registry-package-info-consistent…
…' of github.com:kpollich/kibana into 126695-make-upload-and-registry-package-info-consistent
- Loading branch information
Showing
70 changed files
with
986 additions
and
843 deletions.
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
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" |
55 changes: 0 additions & 55 deletions
55
.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,21 +10,21 @@ mkdir -p target | |
cd target | ||
if [[ "$TEST_PACKAGE" == "deb" ]]; then | ||
buildkite-agent artifact download 'kibana-*.deb' . --build "${KIBANA_BUILD_ID:-$BUILDKITE_BUILD_ID}" | ||
KIBANA_IP_ADDRESS="192.168.50.5" | ||
KIBANA_IP_ADDRESS="192.168.56.5" | ||
elif [[ "$TEST_PACKAGE" == "rpm" ]]; then | ||
buildkite-agent artifact download 'kibana-*.rpm' . --build "${KIBANA_BUILD_ID:-$BUILDKITE_BUILD_ID}" | ||
KIBANA_IP_ADDRESS="192.168.50.6" | ||
KIBANA_IP_ADDRESS="192.168.56.6" | ||
elif [[ "$TEST_PACKAGE" == "docker" ]]; then | ||
buildkite-agent artifact download "kibana-$KIBANA_PKG_VERSION-SNAPSHOT-docker-image.tar.gz" . --build "${KIBANA_BUILD_ID:-$BUILDKITE_BUILD_ID}" | ||
KIBANA_IP_ADDRESS="192.168.50.7" | ||
KIBANA_IP_ADDRESS="192.168.56.7" | ||
fi | ||
cd .. | ||
|
||
export VAGRANT_CWD=test/package | ||
vagrant up "$TEST_PACKAGE" --no-provision | ||
|
||
node scripts/es snapshot \ | ||
-E network.bind_host=127.0.0.1,192.168.50.1 \ | ||
-E network.bind_host=127.0.0.1,192.168.56.1 \ | ||
-E discovery.type=single-node \ | ||
--license=trial & | ||
while ! timeout 1 bash -c "echo > /dev/tcp/localhost/9200"; do sleep 30; done | ||
|
@@ -33,7 +33,7 @@ vagrant provision "$TEST_PACKAGE" | |
|
||
export TEST_BROWSER_HEADLESS=1 | ||
export TEST_KIBANA_URL="http://elastic:changeme@$KIBANA_IP_ADDRESS:5601" | ||
export TEST_ES_URL=http://elastic:[email protected].50.1:9200 | ||
export TEST_ES_URL=http://elastic:[email protected].56.1:9200 | ||
|
||
cd x-pack | ||
node scripts/functional_test_runner.js --include-tag=smoke |
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 |
---|---|---|
|
@@ -27,9 +27,9 @@ pip3 install --user ansible | |
[cols=",,",options="header",] | ||
|=== | ||
|Hostname |IP |Description | ||
|deb |192.168.50.5 |Installation of Kibana’s deb package | ||
|rpm |192.168.50.6 |Installation of Kibana’s rpm package | ||
|docker |192.168.50.7 |Installation of Kibana’s docker image | ||
|deb |192.168.56.5 |Installation of Kibana’s deb package | ||
|rpm |192.168.56.6 |Installation of Kibana’s rpm package | ||
|docker |192.168.56.7 |Installation of Kibana’s docker image | ||
|=== | ||
|
||
=== Running | ||
|
@@ -49,11 +49,11 @@ vagrant provision <hostname> | |
|
||
# Running functional tests | ||
node scripts/es snapshot \ | ||
-E network.bind_host=127.0.0.1,192.168.50.1 \ | ||
-E network.bind_host=127.0.0.1,192.168.56.1 \ | ||
-E discovery.type=single-node \ | ||
--license=trial | ||
TEST_KIBANA_URL=http://elastic:changeme@<ip>:5601 \ | ||
TEST_ES_URL=http://elastic:[email protected].50.1:9200 \ | ||
TEST_ES_URL=http://elastic:[email protected].56.1:9200 \ | ||
node scripts/functional_test_runner.js --include-tag=smoke | ||
``` | ||
|
||
|
Binary file not shown.
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 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
Oops, something went wrong.