Skip to content

Commit

Permalink
Merge branch 'main' into data_views_versioned_router
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Jun 12, 2023
2 parents ff77f04 + 8f3c19c commit 2b2bc05
Show file tree
Hide file tree
Showing 2,396 changed files with 63,614 additions and 20,945 deletions.
7 changes: 4 additions & 3 deletions .buildkite/ftr_configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ disabled:
- x-pack/test/security_solution_cypress/config.ts
- x-pack/test/security_solution_cypress/response_ops_cli_config.ts
- x-pack/test/security_solution_cypress/upgrade_config.ts
- x-pack/test/threat_intelligence_cypress/visual_config.ts
- x-pack/test/threat_intelligence_cypress/cli_config_parallel.ts
- x-pack/test/threat_intelligence_cypress/config.ts
- x-pack/test/functional_enterprise_search/visual_config.ts
Expand All @@ -57,7 +56,8 @@ disabled:

# Elastic Synthetics configs
- x-pack/plugins/synthetics/e2e/config.ts
- x-pack/plugins/synthetics/e2e/synthetics_run.ts
- x-pack/plugins/synthetics/e2e/uptime/synthetics_run.ts
- x-pack/plugins/synthetics/e2e/synthetics/synthetics_run.ts
- x-pack/plugins/ux/e2e/synthetics_run.ts
- x-pack/plugins/exploratory_view/e2e/synthetics_run.ts

Expand Down Expand Up @@ -373,7 +373,8 @@ enabled:
- x-pack/test/security_functional/user_profiles.config.ts
- x-pack/test/security_functional/expired_session.config.ts
- x-pack/test/security_solution_endpoint_api_int/config.ts
- x-pack/test/security_solution_endpoint/config.ts
- x-pack/test/security_solution_endpoint/endpoint.config.ts
- x-pack/test/security_solution_endpoint/integrations.config.ts
- x-pack/test/session_view/basic/config.ts
- x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts
- x-pack/test/spaces_api_integration/security_and_spaces/copy_to_space_config_basic.ts
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/pipelines/flaky_tests/groups.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"groups": [
{
"key": "cypress/security_solution_investigations",
"name": "Security Solution Investigations - Cypress"
},
{
"key": "cypress/security_solution",
"name": "Security Solution - Cypress"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ steps:
agents:
queue: n2-4-spot
depends_on: build
timeout_in_minutes: 120
timeout_in_minutes: 60
artifact_paths:
- 'x-pack/plugins/exploratory_view/e2e/.journeys/**/*'
retry:
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipelines/pull_request/synthetics_plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ steps:
agents:
queue: n2-4-spot
depends_on: build
timeout_in_minutes: 120
timeout_in_minutes: 60
artifact_paths:
- 'x-pack/plugins/synthetics/e2e/.journeys/**/*'
retry:
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipelines/pull_request/threat_intelligence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ steps:
queue: n2-4-spot
depends_on: build
timeout_in_minutes: 120
parallelism: 4
parallelism: 2
retry:
automatic:
- exit_status: '-1'
Expand Down
15 changes: 15 additions & 0 deletions .buildkite/pipelines/pull_request/uptime_plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
steps:
- command: .buildkite/scripts/steps/functional/uptime_plugin.sh
label: 'Uptime @elastic/synthetics Tests'
agents:
queue: n2-4-spot
depends_on: build
timeout_in_minutes: 60
artifact_paths:
- 'x-pack/plugins/synthetics/e2e/.journeys/**/*'
retry:
automatic:
- exit_status: '-1'
limit: 3
- exit_status: '*'
limit: 1
2 changes: 1 addition & 1 deletion .buildkite/pipelines/pull_request/ux_plugin_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ steps:
agents:
queue: n2-4-spot
depends_on: build
timeout_in_minutes: 120
timeout_in_minutes: 60
artifact_paths:
- 'x-pack/plugins/ux/e2e/.journeys/**/*'
retry:
Expand Down
1 change: 1 addition & 0 deletions .buildkite/scripts/pipelines/pull_request/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ const uploadPipeline = (pipelineContent: string | object) => {
])
) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/synthetics_plugin.yml'));
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/uptime_plugin.yml'));
}

if (await doAnyChangesMatch([/^x-pack\/plugins\/ux/, /^x-pack\/plugins\/exploratory_view/])) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -euo pipefail

echo "--- Trigger unsupported ftr tests"
ts-node .buildkite/scripts/steps/trigger_pipeline.ts kibana-on-merge-unsupported-ftrs "$BUILDKITE_BRANCH" "$BUILDKITE_COMMIT"
ts-node .buildkite/scripts/steps/trigger_pipeline.ts kibana-on-merge-unsupported-ftrs "$BUILDKITE_BRANCH" "$BUILDKITE_COMMIT" "$BUILDKITE_BUILD_ID"
12 changes: 6 additions & 6 deletions .buildkite/scripts/steps/functional/threat_intelligence.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ set -euo pipefail
source .buildkite/scripts/steps/functional/common.sh

export JOB=kibana-threat-intelligence-chrome
export CLI_NUMBER=${CLI_NUMBER:-$((BUILDKITE_PARALLEL_JOB+1))}
export CLI_COUNT=${CLI_COUNT:-$BUILDKITE_PARALLEL_JOB_COUNT}
export KIBANA_INSTALL_DIR=${KIBANA_BUILD_LOCATION}

Xvfb :99 -screen 0 1600x1200x24 &

export DISPLAY=:99

echo "--- Threat Intelligence tests (Chrome)"

node scripts/functional_tests \
--debug --bail \
--kibana-install-dir "$KIBANA_BUILD_LOCATION" \
--config x-pack/test/threat_intelligence_cypress/cli_config_parallel.ts
yarn --cwd x-pack/plugins/threat_intelligence cypress:run
16 changes: 16 additions & 0 deletions .buildkite/scripts/steps/functional/uptime_plugin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -euo pipefail

source .buildkite/scripts/common/util.sh

.buildkite/scripts/bootstrap.sh
.buildkite/scripts/download_build_artifacts.sh

export JOB=kibana-uptime-plugin

echo "--- Uptime plugin @elastic/synthetics Tests"

cd "$XPACK_DIR"

node plugins/synthetics/scripts/uptime_e2e.js --kibana-install-dir "$KIBANA_BUILD_LOCATION" ${GREP:+--grep \"${GREP}\"}
4 changes: 4 additions & 0 deletions .buildkite/scripts/steps/trigger_pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ import { BuildkiteClient } from '#pipeline-utils';
const pipelineSlug = process.argv[2];
const branch = process.argv[3] || 'main';
const commit = process.argv[4] || 'HEAD';
const kibanaBuildId = process.argv[5] || '';

(async () => {
try {
const client = new BuildkiteClient();
const build = await client.triggerBuild(pipelineSlug, {
commit,
branch,
env: {
...(kibanaBuildId && { KIBANA_BUILD_ID: kibanaBuildId }),
},
ignore_pipeline_branch_filters: true, // Required because of a Buildkite bug
});
console.log(`Triggered build: ${build.web_url}`);
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-06-06
date: 2023-06-11
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions']
---
import actionsObj from './actions.devdocs.json';
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-06-06
date: 2023-06-11
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-06-06
date: 2023-06-11
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops']
---
import aiopsObj from './aiops.devdocs.json';
Expand Down
181 changes: 179 additions & 2 deletions api_docs/alerting.devdocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2628,15 +2628,174 @@
"parentPluginId": "alerting",
"id": "def-server.RuleExecutorServices.alertFactory",
"type": "CompoundType",
"tags": [],
"tags": [
"deprecated"
],
"label": "alertFactory",
"description": [],
"description": [
"\nDeprecate alertFactory and remove when all rules are onboarded to\nthe alertsClient"
],
"signature": [
"Pick<",
"AlertFactory",
"<State, Context, ActionGroupIds>, \"create\" | \"done\"> & { alertLimit: Pick<{ getValue: () => number; setLimitReached: (reached: boolean) => void; checkLimitUsage: () => void; }, \"getValue\" | \"setLimitReached\">; }"
],
"path": "x-pack/plugins/alerting/server/types.ts",
"deprecated": true,
"trackAdoption": false,
"references": [
{
"plugin": "ruleRegistry",
"path": "x-pack/plugins/rule_registry/server/utils/create_lifecycle_executor.ts"
},
{
"plugin": "ruleRegistry",
"path": "x-pack/plugins/rule_registry/server/utils/create_persistence_rule_type_wrapper.ts"
},
{
"plugin": "ruleRegistry",
"path": "x-pack/plugins/rule_registry/server/utils/create_persistence_rule_type_wrapper.ts"
},
{
"plugin": "observability",
"path": "x-pack/plugins/observability/server/lib/rules/slo_burn_rate/executor.ts"
},
{
"plugin": "observability",
"path": "x-pack/plugins/observability/server/lib/rules/threshold/threshold_executor.ts"
},
{
"plugin": "ml",
"path": "x-pack/plugins/ml/server/lib/alerts/register_jobs_monitoring_rule_type.ts"
},
{
"plugin": "ml",
"path": "x-pack/plugins/ml/server/lib/alerts/register_jobs_monitoring_rule_type.ts"
},
{
"plugin": "ml",
"path": "x-pack/plugins/ml/server/lib/alerts/register_anomaly_detection_alert_type.ts"
},
{
"plugin": "ml",
"path": "x-pack/plugins/ml/server/lib/alerts/register_anomaly_detection_alert_type.ts"
},
{
"plugin": "infra",
"path": "x-pack/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts"
},
{
"plugin": "infra",
"path": "x-pack/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts"
},
{
"plugin": "infra",
"path": "x-pack/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts"
},
{
"plugin": "infra",
"path": "x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.ts"
},
{
"plugin": "infra",
"path": "x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.ts"
},
{
"plugin": "infra",
"path": "x-pack/plugins/infra/server/lib/alerting/metric_anomaly/metric_anomaly_executor.ts"
},
{
"plugin": "securitySolution",
"path": "x-pack/plugins/security_solution/server/lib/detection_engine/rule_actions_legacy/logic/notifications/legacy_rules_notification_alert_type.ts"
},
{
"plugin": "securitySolution",
"path": "x-pack/plugins/security_solution/server/lib/detection_engine/rule_preview/api/preview_rules/route.ts"
},
{
"plugin": "monitoring",
"path": "x-pack/plugins/monitoring/server/alerts/base_rule.ts"
},
{
"plugin": "stackAlerts",
"path": "x-pack/plugins/stack_alerts/server/rule_types/index_threshold/rule_type.ts"
},
{
"plugin": "stackAlerts",
"path": "x-pack/plugins/stack_alerts/server/rule_types/index_threshold/rule_type.ts"
},
{
"plugin": "stackAlerts",
"path": "x-pack/plugins/stack_alerts/server/rule_types/geo_containment/lib/get_entities_and_generate_alerts.ts"
},
{
"plugin": "stackAlerts",
"path": "x-pack/plugins/stack_alerts/server/rule_types/geo_containment/executor.ts"
},
{
"plugin": "stackAlerts",
"path": "x-pack/plugins/stack_alerts/server/rule_types/geo_containment/executor.ts"
},
{
"plugin": "stackAlerts",
"path": "x-pack/plugins/stack_alerts/server/rule_types/es_query/executor.ts"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/legacy_uptime/lib/alerts/common.ts"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/legacy_uptime/lib/alerts/status_check.ts"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/legacy_uptime/lib/alerts/tls.ts"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/legacy_uptime/lib/alerts/tls_legacy.ts"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/legacy_uptime/lib/alerts/duration_anomaly.ts"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/alert_rules/common.ts"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/synthetics/server/alert_rules/status_rule/monitor_status_rule.ts"
},
{
"plugin": "transform",
"path": "x-pack/plugins/transform/server/lib/alerting/transform_health_rule_type/register_transform_health_rule_type.ts"
},
{
"plugin": "ruleRegistry",
"path": "x-pack/plugins/rule_registry/server/utils/rule_executor.test_helpers.ts"
},
{
"plugin": "observability",
"path": "x-pack/plugins/observability/server/lib/rules/slo_burn_rate/executor.test.ts"
}
]
},
{
"parentPluginId": "alerting",
"id": "def-server.RuleExecutorServices.alertsClient",
"type": "CompoundType",
"tags": [],
"label": "alertsClient",
"description": [
"\nOnly available when framework alerts are enabled and rule\ntype has registered alert context with the framework with shouldWrite set to true"
],
"signature": [
"PublicAlertsClient",
"<AlertData, State, Context, ActionGroupIds> | null"
],
"path": "x-pack/plugins/alerting/server/types.ts",
"deprecated": false,
"trackAdoption": false
},
Expand Down Expand Up @@ -9421,6 +9580,9 @@
"tags": [],
"label": "INTERNAL_ALERTING_API_FIND_RULES_PATH",
"description": [],
"signature": [
"\"/internal/alerting/rules/_find\""
],
"path": "x-pack/plugins/alerting/common/index.ts",
"deprecated": false,
"trackAdoption": false,
Expand Down Expand Up @@ -9456,6 +9618,21 @@
"trackAdoption": false,
"initialIsOpen": false
},
{
"parentPluginId": "alerting",
"id": "def-common.INTERNAL_ALERTING_SNOOZE_RULE",
"type": "string",
"tags": [],
"label": "INTERNAL_ALERTING_SNOOZE_RULE",
"description": [],
"signature": [
"\"/internal/alerting/rule/{id}/_snooze\""
],
"path": "x-pack/plugins/alerting/common/index.ts",
"deprecated": false,
"trackAdoption": false,
"initialIsOpen": false
},
{
"parentPluginId": "alerting",
"id": "def-common.INTERNAL_BASE_ALERTING_API_PATH",
Expand Down
Loading

0 comments on commit 2b2bc05

Please sign in to comment.