diff --git a/.buildkite/pipelines/flaky_tests/groups.json b/.buildkite/pipelines/flaky_tests/groups.json new file mode 100644 index 0000000000000..b47ccf16a0184 --- /dev/null +++ b/.buildkite/pipelines/flaky_tests/groups.json @@ -0,0 +1,34 @@ +{ + "groups": [ + { + "key": "oss/cigroup", + "name": "OSS CI Group", + "ciGroups": 12 + }, + { + "key": "oss/firefox", + "name": "OSS Firefox" + }, + { + "key": "oss/accessibility", + "name": "OSS Accessibility" + }, + { + "key": "xpack/cigroup", + "name": "Default CI Group", + "ciGroups": 27 + }, + { + "key": "xpack/cigroup/Docker", + "name": "Default CI Group Docker" + }, + { + "key": "xpack/firefox", + "name": "Default Firefox" + }, + { + "key": "xpack/accessibility", + "name": "Default Accessibility" + } + ] +} diff --git a/.buildkite/pipelines/flaky_tests/pipeline.js b/.buildkite/pipelines/flaky_tests/pipeline.js index bf4abb9ff4c89..cb5c37bf58348 100644 --- a/.buildkite/pipelines/flaky_tests/pipeline.js +++ b/.buildkite/pipelines/flaky_tests/pipeline.js @@ -1,3 +1,15 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +const groups = /** @type {Array<{key: string, name: string, ciGroups: number }>} */ ( + require('./groups.json').groups +); + const stepInput = (key, nameOfSuite) => { return { key: `ftsr-suite/${key}`, @@ -7,38 +19,31 @@ const stepInput = (key, nameOfSuite) => { }; }; -const OSS_CI_GROUPS = 12; -const XPACK_CI_GROUPS = 27; - const inputs = [ { key: 'ftsr-override-count', text: 'Override for all suites', - default: 0, + default: '0', required: true, }, ]; -for (let i = 1; i <= OSS_CI_GROUPS; i++) { - inputs.push(stepInput(`oss/cigroup/${i}`, `OSS CI Group ${i}`)); +for (const group of groups) { + if (!group.ciGroups) { + inputs.push(stepInput(group.key, group.name)); + } else { + for (let i = 1; i <= group.ciGroups; i++) { + inputs.push(stepInput(`${group.key}/${i}`, `${group.name} ${i}`)); + } + } } -inputs.push(stepInput(`oss/firefox`, 'OSS Firefox')); -inputs.push(stepInput(`oss/accessibility`, 'OSS Accessibility')); - -for (let i = 1; i <= XPACK_CI_GROUPS; i++) { - inputs.push(stepInput(`xpack/cigroup/${i}`, `Default CI Group ${i}`)); -} - -inputs.push(stepInput(`xpack/cigroup/Docker`, 'Default CI Group Docker')); -inputs.push(stepInput(`xpack/firefox`, 'Default Firefox')); -inputs.push(stepInput(`xpack/accessibility`, 'Default Accessibility')); - const pipeline = { steps: [ { input: 'Number of Runs - Click Me', fields: inputs, + if: `build.env('KIBANA_FLAKY_TEST_RUNNER_CONFIG') == null`, }, { wait: '~', diff --git a/.buildkite/pipelines/flaky_tests/runner.js b/.buildkite/pipelines/flaky_tests/runner.js index 0c2db5c724f7b..8529181644fd7 100644 --- a/.buildkite/pipelines/flaky_tests/runner.js +++ b/.buildkite/pipelines/flaky_tests/runner.js @@ -1,37 +1,93 @@ -const { execSync } = require('child_process'); - -const keys = execSync('buildkite-agent meta-data keys') - .toString() - .split('\n') - .filter((k) => k.startsWith('ftsr-suite/')); +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ -const overrideCount = parseInt( - execSync(`buildkite-agent meta-data get 'ftsr-override-count'`).toString().trim() -); +const { execSync } = require('child_process'); const concurrency = 25; +const defaultCount = concurrency * 2; const initialJobs = 3; -let totalJobs = initialJobs; +function getTestSuitesFromMetadata() { + const keys = execSync('buildkite-agent meta-data keys') + .toString() + .split('\n') + .filter((k) => k.startsWith('ftsr-suite/')); + + const overrideCount = execSync(`buildkite-agent meta-data get 'ftsr-override-count'`) + .toString() + .trim(); + + const testSuites = []; + for (const key of keys) { + if (!key) { + continue; + } + + const value = + overrideCount || execSync(`buildkite-agent meta-data get '${key}'`).toString().trim(); + + const count = value === '' ? defaultCount : parseInt(value); + testSuites.push({ + key: key.replace('ftsr-suite/', ''), + count: count, + }); + } -const testSuites = []; -for (const key of keys) { - if (!key) { - continue; + return testSuites; +} + +function getTestSuitesFromJson(json) { + const fail = (errorMsg) => { + console.error('+++ Invalid test config provided'); + console.error(`${errorMsg}: ${json}`); + process.exit(1); + }; + + let parsed; + try { + parsed = JSON.parse(json); + } catch (error) { + fail(`JSON test config did not parse correctly`); } - const value = - overrideCount || execSync(`buildkite-agent meta-data get '${key}'`).toString().trim(); + if (!Array.isArray(parsed)) { + fail(`JSON test config must be an array`); + } - const count = value === '' ? defaultCount : parseInt(value); - totalJobs += count; + /** @type {Array<{ key: string, count: number }>} */ + const testSuites = []; + for (const item of parsed) { + if (typeof item !== 'object' || item === null) { + fail(`testSuites must be objects`); + } + const key = item.key; + if (typeof key !== 'string') { + fail(`testSuite.key must be a string`); + } + const count = item.count; + if (typeof count !== 'number') { + fail(`testSuite.count must be a number`); + } + testSuites.push({ + key, + count, + }); + } - testSuites.push({ - key: key.replace('ftsr-suite/', ''), - count: count, - }); + return testSuites; } +const testSuites = process.env.KIBANA_FLAKY_TEST_RUNNER_CONFIG + ? getTestSuitesFromJson(process.env.KIBANA_FLAKY_TEST_RUNNER_CONFIG) + : getTestSuitesFromMetadata(); + +const totalJobs = testSuites.reduce((acc, t) => acc + t.count, initialJobs); + if (totalJobs > 500) { console.error('+++ Too many tests'); console.error( diff --git a/.buildkite/scripts/lifecycle/annotate_test_failures.js b/.buildkite/scripts/lifecycle/annotate_test_failures.js index caf1e08c2bb4d..068ca4b8329f1 100644 --- a/.buildkite/scripts/lifecycle/annotate_test_failures.js +++ b/.buildkite/scripts/lifecycle/annotate_test_failures.js @@ -1,3 +1,12 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +// eslint-disable-next-line import/no-unresolved const { TestFailures } = require('kibana-buildkite-library'); (async () => { diff --git a/.buildkite/scripts/lifecycle/build_status.js b/.buildkite/scripts/lifecycle/build_status.js index f2a5024c96013..6658cc4647864 100644 --- a/.buildkite/scripts/lifecycle/build_status.js +++ b/.buildkite/scripts/lifecycle/build_status.js @@ -1,3 +1,12 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +// eslint-disable-next-line import/no-unresolved const { BuildkiteClient } = require('kibana-buildkite-library'); (async () => { diff --git a/.buildkite/scripts/lifecycle/ci_stats_complete.js b/.buildkite/scripts/lifecycle/ci_stats_complete.js index d9411178799ab..b8347fa606ebe 100644 --- a/.buildkite/scripts/lifecycle/ci_stats_complete.js +++ b/.buildkite/scripts/lifecycle/ci_stats_complete.js @@ -1,3 +1,12 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +// eslint-disable-next-line import/no-unresolved const { CiStats } = require('kibana-buildkite-library'); (async () => { diff --git a/.buildkite/scripts/lifecycle/ci_stats_start.js b/.buildkite/scripts/lifecycle/ci_stats_start.js index ec0e4c713499e..ea23b2bc7ad32 100644 --- a/.buildkite/scripts/lifecycle/ci_stats_start.js +++ b/.buildkite/scripts/lifecycle/ci_stats_start.js @@ -1,3 +1,12 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +// eslint-disable-next-line import/no-unresolved const { CiStats } = require('kibana-buildkite-library'); (async () => { diff --git a/.buildkite/scripts/lifecycle/print_agent_links.js b/.buildkite/scripts/lifecycle/print_agent_links.js index 59613946c1db4..f1cbff29398d9 100644 --- a/.buildkite/scripts/lifecycle/print_agent_links.js +++ b/.buildkite/scripts/lifecycle/print_agent_links.js @@ -1,3 +1,12 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +// eslint-disable-next-line import/no-unresolved const { BuildkiteClient } = require('kibana-buildkite-library'); (async () => { diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.js b/.buildkite/scripts/pipelines/pull_request/pipeline.js index ab125d4f73377..1df3b5f64b1df 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.js +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.js @@ -1,5 +1,14 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + const execSync = require('child_process').execSync; const fs = require('fs'); +// eslint-disable-next-line import/no-unresolved const { areChangesSkippable, doAnyChangesMatch } = require('kibana-buildkite-library'); const SKIPPABLE_PATHS = [ @@ -77,20 +86,14 @@ const uploadPipeline = (pipelineContent) => { } if ( - (await doAnyChangesMatch([ - /^x-pack\/plugins\/fleet/, - /^x-pack\/test\/fleet_cypress/, - ])) || + (await doAnyChangesMatch([/^x-pack\/plugins\/fleet/, /^x-pack\/test\/fleet_cypress/])) || process.env.GITHUB_PR_LABELS.includes('ci:all-cypress-suites') ) { pipeline.push(getPipeline('.buildkite/pipelines/pull_request/fleet_cypress.yml')); } if ( - (await doAnyChangesMatch([ - /^x-pack\/plugins\/osquery/, - /^x-pack\/test\/osquery_cypress/, - ])) || + (await doAnyChangesMatch([/^x-pack\/plugins\/osquery/, /^x-pack\/test\/osquery_cypress/])) || process.env.GITHUB_PR_LABELS.includes('ci:all-cypress-suites') ) { pipeline.push(getPipeline('.buildkite/pipelines/pull_request/osquery_cypress.yml')); diff --git a/.buildkite/scripts/steps/es_snapshots/bucket_config.js b/.buildkite/scripts/steps/es_snapshots/bucket_config.js index a18d1182c4a89..6bbe80b60e764 100644 --- a/.buildkite/scripts/steps/es_snapshots/bucket_config.js +++ b/.buildkite/scripts/steps/es_snapshots/bucket_config.js @@ -1,3 +1,11 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + module.exports = { BASE_BUCKET_DAILY: 'kibana-ci-es-snapshots-daily', BASE_BUCKET_PERMANENT: 'kibana-ci-es-snapshots-permanent', diff --git a/.buildkite/scripts/steps/es_snapshots/create_manifest.js b/.buildkite/scripts/steps/es_snapshots/create_manifest.js index 3173737e984e8..cb4ea29a9c534 100644 --- a/.buildkite/scripts/steps/es_snapshots/create_manifest.js +++ b/.buildkite/scripts/steps/es_snapshots/create_manifest.js @@ -1,3 +1,11 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + const fs = require('fs'); const { execSync } = require('child_process'); const { BASE_BUCKET_DAILY } = require('./bucket_config.js'); @@ -47,7 +55,7 @@ const { BASE_BUCKET_DAILY } = require('./bucket_config.js'); version: parts[1], platform: parts[3], architecture: parts[4].split('.')[0], - license: parts[0] == 'oss' ? 'oss' : 'default', + license: parts[0] === 'oss' ? 'oss' : 'default', }; }); diff --git a/.buildkite/scripts/steps/es_snapshots/promote_manifest.js b/.buildkite/scripts/steps/es_snapshots/promote_manifest.js index ce14935dd1b84..d7ff670755712 100644 --- a/.buildkite/scripts/steps/es_snapshots/promote_manifest.js +++ b/.buildkite/scripts/steps/es_snapshots/promote_manifest.js @@ -1,3 +1,11 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + const fs = require('fs'); const { execSync } = require('child_process'); const { BASE_BUCKET_DAILY, BASE_BUCKET_PERMANENT } = require('./bucket_config.js'); diff --git a/.buildkite/scripts/steps/storybooks/build_and_upload.js b/.buildkite/scripts/steps/storybooks/build_and_upload.js index 89958fe08d6cc..86bfb4eeebf94 100644 --- a/.buildkite/scripts/steps/storybooks/build_and_upload.js +++ b/.buildkite/scripts/steps/storybooks/build_and_upload.js @@ -1,3 +1,11 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + const execSync = require('child_process').execSync; const fs = require('fs'); const path = require('path'); @@ -73,7 +81,7 @@ const upload = () => { .trim() .split('\n') .map((path) => path.replace('/', '')) - .filter((path) => path != 'composite'); + .filter((path) => path !== 'composite'); const listHtml = storybooks .map((storybook) => `
fields
argument for more information |
| [sortField?](./kibana-plugin-core-public.savedobjectsfindoptions.sortfield.md) | string | (Optional) |
-| [sortOrder?](./kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md) | estypes.SearchSortOrder | (Optional) |
+| [sortOrder?](./kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md) | estypes.SortOrder | (Optional) |
| [type](./kibana-plugin-core-public.savedobjectsfindoptions.type.md) | string \| string\[\] | |
| [typeToNamespacesMap?](./kibana-plugin-core-public.savedobjectsfindoptions.typetonamespacesmap.md) | Map<string, string\[\] \| undefined> | (Optional) This map defines each type to search for, and the namespace(s) to search for the type in; this is only intended to be used by a saved object client wrapper. If this is defined, it supersedes the type
and namespaces
fields when building the Elasticsearch query. Any types that are not included in this map will be excluded entirely. If a type is included but its value is undefined, the operation will search for that type in the Default namespace. |
diff --git a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md
index 506fb9041e353..36f99e51ea8c6 100644
--- a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md
+++ b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md
@@ -7,5 +7,5 @@
Signature:
```typescript
-sortOrder?: estypes.SearchSortOrder;
+sortOrder?: estypes.SortOrder;
```
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfoundesunavailableerror.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfoundesunavailableerror.md
new file mode 100644
index 0000000000000..4892c0e41ab01
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfoundesunavailableerror.md
@@ -0,0 +1,23 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsErrorHelpers](./kibana-plugin-core-server.savedobjectserrorhelpers.md) > [createGenericNotFoundEsUnavailableError](./kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfoundesunavailableerror.md)
+
+## SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError() method
+
+Signature:
+
+```typescript
+static createGenericNotFoundEsUnavailableError(type?: string | null, id?: string | null): DecoratedError;
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| type | string \| null | |
+| id | string \| null | |
+
+Returns:
+
+DecoratedError
+
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md
index 2dc78f2df3a83..67056c8a3cb50 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md
@@ -18,6 +18,7 @@ export declare class SavedObjectsErrorHelpers
| [createBadRequestError(reason)](./kibana-plugin-core-server.savedobjectserrorhelpers.createbadrequesterror.md) | static
| |
| [createConflictError(type, id, reason)](./kibana-plugin-core-server.savedobjectserrorhelpers.createconflicterror.md) | static
| |
| [createGenericNotFoundError(type, id)](./kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfounderror.md) | static
| |
+| [createGenericNotFoundEsUnavailableError(type, id)](./kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfoundesunavailableerror.md) | static
| |
| [createIndexAliasNotFoundError(alias)](./kibana-plugin-core-server.savedobjectserrorhelpers.createindexaliasnotfounderror.md) | static
| |
| [createInvalidVersionError(versionInput)](./kibana-plugin-core-server.savedobjectserrorhelpers.createinvalidversionerror.md) | static
| |
| [createTooManyRequestsError(type, id)](./kibana-plugin-core-server.savedobjectserrorhelpers.createtoomanyrequestserror.md) | static
| |
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md
index 5f3bb46cc7a99..9e87eff2f1232 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md
@@ -30,7 +30,7 @@ export interface SavedObjectsFindOptions
| [searchAfter?](./kibana-plugin-core-server.savedobjectsfindoptions.searchafter.md) | estypes.Id\[\] | (Optional) Use the sort values from the previous page to retrieve the next page of results. |
| [searchFields?](./kibana-plugin-core-server.savedobjectsfindoptions.searchfields.md) | string\[\] | (Optional) The fields to perform the parsed query against. See Elasticsearch Simple Query String fields
argument for more information |
| [sortField?](./kibana-plugin-core-server.savedobjectsfindoptions.sortfield.md) | string | (Optional) |
-| [sortOrder?](./kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md) | estypes.SearchSortOrder | (Optional) |
+| [sortOrder?](./kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md) | estypes.SortOrder | (Optional) |
| [type](./kibana-plugin-core-server.savedobjectsfindoptions.type.md) | string \| string\[\] | |
| [typeToNamespacesMap?](./kibana-plugin-core-server.savedobjectsfindoptions.typetonamespacesmap.md) | Map<string, string\[\] \| undefined> | (Optional) This map defines each type to search for, and the namespace(s) to search for the type in; this is only intended to be used by a saved object client wrapper. If this is defined, it supersedes the type
and namespaces
fields when building the Elasticsearch query. Any types that are not included in this map will be excluded entirely. If a type is included but its value is undefined, the operation will search for that type in the Default namespace. |
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md
index dca5a7d8c7583..e1c657e3a5171 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md
@@ -7,5 +7,5 @@
Signature:
```typescript
-sortOrder?: estypes.SearchSortOrder;
+sortOrder?: estypes.SortOrder;
```
diff --git a/package.json b/package.json
index 4fb34109bec69..39d167e15dd1b 100644
--- a/package.json
+++ b/package.json
@@ -105,7 +105,7 @@
"@elastic/apm-synthtrace": "link:bazel-bin/packages/elastic-apm-synthtrace",
"@elastic/charts": "40.2.0",
"@elastic/datemath": "link:bazel-bin/packages/elastic-datemath",
- "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@^8.0.0-canary.35",
+ "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.1.0-canary.2",
"@elastic/ems-client": "8.0.0",
"@elastic/eui": "43.1.1",
"@elastic/filesaver": "1.1.2",
@@ -212,7 +212,7 @@
"constate": "^1.3.2",
"content-disposition": "0.5.3",
"copy-to-clipboard": "^3.0.8",
- "core-js": "^3.19.3",
+ "core-js": "^3.20.1",
"cronstrue": "^1.51.0",
"cytoscape": "^3.10.0",
"cytoscape-dagre": "^2.2.2",
@@ -311,7 +311,7 @@
"p-map": "^4.0.0",
"p-retry": "^4.2.0",
"papaparse": "^5.2.0",
- "pdfmake": "^0.1.65",
+ "pdfmake": "^0.2.4",
"peggy": "^1.2.0",
"pluralize": "3.1.0",
"pngjs": "^3.4.0",
@@ -503,7 +503,7 @@
"@types/base64-js": "^1.2.5",
"@types/chance": "^1.0.0",
"@types/chroma-js": "^1.4.2",
- "@types/chromedriver": "^81.0.0",
+ "@types/chromedriver": "^81.0.1",
"@types/classnames": "^2.2.9",
"@types/cmd-shim": "^2.0.0",
"@types/color": "^3.0.0",
@@ -602,6 +602,8 @@
"@types/kbn__server-route-repository": "link:bazel-bin/packages/kbn-server-route-repository/npm_module_types",
"@types/kbn__std": "link:bazel-bin/packages/kbn-std/npm_module_types",
"@types/kbn__telemetry-tools": "link:bazel-bin/packages/kbn-telemetry-tools/npm_module_types",
+ "@types/kbn__utility-types": "link:bazel-bin/packages/kbn-utility-types/npm_module_types",
+ "@types/kbn__utils": "link:bazel-bin/packages/kbn-utils/npm_module_types",
"@types/license-checker": "15.0.0",
"@types/listr": "^0.14.0",
"@types/loader-utils": "^1.1.3",
@@ -631,7 +633,7 @@
"@types/ora": "^1.3.5",
"@types/papaparse": "^5.0.3",
"@types/parse-link-header": "^1.0.0",
- "@types/pdfmake": "^0.1.15",
+ "@types/pdfmake": "^0.1.19",
"@types/pegjs": "^0.10.1",
"@types/pngjs": "^3.4.0",
"@types/prettier": "^2.3.2",
@@ -769,7 +771,7 @@
"fetch-mock": "^7.3.9",
"file-loader": "^4.2.0",
"form-data": "^4.0.0",
- "geckodriver": "^2.0.4",
+ "geckodriver": "^3.0.1",
"glob-watcher": "5.0.3",
"gulp": "4.0.2",
"gulp-babel": "^8.0.0",
diff --git a/packages/BUILD.bazel b/packages/BUILD.bazel
index 7415e41d62e91..3580bcfbf6571 100644
--- a/packages/BUILD.bazel
+++ b/packages/BUILD.bazel
@@ -119,6 +119,8 @@ filegroup(
"//packages/kbn-server-route-repository:build_types",
"//packages/kbn-std:build_types",
"//packages/kbn-telemetry-tools:build_types",
+ "//packages/kbn-utility-types:build_types",
+ "//packages/kbn-utils:build_types",
],
)
diff --git a/packages/kbn-apm-config-loader/BUILD.bazel b/packages/kbn-apm-config-loader/BUILD.bazel
index 15491336ed657..0e3bc444acd24 100644
--- a/packages/kbn-apm-config-loader/BUILD.bazel
+++ b/packages/kbn-apm-config-loader/BUILD.bazel
@@ -36,7 +36,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/elastic-safer-lodash-set",
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//@elastic/apm-rum",
"@npm//@types/jest",
"@npm//@types/js-yaml",
diff --git a/packages/kbn-cli-dev-mode/BUILD.bazel b/packages/kbn-cli-dev-mode/BUILD.bazel
index 05524d4325cc6..87d4a116f13b1 100644
--- a/packages/kbn-cli-dev-mode/BUILD.bazel
+++ b/packages/kbn-cli-dev-mode/BUILD.bazel
@@ -55,7 +55,7 @@ TYPES_DEPS = [
"//packages/kbn-optimizer:npm_module_types",
"//packages/kbn-server-http-tools:npm_module_types",
"//packages/kbn-std:npm_module_types",
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//argsplit",
"@npm//chokidar",
"@npm//elastic-apm-node",
diff --git a/packages/kbn-config/BUILD.bazel b/packages/kbn-config/BUILD.bazel
index 719dd32fd606f..da4532f7d61c4 100644
--- a/packages/kbn-config/BUILD.bazel
+++ b/packages/kbn-config/BUILD.bazel
@@ -49,7 +49,7 @@ TYPES_DEPS = [
"//packages/kbn-config-schema:npm_module_types",
"//packages/kbn-logging",
"//packages/kbn-std:npm_module_types",
- "//packages/kbn-utility-types",
+ "//packages/kbn-utility-types:npm_module_types",
"//packages/kbn-i18n:npm_module_types",
"@npm//load-json-file",
"@npm//rxjs",
diff --git a/packages/kbn-dev-utils/BUILD.bazel b/packages/kbn-dev-utils/BUILD.bazel
index 89df1870a3cec..7d7ba29871ef0 100644
--- a/packages/kbn-dev-utils/BUILD.bazel
+++ b/packages/kbn-dev-utils/BUILD.bazel
@@ -66,7 +66,7 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//@babel/parser",
"@npm//@babel/types",
"@npm//@types/babel__core",
diff --git a/packages/kbn-docs-utils/BUILD.bazel b/packages/kbn-docs-utils/BUILD.bazel
index edfd3ee96c181..ad6b6687b7e1a 100644
--- a/packages/kbn-docs-utils/BUILD.bazel
+++ b/packages/kbn-docs-utils/BUILD.bazel
@@ -39,7 +39,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-config:npm_module_types",
"//packages/kbn-dev-utils:npm_module_types",
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//ts-morph",
"@npm//@types/dedent",
"@npm//@types/jest",
diff --git a/packages/kbn-es-archiver/BUILD.bazel b/packages/kbn-es-archiver/BUILD.bazel
index da8aaf913ab67..06a0ca02da04a 100644
--- a/packages/kbn-es-archiver/BUILD.bazel
+++ b/packages/kbn-es-archiver/BUILD.bazel
@@ -46,7 +46,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-test",
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//@elastic/elasticsearch",
"@npm//aggregate-error",
"@npm//globby",
diff --git a/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.test.ts b/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.test.ts
index 2590074a25411..edcf5c32f1085 100644
--- a/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.test.ts
+++ b/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.test.ts
@@ -28,7 +28,6 @@ interface SearchResponses {
total: number;
hits: Array<{
_index: string;
- _type: string;
_id: string;
_source: Record