-
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.
- Loading branch information
Showing
2,965 changed files
with
80,850 additions
and
24,280 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
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
14 changes: 14 additions & 0 deletions
14
.buildkite/pipelines/pull_request/security_solution_explore.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,14 @@ | ||
steps: | ||
- command: .buildkite/scripts/steps/functional/security_solution_explore.sh | ||
label: 'Explore - Security Solution Tests' | ||
agents: | ||
queue: n2-4-spot | ||
depends_on: build | ||
timeout_in_minutes: 60 | ||
parallelism: 2 | ||
retry: | ||
automatic: | ||
- exit_status: '-1' | ||
limit: 3 | ||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
steps: | ||
- command: .buildkite/scripts/lifecycle/pre_build.sh | ||
label: Pre-Build | ||
timeout_in_minutes: 10 | ||
agents: | ||
queue: kibana-default | ||
retry: | ||
automatic: | ||
- exit_status: '*' | ||
limit: 1 | ||
|
||
- command: .buildkite/scripts/steps/build_kibana.sh | ||
label: Build Kibana Distribution and Plugins | ||
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 | ||
|
||
- command: SERVERLESS_ENVIRONMENT=common .buildkite/scripts/steps/functional/serverless_ftr.sh | ||
label: 'Serverless Common Tests' | ||
agents: | ||
queue: n2-4-spot | ||
depends_on: build | ||
timeout_in_minutes: 40 | ||
retry: | ||
automatic: | ||
- exit_status: '-1' | ||
limit: 3 | ||
- exit_status: '*' | ||
limit: 1 | ||
|
||
- command: SERVERLESS_ENVIRONMENT=observability .buildkite/scripts/steps/functional/serverless_ftr.sh | ||
label: 'Serverless Observability Tests' | ||
agents: | ||
queue: n2-4-spot | ||
depends_on: build | ||
timeout_in_minutes: 40 | ||
retry: | ||
automatic: | ||
- exit_status: '-1' | ||
limit: 3 | ||
- exit_status: '*' | ||
limit: 1 | ||
|
||
- command: SERVERLESS_ENVIRONMENT=search .buildkite/scripts/steps/functional/serverless_ftr.sh | ||
label: 'Serverless Search Tests' | ||
agents: | ||
queue: n2-4-spot | ||
depends_on: build | ||
timeout_in_minutes: 40 | ||
retry: | ||
automatic: | ||
- exit_status: '-1' | ||
limit: 3 | ||
- exit_status: '*' | ||
limit: 1 | ||
|
||
- command: SERVERLESS_ENVIRONMENT=security .buildkite/scripts/steps/functional/serverless_ftr.sh | ||
label: 'Serverless Security Tests' | ||
agents: | ||
queue: n2-4-spot | ||
depends_on: build | ||
timeout_in_minutes: 40 | ||
retry: | ||
automatic: | ||
- exit_status: '-1' | ||
limit: 3 | ||
- 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
8 changes: 8 additions & 0 deletions
8
.buildkite/scripts/steps/functional/on_merge_serverless_ftrs.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,8 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
if [[ "$BUILDKITE_BRANCH" == "main" ]]; then | ||
echo "--- Trigger serverless ftr tests" | ||
ts-node .buildkite/scripts/steps/trigger_pipeline.ts kibana-serverless "$BUILDKITE_BRANCH" "$BUILDKITE_COMMIT" "$BUILDKITE_BUILD_ID" | ||
fi |
17 changes: 17 additions & 0 deletions
17
.buildkite/scripts/steps/functional/security_solution_explore.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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source .buildkite/scripts/steps/functional/common.sh | ||
|
||
export JOB=kibana-security-solution-chrome | ||
export KIBANA_INSTALL_DIR=${KIBANA_BUILD_LOCATION} | ||
|
||
|
||
Xvfb :99 -screen 0 1600x1200x24 & | ||
|
||
export DISPLAY=:99 | ||
|
||
echo "--- Explore Cypress Tests on Security Solution" | ||
|
||
yarn --cwd x-pack/plugins/security_solution cypress:explore:run |
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,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source .buildkite/scripts/steps/functional/common.sh | ||
|
||
export JOB="kibana-serverless-$SERVERLESS_ENVIRONMENT" | ||
|
||
if [[ "$SERVERLESS_ENVIRONMENT" == "common" ]]; then | ||
SERVERLESS_CONFIGS=( | ||
"x-pack/test_serverless/api_integration/test_suites/common/config.ts" | ||
"x-pack/test_serverless/functional/test_suites/common/config.ts" | ||
) | ||
elif [[ "$SERVERLESS_ENVIRONMENT" == "search" ]]; then | ||
SERVERLESS_CONFIGS=( | ||
"x-pack/test_serverless/api_integration/test_suites/search/config.ts" | ||
"x-pack/test_serverless/functional/test_suites/search/config.ts" | ||
) | ||
elif [[ "$SERVERLESS_ENVIRONMENT" == "observability" ]]; then | ||
SERVERLESS_CONFIGS=( | ||
"x-pack/test_serverless/api_integration/test_suites/observability/config.ts" | ||
"x-pack/test_serverless/functional/test_suites/observability/config.ts" | ||
) | ||
elif [[ "$SERVERLESS_ENVIRONMENT" == "security" ]]; then | ||
SERVERLESS_CONFIGS=( | ||
"x-pack/test_serverless/api_integration/test_suites/security/config.ts" | ||
"x-pack/test_serverless/functional/test_suites/security/config.ts" | ||
) | ||
fi | ||
|
||
EXIT_CODE=0 | ||
|
||
for CONFIG in "${SERVERLESS_CONFIGS[@]}" | ||
do | ||
echo "--- $ node scripts/functional_tests --bail --config $CONFIG" | ||
set +e; | ||
node ./scripts/functional_tests \ | ||
--bail \ | ||
--kibana-install-dir "$KIBANA_BUILD_LOCATION" \ | ||
--config="$CONFIG" | ||
LAST_CODE=$? | ||
set -e; | ||
|
||
if [ $LAST_CODE -ne 0 ]; then | ||
EXIT_CODE=10 | ||
fi | ||
done | ||
|
||
exit $EXIT_CODE |
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.