Skip to content

Commit

Permalink
Merge branch 'main' into rk/launchlaunch
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankeairns authored Apr 30, 2024
2 parents 6846913 + 04f0a17 commit aeb50ff
Show file tree
Hide file tree
Showing 538 changed files with 8,275 additions and 3,569 deletions.
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ last 2 versions
not dead
not IE 11
Safari 7
# adding as part of Storybook upgrade to v8 https://github.com/babel/babel/issues/16171#issuecomment-2015227043
not op_mob >= 1

# Safari 7 for PhantomJS support
6 changes: 6 additions & 0 deletions .buildkite/pipelines/pipeline_prune_staging_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## 🏠/.buildkite/pipelines/pipeline_prune_staging_docs.yml

steps:
- agents:
provider: "gcp"
command: .buildkite/scripts/pipelines/pipeline_prune_staging_docs.sh
6 changes: 6 additions & 0 deletions .buildkite/pipelines/pipeline_pull_request_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ steps:
artifact_paths:
- "cypress/screenshots/**/*.png"
- "cypress/videos/**/*.mp4"
retry:
automatic: true

- command: .buildkite/scripts/pipelines/pipeline_test.sh
label: ":cypress: Cypress tests on React 17"
Expand All @@ -62,6 +64,8 @@ steps:
artifact_paths:
- "cypress/screenshots/**/*.png"
- "cypress/videos/**/*.mp4"
retry:
automatic: true

- command: .buildkite/scripts/pipelines/pipeline_test.sh
label: ":cypress: Cypress tests on React 18"
Expand All @@ -73,6 +77,8 @@ steps:
artifact_paths:
- "cypress/screenshots/**/*.png"
- "cypress/videos/**/*.mp4"
retry:
automatic: true

- command: .buildkite/scripts/pipelines/pipeline_test.sh
label: ":axe: Cypress accessibility (a11y) tests on React 18"
Expand Down
41 changes: 41 additions & 0 deletions .buildkite/scripts/pipelines/pipeline_prune_staging_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash

set -euo pipefail
set +x

# Expected env variables:
# * GPROJECT - GCE project name, e.g. elastic-bekitzur
# * GCE_ACCOUNT - credentials for the google service account (JSON blob)
if [[ -z "${GCE_ACCOUNT}" ]]; then
echo ":fire: GCP credentials not set." 1>&2
exit 1
fi
if [[ -z "${GPROJECT}" ]]; then
echo "GPROJECT is not set, e.g. 'GPROJECT=elastic-bekitzur'"
exit 1
fi

# Login to the cloud with the service account
gcloud auth activate-service-account --key-file <(echo "${GCE_ACCOUNT}")
unset GCE_ACCOUNT

EUI_DOCS_PROJECT=eui-docs-live
BUCKET=${GPROJECT}-${EUI_DOCS_PROJECT}

# https://cloud.google.com/storage/docs/gsutil/commands/ls
ls_options=(
-d # only list directories
-l # include additional details about the subdir, notably the date as a second field
)
echo "Getting all but the most recent 50 PR staging links..."
list=$(gsutil ls "${ls_options[@]}" "gs://${BUCKET}/pr_*" \
| sort -k 2 `# sort by the 2nd field returned by -l which is a timestamp` \
| head -n -50 `# remove the last 50 items, so basically keep the latest 50 staging docs` \
)
while IFS= read -r line || [[ -n $line ]]; do
url="$(echo -e "${line}" | tr -d '[:space:]')" # trim the leading whitespaces
url=${url%/} # trim the trailing slash
echo "Deleting $url"
# https://cloud.google.com/storage/docs/gsutil/commands/rm
gsutil -m rm -r "$url"
done < <(printf '%s' "$list")
2 changes: 2 additions & 0 deletions .loki/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
current
difference
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit aeb50ff

Please sign in to comment.