Skip to content

Commit

Permalink
Merge branch 'main' into unified-resizable-button
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula authored Aug 4, 2022
2 parents eab01f9 + 0fdf99b commit 1083809
Show file tree
Hide file tree
Showing 1,437 changed files with 54,212 additions and 6,127 deletions.
2 changes: 1 addition & 1 deletion .buildkite/ftr_configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ enabled:
- x-pack/test/security_functional/login_selector.config.ts
- x-pack/test/security_functional/oidc.config.ts
- x-pack/test/security_functional/saml.config.ts
- x-pack/test/security_functional/unsecure_cluster_alert.config.ts
- x-pack/test/security_functional/insecure_cluster_warning.config.ts
- x-pack/test/security_solution_endpoint_api_int/config.ts
- x-pack/test/security_solution_endpoint/config.ts
- x-pack/test/session_view/basic/config.ts
Expand Down
7 changes: 6 additions & 1 deletion .buildkite/pipeline-utils/ci-stats/on_complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export async function onComplete() {
return;
}

const report = await ciStats.getPrReport(process.env.CI_STATS_BUILD_ID);
const backfillJobIds: string[] = [];
if (process.env.KIBANA_REUSABLE_BUILD_JOB_ID) {
backfillJobIds.push(process.env.KIBANA_REUSABLE_BUILD_JOB_ID);
}

const report = await ciStats.getPrReport(process.env.CI_STATS_BUILD_ID, backfillJobIds);
if (report?.md) {
buildkite.setMetadata('pr_comment:ci_stats_report:body', report.md);

Expand Down
7 changes: 0 additions & 7 deletions .buildkite/pipelines/pull_request/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ steps:
queue: c2-8
timeout_in_minutes: 60

- command: .buildkite/scripts/steps/storybooks/build_and_upload.sh
label: 'Build Storybooks'
agents:
queue: c2-4
key: storybooks
timeout_in_minutes: 60

- command: .buildkite/scripts/steps/build_api_docs.sh
label: 'Build API Docs'
agents:
Expand Down
7 changes: 7 additions & 0 deletions .buildkite/pipelines/pull_request/storybooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
steps:
- command: .buildkite/scripts/steps/storybooks/build_and_upload.sh
label: 'Build Storybooks'
agents:
queue: n2-4-spot
key: storybooks
timeout_in_minutes: 60
8 changes: 8 additions & 0 deletions .buildkite/scripts/lifecycle/pre_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ if [[ ! "${ES_SNAPSHOT_MANIFEST:-}" ]]; then
ES_SNAPSHOT_MANIFEST_DEFAULT="https://storage.googleapis.com/$BUCKET/manifest.json"
buildkite-agent meta-data set ES_SNAPSHOT_MANIFEST_DEFAULT "$ES_SNAPSHOT_MANIFEST_DEFAULT"
fi

if [[ "${KIBANA_BUILD_ID:-}" && "${KIBANA_REUSABLE_BUILD_JOB_URL:-}" ]]; then
cat << EOF | buildkite-agent annotate --style default --context kibana-reusable-build
This build is using the Kibana distributable built from a different job, as the changes since this build do not seem to require a rebuild.
See job here: $KIBANA_REUSABLE_BUILD_JOB_URL
EOF
fi
7 changes: 7 additions & 0 deletions .buildkite/scripts/pipelines/pull_request/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ const uploadPipeline = (pipelineContent: string | object) => {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/deploy_cloud.yml'));
}

if (
(await doAnyChangesMatch([/.*stor(ies|y).*/])) ||
GITHUB_PR_LABELS.includes('ci:build-storybooks')
) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/storybooks.yml'));
}

if (GITHUB_PR_LABELS.includes('ci:build-webpack-bundle-analyzer')) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/webpack_bundle_analyzer.yml'));
}
Expand Down
18 changes: 11 additions & 7 deletions .buildkite/scripts/steps/artifacts/cloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,17 @@ jq '
.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"
function shutdown {
echo "--- Shutdown deployment"
# Re-fetch the deployment ID - if there's an error during creation the ID may not be set
CLOUD_DEPLOYMENT_ID=$(ecctl deployment list --output json | jq -r '.deployments[] | select(.name == "'$CLOUD_DEPLOYMENT_NAME'") | .id')
if [ -n "${CLOUD_DEPLOYMENT_ID}" ]; then
ecctl deployment shutdown "$CLOUD_DEPLOYMENT_ID" --force --track --output json > "$LOGS"
fi
}
trap "shutdown" EXIT

ecctl deployment create --track --output json --file "$DEPLOYMENT_SPEC" > "$LOGS"
CLOUD_DEPLOYMENT_USERNAME=$(jq -r --slurp '.[]|select(.resources).resources[] | select(.credentials).credentials.username' "$LOGS")
CLOUD_DEPLOYMENT_PASSWORD=$(jq -r --slurp '.[]|select(.resources).resources[] | select(.credentials).credentials.password' "$LOGS")
CLOUD_DEPLOYMENT_ID=$(jq -r --slurp '.[0].id' "$LOGS")
Expand All @@ -62,12 +72,6 @@ export CLOUD_DEPLOYMENT_ELASTICSEARCH_URL=$(ecctl deployment show "$CLOUD_DEPLOY
echo "Kibana: $CLOUD_DEPLOYMENT_KIBANA_URL"
echo "ES: $CLOUD_DEPLOYMENT_ELASTICSEARCH_URL"

function shutdown {
echo "--- Shutdown deployment"
ecctl deployment shutdown "$CLOUD_DEPLOYMENT_ID" --force --track --output json &> "$LOGS"
}
trap "shutdown" EXIT

export TEST_KIBANA_PROTOCOL=$(node -e "console.log(new URL(process.env.CLOUD_DEPLOYMENT_KIBANA_URL).protocol.replace(':', ''))")
export TEST_KIBANA_HOSTNAME=$(node -e "console.log(new URL(process.env.CLOUD_DEPLOYMENT_KIBANA_URL).hostname)")
export TEST_KIBANA_PORT=$(node -e "console.log(new URL(process.env.CLOUD_DEPLOYMENT_KIBANA_URL).port || 443)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GCS_BUCKET="gs://kibana-performance/scalability-tests"
.buildkite/scripts/bootstrap.sh

echo "--- Extract APM metrics"
scalabilityJourneys=("login" "promotion_tracking_dashboard")
scalabilityJourneys=("login" "ecommerce_dashboard" "flight_dashboard" "web_logs_dashboard" "promotion_tracking_dashboard" "many_fields_discover")

for i in "${scalabilityJourneys[@]}"; do
JOURNEY_NAME="${i}"
Expand Down
3 changes: 1 addition & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@

# Performance testing
/packages/kbn-performance-testing-dataset-extractor/ @elastic/kibana-performance-testing
/packages/kbn-scalability-simulation-generator/ @elastic/kibana-performance-testing

# Quality Assurance
/src/dev/code_coverage @elastic/kibana-qa
Expand Down Expand Up @@ -296,7 +295,7 @@
/packages/kbn-config/ @elastic/kibana-core
/packages/kbn-logging/ @elastic/kibana-core
/packages/kbn-logging-mocks/ @elastic/kibana-core
/packages/kbn-http-tools/ @elastic/kibana-core
/packages/kbn-server-http-tools/ @elastic/kibana-core
/packages/kbn-es-errors/ @elastic/kibana-core
/src/plugins/saved_objects_management/ @elastic/kibana-core
/src/plugins/advanced_settings/ @elastic/kibana-core
Expand Down
2 changes: 1 addition & 1 deletion api_docs/actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/actions
title: "actions"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the actions plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand Down
2 changes: 1 addition & 1 deletion api_docs/advanced_settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/advancedSettings
title: "advancedSettings"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the advancedSettings plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand Down
2 changes: 1 addition & 1 deletion api_docs/aiops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/aiops
title: "aiops"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the aiops plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand Down
2 changes: 1 addition & 1 deletion api_docs/alerting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/alerting
title: "alerting"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the alerting plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand Down
94 changes: 71 additions & 23 deletions api_docs/apm.devdocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -756,19 +756,7 @@
"initialIsOpen": false
}
],
"enums": [
{
"parentPluginId": "apm",
"id": "def-server.ProcessorEvent",
"type": "Enum",
"tags": [],
"label": "ProcessorEvent",
"description": [],
"path": "x-pack/plugins/apm/common/processor_event.ts",
"deprecated": false,
"initialIsOpen": false
}
],
"enums": [],
"misc": [
{
"parentPluginId": "apm",
Expand Down Expand Up @@ -987,23 +975,53 @@
"<[",
"LiteralC",
"<",
"ProcessorEvent",
{
"pluginId": "observability",
"scope": "common",
"docId": "kibObservabilityPluginApi",
"section": "def-common.ProcessorEvent",
"text": "ProcessorEvent"
},
".transaction>, ",
"LiteralC",
"<",
"ProcessorEvent",
{
"pluginId": "observability",
"scope": "common",
"docId": "kibObservabilityPluginApi",
"section": "def-common.ProcessorEvent",
"text": "ProcessorEvent"
},
".error>, ",
"LiteralC",
"<",
"ProcessorEvent",
{
"pluginId": "observability",
"scope": "common",
"docId": "kibObservabilityPluginApi",
"section": "def-common.ProcessorEvent",
"text": "ProcessorEvent"
},
".metric>, ",
"LiteralC",
"<",
"ProcessorEvent",
{
"pluginId": "observability",
"scope": "common",
"docId": "kibObservabilityPluginApi",
"section": "def-common.ProcessorEvent",
"text": "ProcessorEvent"
},
".span>, ",
"LiteralC",
"<",
"ProcessorEvent",
{
"pluginId": "observability",
"scope": "common",
"docId": "kibObservabilityPluginApi",
"section": "def-common.ProcessorEvent",
"text": "ProcessorEvent"
},
".profile>]>; }>]>; }>, ",
{
"pluginId": "apm",
Expand Down Expand Up @@ -1113,23 +1131,53 @@
"<[",
"LiteralC",
"<",
"ProcessorEvent",
{
"pluginId": "observability",
"scope": "common",
"docId": "kibObservabilityPluginApi",
"section": "def-common.ProcessorEvent",
"text": "ProcessorEvent"
},
".transaction>, ",
"LiteralC",
"<",
"ProcessorEvent",
{
"pluginId": "observability",
"scope": "common",
"docId": "kibObservabilityPluginApi",
"section": "def-common.ProcessorEvent",
"text": "ProcessorEvent"
},
".error>, ",
"LiteralC",
"<",
"ProcessorEvent",
{
"pluginId": "observability",
"scope": "common",
"docId": "kibObservabilityPluginApi",
"section": "def-common.ProcessorEvent",
"text": "ProcessorEvent"
},
".metric>, ",
"LiteralC",
"<",
"ProcessorEvent",
{
"pluginId": "observability",
"scope": "common",
"docId": "kibObservabilityPluginApi",
"section": "def-common.ProcessorEvent",
"text": "ProcessorEvent"
},
".span>, ",
"LiteralC",
"<",
"ProcessorEvent",
{
"pluginId": "observability",
"scope": "common",
"docId": "kibObservabilityPluginApi",
"section": "def-common.ProcessorEvent",
"text": "ProcessorEvent"
},
".profile>]>; id: ",
"StringC",
"; }>; }>, ",
Expand Down
7 changes: 2 additions & 5 deletions api_docs/apm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/apm
title: "apm"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the apm plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apm']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand All @@ -18,7 +18,7 @@ Contact [APM UI](https://github.com/orgs/elastic/teams/apm-ui) for questions reg

| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
| 40 | 0 | 40 | 54 |
| 39 | 0 | 39 | 53 |

## Client

Expand All @@ -42,9 +42,6 @@ Contact [APM UI](https://github.com/orgs/elastic/teams/apm-ui) for questions reg
### Interfaces
<DocDefinitionList data={apmObj.server.interfaces}/>

### Enums
<DocDefinitionList data={apmObj.server.enums}/>

### Consts, variables and types
<DocDefinitionList data={apmObj.server.misc}/>

2 changes: 1 addition & 1 deletion api_docs/banners.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/banners
title: "banners"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the banners plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'banners']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand Down
2 changes: 1 addition & 1 deletion api_docs/bfetch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/bfetch
title: "bfetch"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the bfetch plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'bfetch']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand Down
2 changes: 1 addition & 1 deletion api_docs/canvas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/canvas
title: "canvas"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the canvas plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'canvas']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand Down
2 changes: 1 addition & 1 deletion api_docs/cases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/cases
title: "cases"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the cases plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cases']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand Down
2 changes: 1 addition & 1 deletion api_docs/charts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/charts
title: "charts"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the charts plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'charts']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand Down
2 changes: 1 addition & 1 deletion api_docs/cloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/cloud
title: "cloud"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the cloud plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloud']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand Down
2 changes: 1 addition & 1 deletion api_docs/cloud_security_posture.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/cloudSecurityPosture
title: "cloudSecurityPosture"
image: https://source.unsplash.com/400x175/?github
summary: API docs for the cloudSecurityPosture plugin
date: 2022-08-02
date: 2022-08-04
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloudSecurityPosture']
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
---
Expand Down
Loading

0 comments on commit 1083809

Please sign in to comment.