-
Notifications
You must be signed in to change notification settings - Fork 844
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 snyk-upgrade-36d60602c40679bce354b0273d5befff
- Loading branch information
Showing
2,842 changed files
with
47,974 additions
and
29,747 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# 🏠/.buildkite/pipelines/pipeline_pull_request_test.yml | ||
## 🏠/.buildkite/pipelines/pipeline_pull_request_deploy_docs.yml | ||
|
||
steps: | ||
- label: ":hammer: EUI pull request deploy docs" | ||
command: "echo 'This will deploy our EUI docs!'" | ||
|
||
- agents: | ||
provider: "gcp" | ||
command: .buildkite/scripts/pipeline_deploy_docs.sh | ||
if: build.branch != "main" # We don't want to deploy docs on main, only on manual release |
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,6 +1,9 @@ | ||
# 🏠/.buildkite/pipelines/pipeline_pull_request_test.yml | ||
|
||
steps: | ||
- label: ":hammer: EUI pull request test" | ||
command: "echo 'This will run our EUI tests!'" | ||
|
||
- agents: | ||
provider: "gcp" | ||
command: .buildkite/scripts/pipeline_test.sh | ||
if: build.branch != "main" # We're skipping testing commits in main for now to maintain parity with previous Jenkins setup | ||
artifact_paths: | ||
- "cypress/screenshots/**/*.png" |
17 changes: 17 additions & 0 deletions
17
.buildkite/pipelines/pipeline_pull_request_test_and_deploy.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,17 @@ | ||
## 🏠/.buildkite/pipelines/pipeline_pull_request_test_and_deploy.yml | ||
|
||
steps: | ||
- trigger: "eui-pull-request-test" | ||
label: ":hammer: EUI pull request test" | ||
build: | ||
branch: "${BUILDKITE_BRANCH}" | ||
commit: "${BUILDKITE_COMMIT}" | ||
- trigger: "eui-pull-request-deploy-docs" | ||
label: ":newspaper: EUI pull request deploy docs" | ||
build: | ||
branch: "${BUILDKITE_BRANCH}" | ||
commit: "${BUILDKITE_COMMIT}" | ||
env: | ||
GIT_BRANCH: "${BUILDKITE_BRANCH}" | ||
GIT_PULL_REQUEST_ID: "${BUILDKITE_PULL_REQUEST}" | ||
BUILDKITE_CI: "${BUILDKITE}" |
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,10 @@ | ||
## 🏠/.buildkite/pipelines/pipeline_release_deploy_docs.yml | ||
|
||
steps: | ||
- agents: | ||
provider: "gcp" | ||
command: .buildkite/scripts/pipeline_deploy_docs.sh | ||
env: | ||
GIT_BRANCH: "${BUILDKITE_BRANCH}" | ||
GIT_PULL_REQUEST_ID: "${BUILDKITE_PULL_REQUEST}" | ||
BUILDKITE_CI: "${BUILDKITE}" |
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,16 @@ | ||
{ | ||
"jobs": [ | ||
{ | ||
"enabled": true, | ||
"pipeline_slug": "eui-pull-request-test-and-deploy", | ||
"allow_org_users": true, | ||
"allowed_repo_permissions": ["admin", "write"], | ||
"build_on_commit": true, | ||
"build_on_comment": true, | ||
"trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))", | ||
"always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))", | ||
"set_commit_status": true, | ||
"skip_ci_on_only_changed": ["^.github/", "^generator-eui/", "^wiki/"] | ||
} | ||
] | ||
} |
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,52 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
set +x | ||
|
||
function retry { | ||
local retries=$1 | ||
shift | ||
|
||
local count=0 | ||
|
||
until "$@"; do | ||
exit=$? | ||
wait=$((2 ** count)) | ||
count=$((count + 1)) | ||
|
||
if [ $count -lt "$retries" ]; then | ||
>&2 echo "Retry $count of $retries exited $exit. Retrying in $wait seconds." | ||
else | ||
>&2 echo "Retry $count of $retries exited $exit. No retries left." | ||
return $exit | ||
fi | ||
|
||
done | ||
return 0 | ||
} | ||
|
||
VAULT_ACCOUNT=secret/ci/elastic-eui/bekitzur-kibana-service-account | ||
GITHUB_ACCOUNT=secret/ci/elastic-eui/kibanamachine | ||
|
||
GCE_ACCOUNT=$(retry 5 vault read -field=value $VAULT_ACCOUNT) | ||
if [[ -z "${GCE_ACCOUNT}" ]]; then | ||
echo ":fire: GCP credentials not set." 1>&2 | ||
exit 1 | ||
fi | ||
|
||
GITHUB_TOKEN=$(retry 5 vault read -field=github_token $GITHUB_ACCOUNT) | ||
if [[ -z "${GITHUB_TOKEN}" ]]; then | ||
echo ":fire: GitHub token not set." 1>&2 | ||
exit 1 | ||
fi | ||
|
||
export GPROJECT=elastic-bekitzur | ||
export GCE_ACCOUNT | ||
export GITHUB_TOKEN | ||
|
||
unset VAULT_ACCOUNT GITHUB_ACCOUNT | ||
|
||
# Run EUI build/deploy script, set in the template parameter | ||
# Expects env: GPROJECT, GCE_ACCOUNT, GIT_BRANCH, GITHUB_TOKEN | ||
./scripts/deploy/deploy_docs | ||
|
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,16 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
docker run \ | ||
-i --rm \ | ||
--env GIT_COMMITTER_NAME=test \ | ||
--env GIT_COMMITTER_EMAIL=test \ | ||
--env HOME=/tmp \ | ||
--user="$(id -u):$(id -g)" \ | ||
--volume="$(pwd):/app" \ | ||
--workdir=/app \ | ||
docker.elastic.co/eui/ci:5.2 \ | ||
bash -c "/opt/yarn*/bin/yarn \ | ||
&& yarn cypress install \ | ||
&& NODE_OPTIONS=\"--max-old-space-size=2048\" npm run test-ci" |
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 |
---|---|---|
|
@@ -13,3 +13,4 @@ generator-eui | |
cypress | ||
react-datepicker | ||
.eslintrc.js | ||
!.storybook |
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
File renamed without changes.
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 +1 @@ | ||
16.19.1 | ||
18.17.0 |
Oops, something went wrong.