Skip to content

Commit

Permalink
Merge branch 'main' into kbn-148412-follow-up-ftr-bulk-delete
Browse files Browse the repository at this point in the history
  • Loading branch information
kibanamachine authored Jan 30, 2023
2 parents 0604b76 + a16806d commit 4360353
Show file tree
Hide file tree
Showing 1,521 changed files with 434,150 additions and 13,756 deletions.
1 change: 1 addition & 0 deletions .buildkite/ftr_configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ enabled:
- x-pack/test/cases_api_integration/security_and_spaces/config_no_public_base_url.ts
- x-pack/test/cases_api_integration/spaces_only/config.ts
- x-pack/test/cloud_security_posture_functional/config.ts
- x-pack/test/cloud_security_posture_api/config.ts
- x-pack/test/detection_engine_api_integration/basic/config.ts
- x-pack/test/detection_engine_api_integration/security_and_spaces/group1/config.ts
- x-pack/test/detection_engine_api_integration/security_and_spaces/group2/config.ts
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/pipelines/scalability/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ steps:
agents:
queue: kb-static-scalability
timeout_in_minutes: 90
retry:
automatic:
- exit_status: '*'
limit: 1

- wait: ~
continue_on_failure: true
Expand Down
10 changes: 10 additions & 0 deletions .buildkite/scripts/steps/artifacts/docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ echo "--- Push manifest"
docker manifest push "$KIBANA_IMAGE"
docker logout docker.elastic.co

cat << EOF | buildkite-agent annotate --style "info" --context image
### Container Images
Manifest: \`$KIBANA_IMAGE\`
AMD64: \`$KIBANA_IMAGE-amd64\`
ARM64: \`$KIBANA_IMAGE-arm64\`
EOF

echo "--- Build dependencies report"
node scripts/licenses_csv_report "--csv=target/dependencies-$GIT_ABBREV_COMMIT.csv"

Expand Down
1 change: 0 additions & 1 deletion .buildkite/scripts/steps/storybooks/build_and_upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const STORYBOOKS = [
'security_solution',
'shared_ux',
'triggers_actions_ui',
'ui_actions',
'ui_actions_enhanced',
'language_documentation_popover',
'unified_search',
Expand Down
2 changes: 1 addition & 1 deletion .ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# NOTE: This Dockerfile is ONLY used to run certain tasks in CI. It is not used to run Kibana or as a distributable.
# If you're looking for the Kibana Docker image distributable, please see: src/dev/build/tasks/os_packages/docker_generator/templates/dockerfile.template.ts

ARG NODE_VERSION=18.13.0
ARG NODE_VERSION=16.19.0

FROM node:${NODE_VERSION} AS base

Expand Down
73 changes: 73 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
paths-ignore:
- '**/*.test.*'
- packages/kbn-ambient-common-types
- packages/kbn-ambient-ftr-types
- packages/kbn-ambient-storybook-types
- packages/kbn-ambient-ui-types
- packages/kbn-apm-synthtrace
- packages/kbn-axe-config
- packages/kbn-babel-plugin-package-imports
- packages/kbn-babel-preset
- packages/kbn-babel-register
- packages/kbn-babel-transform
- packages/kbn-bazel-packages
- packages/kbn-bazel-runner
- packages/kbn-ci-stats-core
- packages/kbn-ci-stats-performance-metrics
- packages/kbn-ci-stats-reporter
- packages/kbn-cli-dev-mode
- packages/core/test-helpers/core-test-helpers-kbn-server
- packages/kbn-cypress-config
- packages/kbn-dev-cli-errors
- packages/kbn-dev-cli-runner
- packages/kbn-dev-proc-runner
- packages/kbn-dev-utils
- packages/kbn-docs-utils
- packages/kbn-es
- packages/kbn-es-archiver
- packages/kbn-eslint-config
- packages/kbn-eslint-plugin-disable
- packages/kbn-eslint-plugin-eslint
- packages/kbn-eslint-plugin-imports
- packages/kbn-expect
- packages/kbn-failed-test-reporter-cli
- packages/kbn-find-used-node-modules
- packages/kbn-ftr-common-functional-services
- packages/kbn-ftr-screenshot-filename
- packages/kbn-generate
- packages/kbn-get-repo-files
- packages/kbn-import-resolver
- packages/kbn-jest-serializers
- packages/kbn-journeys
- packages/kbn-kibana-manifest-schema
- packages/kbn-managed-vscode-config
- packages/kbn-managed-vscode-config-cli
- packages/kbn-optimizer
- packages/kbn-optimizer-webpack-helpers
- packages/kbn-package-map
- packages/kbn-peggy
- packages/kbn-peggy-loader
- packages/kbn-performance-testing-dataset-extractor
- packages/kbn-plugin-generator
- packages/kbn-plugin-helpers
- packages/kbn-repo-path
- packages/kbn-repo-source-classifier
- packages/kbn-repo-source-classifier-cli
- packages/kbn-some-dev-log
- packages/kbn-sort-package-json
- packages/kbn-spec-to-console
- packages/kbn-stdio-dev-helpers
- packages/kbn-storybook
- packages/kbn-telemetry-tools
- packages/kbn-test
- packages/kbn-test-jest-helpers
- packages/kbn-test-subj-selector
- packages/kbn-tooling-log
- packages/kbn-ts-project-linter
- packages/kbn-ts-project-linter-cli
- packages/kbn-ts-projects
- packages/kbn-ts-type-check-cli
- packages/kbn-web-worker-stub
- packages/kbn-yarn-lock-validator
- test
- x-pack/test
49 changes: 49 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "CodeQL"

on:
schedule:
- cron: '27 21 * * *' # At 21:27 every day

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# branch: [ 'main', '7.17' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3
# TODO: Enable once a `.github/codeql/codeql-config.yml` file has been committed to 7.17
# with:
# ref: ${{ matrix.branch }}

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml

# TODO: Possibly required to follow all call paths, however, when enabled, the step below runs out of memory.
# Possible workarounds: Apply for access to the GitHub beta where we can use beefier machines, or run it ourselves on Buildkite
# - name: yarn kbn bootstrap
# run: |
# mkdir ~/.npm-global
# npm config set prefix '~/.npm-global'
# export PATH=~/.npm-global/bin:$PATH
# yarn kbn bootstrap --no-validate --no-vscode

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
# env:
# NODE_OPTIONS: "--max-old-space-size=6144"
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.13.0
16.19.0
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.13.0
16.19.0
12 changes: 6 additions & 6 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install
# Setup the Node.js toolchain for the architectures we want to support
node_repositories(
node_repositories = {
"18.13.0-darwin_amd64": ("node-v18.13.0-darwin-x64.tar.gz", "node-v18.13.0-darwin-x64", "8b57c4da4ff6cca19d5ef7953f8816e3406d1508a2e4ee7f997984b3b1d11b77"),
"18.13.0-darwin_arm64": ("node-v18.13.0-darwin-arm64.tar.gz", "node-v18.13.0-darwin-arm64", "418d535e64dbcbd628715180c2de4ffcecb8a84b81f233c60e6ab9f0d795c249"),
"18.13.0-linux_arm64": ("node-v18.13.0-linux-arm64.tar.xz", "node-v18.13.0-linux-arm64", "5b338667822341d1ea3b18d5b37d442a655829b9eafdc5f9008f00b8451ac148"),
"18.13.0-linux_amd64": ("node-v18.13.0-linux-x64.tar.xz", "node-v18.13.0-linux-x64", "7f5d6922a91986ef059ba8a4396aa435440adacfe6fc6fab60a857c8f2cf5e7a"),
"18.13.0-windows_amd64": ("node-v18.13.0-win-x64.zip", "node-v18.13.0-win-x64", "29c99ad1167ddbd72f2b15e91b560e36ac785b1873ba6791ab50d9d62f1957e2"),
"16.19.0-darwin_amd64": ("node-v16.19.0-darwin-x64.tar.gz", "node-v16.19.0-darwin-x64", "491e5a5592eca1961dcbb1fae28567428ce56ce9cc7977b04041e163e0c1670c"),
"16.19.0-darwin_arm64": ("node-v16.19.0-darwin-arm64.tar.gz", "node-v16.19.0-darwin-arm64", "5c9434fbb0f323fecf3d261b23a2e544919380c5043d0046d9745682fefd9cde"),
"16.19.0-linux_arm64": ("node-v16.19.0-linux-arm64.tar.xz", "node-v16.19.0-linux-arm64", "9072c995052f832678fe8fab18e960bd9853f30e481787e53f8dd1ec8aaa3bb6"),
"16.19.0-linux_amd64": ("node-v16.19.0-linux-x64.tar.xz", "node-v16.19.0-linux-x64", "c88b52497ab38a3ddf526e5b46a41270320409109c3f74171b241132984fd08f"),
"16.19.0-windows_amd64": ("node-v16.19.0-win-x64.zip", "node-v16.19.0-win-x64", "534ca7a24e999c81cec847a498cc43d47e2bb158f6edf639e5297f2718350e96"),
},
node_version = "18.13.0",
node_version = "16.19.0",
node_urls = [
"https://nodejs.org/dist/v{version}/{filename}",
],
Expand Down
2 changes: 1 addition & 1 deletion api_docs/actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/actions
title: "actions"
image: https://source.unsplash.com/400x175/?github
description: API docs for the actions plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions']
---
import actionsObj from './actions.devdocs.json';
Expand Down
8 changes: 4 additions & 4 deletions api_docs/advanced_settings.devdocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@
"signature": [
"({\n def,\n name,\n value,\n isCustom,\n isOverridden,\n}: { def: ",
{
"pluginId": "@kbn/core-ui-settings-common",
"pluginId": "@kbn/core-ui-settings-browser",
"scope": "common",
"docId": "kibKbnCoreUiSettingsCommonPluginApi",
"docId": "kibKbnCoreUiSettingsBrowserPluginApi",
"section": "def-common.PublicUiSettingsParams",
"text": "PublicUiSettingsParams"
},
Expand Down Expand Up @@ -354,9 +354,9 @@
"description": [],
"signature": [
{
"pluginId": "@kbn/core-ui-settings-common",
"pluginId": "@kbn/core-ui-settings-browser",
"scope": "common",
"docId": "kibKbnCoreUiSettingsCommonPluginApi",
"docId": "kibKbnCoreUiSettingsBrowserPluginApi",
"section": "def-common.PublicUiSettingsParams",
"text": "PublicUiSettingsParams"
},
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 @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/advancedSettings
title: "advancedSettings"
image: https://source.unsplash.com/400x175/?github
description: API docs for the advancedSettings plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings']
---
import advancedSettingsObj from './advanced_settings.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/aiops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/aiops
title: "aiops"
image: https://source.unsplash.com/400x175/?github
description: API docs for the aiops plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops']
---
import aiopsObj from './aiops.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/alerting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/alerting
title: "alerting"
image: https://source.unsplash.com/400x175/?github
description: API docs for the alerting plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting']
---
import alertingObj from './alerting.devdocs.json';
Expand Down
34 changes: 32 additions & 2 deletions api_docs/apm.devdocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5370,7 +5370,35 @@
"TypeC",
"<{ serviceName: ",
"StringC",
"; }>; }>, ",
"; }>; query: ",
"IntersectionC",
"<[",
"TypeC",
"<{ start: ",
"Type",
"<number, string, unknown>; end: ",
"Type",
"<number, string, unknown>; }>, ",
"TypeC",
"<{ environment: ",
"UnionC",
"<[",
"LiteralC",
"<\"ENVIRONMENT_NOT_DEFINED\">, ",
"LiteralC",
"<\"ENVIRONMENT_ALL\">, ",
"BrandC",
"<",
"StringC",
", ",
{
"pluginId": "@kbn/io-ts-utils",
"scope": "common",
"docId": "kibKbnIoTsUtilsPluginApi",
"section": "def-common.NonEmptyStringBrand",
"text": "NonEmptyStringBrand"
},
">]>; }>]>; }>, ",
{
"pluginId": "apm",
"scope": "server",
Expand Down Expand Up @@ -6160,7 +6188,9 @@
"section": "def-server.APMRouteHandlerResources",
"text": "APMRouteHandlerResources"
},
", { agentName?: undefined; runtimeName?: undefined; } | { agentName: string | undefined; runtimeName: string | undefined; }, ",
", { agentName?: string | undefined; runtimeName?: string | undefined; serverlessType?: ",
"ServerlessType",
" | undefined; }, ",
"APMRouteCreateOptions",
">; \"GET /internal/apm/services/{serviceName}/metadata/icons\": ",
{
Expand Down
4 changes: 2 additions & 2 deletions api_docs/apm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/apm
title: "apm"
image: https://source.unsplash.com/400x175/?github
description: API docs for the apm plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apm']
---
import apmObj from './apm.devdocs.json';
Expand All @@ -21,7 +21,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 |
|-------------------|-----------|------------------------|-----------------|
| 42 | 0 | 42 | 61 |
| 42 | 0 | 42 | 62 |

## Client

Expand Down
2 changes: 1 addition & 1 deletion api_docs/banners.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/banners
title: "banners"
image: https://source.unsplash.com/400x175/?github
description: API docs for the banners plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'banners']
---
import bannersObj from './banners.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/bfetch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/bfetch
title: "bfetch"
image: https://source.unsplash.com/400x175/?github
description: API docs for the bfetch plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'bfetch']
---
import bfetchObj from './bfetch.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/canvas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/canvas
title: "canvas"
image: https://source.unsplash.com/400x175/?github
description: API docs for the canvas plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'canvas']
---
import canvasObj from './canvas.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/cases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cases
title: "cases"
image: https://source.unsplash.com/400x175/?github
description: API docs for the cases plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cases']
---
import casesObj from './cases.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/charts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/charts
title: "charts"
image: https://source.unsplash.com/400x175/?github
description: API docs for the charts plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'charts']
---
import chartsObj from './charts.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/cloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloud
title: "cloud"
image: https://source.unsplash.com/400x175/?github
description: API docs for the cloud plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloud']
---
import cloudObj from './cloud.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/cloud_chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloudChat
title: "cloudChat"
image: https://source.unsplash.com/400x175/?github
description: API docs for the cloudChat plugin
date: 2023-01-26
date: 2023-01-30
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloudChat']
---
import cloudChatObj from './cloud_chat.devdocs.json';
Expand Down
Loading

0 comments on commit 4360353

Please sign in to comment.