Skip to content

Commit

Permalink
Merge branch 'main' into 190637-remove-flaky-test
Browse files Browse the repository at this point in the history
  • Loading branch information
neptunian authored Aug 28, 2024
2 parents c440198 + 450f30d commit 2ff7826
Show file tree
Hide file tree
Showing 967 changed files with 10,536 additions and 4,897 deletions.
16 changes: 4 additions & 12 deletions .buildkite/pipeline-utils/buildkite/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ describe('BuildkiteClient', () => {
id: 'id-1',
retried_in_job_id: 'id-2',
state: 'failed',
agent: {
meta_data: ['spot=true'],
},
agent_query_rules: ['preemptible=true'],
retried: true,
exit_status: -1,
type: 'script',
Expand All @@ -35,9 +33,7 @@ describe('BuildkiteClient', () => {
const retry: Job = {
id: 'id-2',
state: 'passed',
agent: {
meta_data: ['spot=true'],
},
agent_query_rules: ['preemptible=true'],
type: 'script',
} as Job;

Expand All @@ -58,9 +54,7 @@ describe('BuildkiteClient', () => {
id: 'id-1',
retried_in_job_id: 'id-2',
state: 'failed',
agent: {
meta_data: ['spot=true'],
},
agent_query_rules: ['preemptible=true'],
retried: true,
exit_status: 1,
type: 'script',
Expand All @@ -69,9 +63,7 @@ describe('BuildkiteClient', () => {
const retry: Job = {
id: 'id-2',
state: 'passed',
agent: {
meta_data: ['spot=true'],
},
agent_query_rules: ['preemptible=true'],
type: 'script',
} as Job;

Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipeline-utils/buildkite/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class BuildkiteClient {
hasRetries = true;
const isPreemptionFailure =
job.state === 'failed' &&
job.agent?.meta_data?.some((el) => ['spot=true', 'gcp:preemptible=true'].includes(el)) &&
job.agent_query_rules?.includes('preemptible=true') &&
job.exit_status === -1;

if (!isPreemptionFailure) {
Expand Down
1 change: 1 addition & 0 deletions .i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"presentationPanel": "src/plugins/presentation_panel",
"embeddableExamples": "examples/embeddable_examples",
"esQuery": "packages/kbn-es-query/src",
"kbnGridLayout": "packages/kbn-grid-layout",
"esUi": "src/plugins/es_ui_shared",
"expandableFlyout": "packages/kbn-expandable-flyout",
"expressionError": "src/plugins/expression_error",
Expand Down
134 changes: 125 additions & 9 deletions api_docs/actions.devdocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@
"label": "addComment",
"description": [],
"signature": [
"({ incidentId, comment, }: { incidentId: string; comment: string; }) => Promise<void>"
"({ incidentId, comment, }: { incidentId: string; comment: string; }, connectorUsageCollector: ",
"ConnectorUsageCollector",
") => Promise<void>"
],
"path": "x-pack/plugins/actions/server/sub_action_framework/case.ts",
"deprecated": false,
Expand All @@ -328,7 +330,7 @@
"id": "def-server.CaseConnector.addComment.$1",
"type": "Object",
"tags": [],
"label": "{\n incidentId,\n comment,\n }",
"label": "{\n incidentId,\n comment,\n }",
"description": [],
"path": "x-pack/plugins/actions/server/sub_action_framework/case.ts",
"deprecated": false,
Expand Down Expand Up @@ -357,6 +359,21 @@
"trackAdoption": false
}
]
},
{
"parentPluginId": "actions",
"id": "def-server.CaseConnector.addComment.$2",
"type": "Object",
"tags": [],
"label": "connectorUsageCollector",
"description": [],
"signature": [
"ConnectorUsageCollector"
],
"path": "x-pack/plugins/actions/server/sub_action_framework/case.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
Expand All @@ -369,7 +386,9 @@
"label": "createIncident",
"description": [],
"signature": [
"(incident: Incident) => Promise<",
"(incident: Incident, connectorUsageCollector: ",
"ConnectorUsageCollector",
") => Promise<",
"ExternalServiceIncidentResponse",
">"
],
Expand All @@ -391,6 +410,21 @@
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "actions",
"id": "def-server.CaseConnector.createIncident.$2",
"type": "Object",
"tags": [],
"label": "connectorUsageCollector",
"description": [],
"signature": [
"ConnectorUsageCollector"
],
"path": "x-pack/plugins/actions/server/sub_action_framework/case.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
Expand All @@ -403,7 +437,9 @@
"label": "updateIncident",
"description": [],
"signature": [
"({ incidentId, incident, }: { incidentId: string; incident: Incident; }) => Promise<",
"({ incidentId, incident, }: { incidentId: string; incident: Incident; }, connectorUsageCollector: ",
"ConnectorUsageCollector",
") => Promise<",
"ExternalServiceIncidentResponse",
">"
],
Expand All @@ -416,7 +452,7 @@
"id": "def-server.CaseConnector.updateIncident.$1",
"type": "Object",
"tags": [],
"label": "{\n incidentId,\n incident,\n }",
"label": "{\n incidentId,\n incident,\n }",
"description": [],
"path": "x-pack/plugins/actions/server/sub_action_framework/case.ts",
"deprecated": false,
Expand Down Expand Up @@ -448,6 +484,21 @@
"trackAdoption": false
}
]
},
{
"parentPluginId": "actions",
"id": "def-server.CaseConnector.updateIncident.$2",
"type": "Object",
"tags": [],
"label": "connectorUsageCollector",
"description": [],
"signature": [
"ConnectorUsageCollector"
],
"path": "x-pack/plugins/actions/server/sub_action_framework/case.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
Expand All @@ -460,7 +511,9 @@
"label": "getIncident",
"description": [],
"signature": [
"({ id }: { id: string; }) => Promise<GetIncidentResponse>"
"({ id }: { id: string; }, connectorUsageCollector: ",
"ConnectorUsageCollector",
") => Promise<GetIncidentResponse>"
],
"path": "x-pack/plugins/actions/server/sub_action_framework/case.ts",
"deprecated": false,
Expand Down Expand Up @@ -489,6 +542,21 @@
"trackAdoption": false
}
]
},
{
"parentPluginId": "actions",
"id": "def-server.CaseConnector.getIncident.$2",
"type": "Object",
"tags": [],
"label": "connectorUsageCollector",
"description": [],
"signature": [
"ConnectorUsageCollector"
],
"path": "x-pack/plugins/actions/server/sub_action_framework/case.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
Expand All @@ -501,7 +569,9 @@
"label": "pushToService",
"description": [],
"signature": [
"(params: { incident: { externalId: string | null; } & Incident; comments: { commentId: string; comment: string; }[]; }) => Promise<",
"(params: { incident: { externalId: string | null; } & Incident; comments: { commentId: string; comment: string; }[]; }, connectorUsageCollector: ",
"ConnectorUsageCollector",
") => Promise<",
"PushToServiceResponse",
">"
],
Expand Down Expand Up @@ -549,6 +619,21 @@
"trackAdoption": false
}
]
},
{
"parentPluginId": "actions",
"id": "def-server.CaseConnector.pushToService.$2",
"type": "Object",
"tags": [],
"label": "connectorUsageCollector",
"description": [],
"signature": [
"ConnectorUsageCollector"
],
"path": "x-pack/plugins/actions/server/sub_action_framework/case.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
Expand Down Expand Up @@ -2116,7 +2201,9 @@
"signature": [
"<R>({ url, data, method, responseSchema, headers, timeout, ...config }: ",
"SubActionRequestParams",
"<R>) => Promise<",
"<R>, connectorUsageCollector: ",
"ConnectorUsageCollector",
") => Promise<",
"AxiosResponse",
"<R, any>>"
],
Expand All @@ -2129,7 +2216,7 @@
"id": "def-server.SubActionConnector.request.$1",
"type": "CompoundType",
"tags": [],
"label": "{\n url,\n data,\n method = 'get',\n responseSchema,\n headers,\n timeout,\n ...config\n }",
"label": "{\n url,\n data,\n method = 'get',\n responseSchema,\n headers,\n timeout,\n ...config\n }",
"description": [],
"signature": [
"SubActionRequestParams",
Expand All @@ -2139,6 +2226,21 @@
"deprecated": false,
"trackAdoption": false,
"isRequired": true
},
{
"parentPluginId": "actions",
"id": "def-server.SubActionConnector.request.$2",
"type": "Object",
"tags": [],
"label": "connectorUsageCollector",
"description": [],
"signature": [
"ConnectorUsageCollector"
],
"path": "x-pack/plugins/actions/server/sub_action_framework/sub_action_connector.ts",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": []
Expand Down Expand Up @@ -3141,6 +3243,20 @@
"path": "x-pack/plugins/actions/server/types.ts",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "actions",
"id": "def-server.ActionTypeExecutorOptions.connectorUsageCollector",
"type": "Object",
"tags": [],
"label": "connectorUsageCollector",
"description": [],
"signature": [
"ConnectorUsageCollector"
],
"path": "x-pack/plugins/actions/server/types.ts",
"deprecated": false,
"trackAdoption": false
}
],
"initialIsOpen": false
Expand Down
4 changes: 2 additions & 2 deletions 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: 2024-08-27
date: 2024-08-28
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions']
---
import actionsObj from './actions.devdocs.json';
Expand All @@ -21,7 +21,7 @@ Contact [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-o

| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
| 307 | 0 | 301 | 32 |
| 314 | 0 | 308 | 33 |

## Client

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: 2024-08-27
date: 2024-08-28
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings']
---
import advancedSettingsObj from './advanced_settings.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/ai_assistant_management_selection.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/aiAssistantManagementSelection
title: "aiAssistantManagementSelection"
image: https://source.unsplash.com/400x175/?github
description: API docs for the aiAssistantManagementSelection plugin
date: 2024-08-27
date: 2024-08-28
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiAssistantManagementSelection']
---
import aiAssistantManagementSelectionObj from './ai_assistant_management_selection.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: 2024-08-27
date: 2024-08-28
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops']
---
import aiopsObj from './aiops.devdocs.json';
Expand Down
8 changes: 0 additions & 8 deletions api_docs/alerting.devdocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3806,14 +3806,6 @@
"plugin": "securitySolution",
"path": "x-pack/plugins/security_solution/server/lib/detection_engine/rule_preview/api/preview_rules/route.ts"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/observability_solution/synthetics/server/alert_rules/tls_rule/message_utils.ts"
},
{
"plugin": "synthetics",
"path": "x-pack/plugins/observability_solution/synthetics/server/alert_rules/tls_rule/tls_rule.ts"
},
{
"plugin": "ruleRegistry",
"path": "x-pack/plugins/rule_registry/server/utils/rule_executor.test_helpers.ts"
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: 2024-08-27
date: 2024-08-28
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting']
---
import alertingObj from './alerting.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion 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: 2024-08-27
date: 2024-08-28
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apm']
---
import apmObj from './apm.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/apm_data_access.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/apmDataAccess
title: "apmDataAccess"
image: https://source.unsplash.com/400x175/?github
description: API docs for the apmDataAccess plugin
date: 2024-08-27
date: 2024-08-28
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apmDataAccess']
---
import apmDataAccessObj from './apm_data_access.devdocs.json';
Expand Down
Loading

0 comments on commit 2ff7826

Please sign in to comment.