-
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 remote-tracking branch 'origin/main' into many-fields-dataset
- Loading branch information
Showing
729 changed files
with
58,663 additions
and
66,853 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
steps: | ||
- command: .buildkite/scripts/steps/functional/response_ops_cases.sh | ||
label: 'Cases Cypress Tests on Security Solution' | ||
agents: | ||
queue: ci-group-6 | ||
depends_on: build | ||
timeout_in_minutes: 120 | ||
retry: | ||
automatic: | ||
- exit_status: '*' | ||
limit: 1 |
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
.buildkite/scripts/bootstrap.sh | ||
|
||
source .buildkite/scripts/steps/artifacts/env.sh | ||
|
||
echo "--- Publish Cloud image" | ||
mkdir -p target | ||
cd target | ||
|
||
buildkite-agent artifact download "kibana-cloud-$FULL_VERSION-docker-image.tar.gz" . --build "${KIBANA_BUILD_ID:-$BUILDKITE_BUILD_ID}" | ||
docker load --input kibana-cloud-$FULL_VERSION-docker-image.tar.gz | ||
|
||
TAG="$FULL_VERSION-$GIT_COMMIT" | ||
KIBANA_BASE_IMAGE="docker.elastic.co/kibana-ci/kibana-cloud:$FULL_VERSION" | ||
KIBANA_TEST_IMAGE="docker.elastic.co/kibana-ci/kibana-cloud:$TAG" | ||
|
||
docker tag "$KIBANA_BASE_IMAGE" "$KIBANA_TEST_IMAGE" | ||
|
||
echo "$KIBANA_DOCKER_PASSWORD" | docker login -u "$KIBANA_DOCKER_USERNAME" --password-stdin docker.elastic.co | ||
trap 'docker logout docker.elastic.co' EXIT | ||
|
||
docker push "$KIBANA_TEST_IMAGE" | ||
docker logout docker.elastic.co | ||
|
||
cd - | ||
|
||
echo "--- Create deployment" | ||
CLOUD_DEPLOYMENT_NAME="kibana-artifacts-$TAG" | ||
|
||
LOGS=$(mktemp --suffix ".json") | ||
DEPLOYMENT_SPEC=$(mktemp --suffix ".json") | ||
|
||
jq ' | ||
.name = "'$CLOUD_DEPLOYMENT_NAME'" | | ||
.resources.kibana[0].plan.kibana.docker_image = "'$KIBANA_TEST_IMAGE'" | | ||
.resources.kibana[0].plan.kibana.version = "'$FULL_VERSION'" | | ||
.resources.elasticsearch[0].plan.elasticsearch.version = "'$FULL_VERSION'" | | ||
.resources.enterprise_search[0].plan.enterprise_search.version = "'$FULL_VERSION'" | | ||
.resources.integrations_server[0].plan.integrations_server.version = "'$FULL_VERSION'" | ||
' .buildkite/scripts/steps/cloud/deploy.json > "$DEPLOYMENT_SPEC" | ||
|
||
ecctl deployment create --track --output json --file "$DEPLOYMENT_SPEC" &> "$LOGS" | ||
CLOUD_DEPLOYMENT_USERNAME=$(jq --slurp '.[]|select(.resources).resources[] | select(.credentials).credentials.username' "$LOGS") | ||
CLOUD_DEPLOYMENT_PASSWORD=$(jq --slurp '.[]|select(.resources).resources[] | select(.credentials).credentials.password' "$LOGS") | ||
CLOUD_DEPLOYMENT_ID=$(jq -r --slurp '.[0].id' "$LOGS") | ||
CLOUD_DEPLOYMENT_STATUS_MESSAGES=$(jq --slurp '[.[]|select(.resources == null)]' "$LOGS") | ||
|
||
CLOUD_DEPLOYMENT_KIBANA_URL=$(ecctl deployment show "$CLOUD_DEPLOYMENT_ID" | jq -r '.resources.kibana[0].info.metadata.aliased_url') | ||
CLOUD_DEPLOYMENT_ELASTICSEARCH_URL=$(ecctl deployment show "$CLOUD_DEPLOYMENT_ID" | jq -r '.resources.elasticsearch[0].info.metadata.aliased_url') | ||
|
||
# NOTE: disabled pending log sanitization | ||
# echo "--- Setup FTR" | ||
# export TEST_KIBANA_PROTOCOL=$(node -e "console.log(new URL('$CLOUD_DEPLOYMENT_KIBANA_URL').protocol)") | ||
# export TEST_KIBANA_HOSTNAME=$(node -e "console.log(new URL('$CLOUD_DEPLOYMENT_KIBANA_URL').hostname)") | ||
# export TEST_KIBANA_PORT=$(node -e "console.log(new URL('$CLOUD_DEPLOYMENT_KIBANA_URL').port)") | ||
# export TEST_KIBANA_USERNAME=$CLOUD_DEPLOYMENT_USERNAME" | ||
# export TEST_KIBANA_PASS=$CLOUD_DEPLOYMENT_PASSWORD" | ||
|
||
# export TEST_ES_PROTOCOL=$(node -e "console.log(new URL('$CLOUD_DEPLOYMENT_KIBANA_URL').protocol)") | ||
# export TEST_ES_HOSTNAME==$(node -e "console.log(new URL('$CLOUD_DEPLOYMENT_KIBANA_URL').hostname)") | ||
# export TEST_ES_PORT=$(node -e "console.log(new URL('$CLOUD_DEPLOYMENT_KIBANA_URL').port)") | ||
# export TEST_ES_USER="$CLOUD_DEPLOYMENT_USERNAME" | ||
# export TEST_ES_PASS="$CLOUD_DEPLOYMENT_PASSWORD" | ||
|
||
# export TEST_BROWSER_HEADLESS=1 | ||
|
||
# Error: attempted to use the "es" service to fetch Elasticsearch version info but the request failed: ConnectionError: self signed certificate in certificate chain | ||
# export NODE_TLS_REJECT_UNAUTHORIZED=0 | ||
|
||
# echo "--- Run default functional tests" | ||
# node --no-warnings scripts/functional_test_runner.js --include-tag=cloud -exclude-tag=skipCloud | ||
|
||
# echo "--- Run x-pack functional tests" | ||
# cd x-pack | ||
# node --no-warnings scripts/functional_test_runner.js --include-tag=cloud -exclude-tag=skipCloud | ||
|
||
echo "--- Shutdown deployment" | ||
ecctl deployment shutdown "$CLOUD_DEPLOYMENT_ID" --force --track --output json &> "$LOGS" |
Oops, something went wrong.