[9.0] SKA: Relocate "platform" packages that remain on /packages (#208704) (#212224)

# Backport

This will backport the following commits from `main` to `9.0`:
- [SKA: Relocate "platform" packages that remain on `/packages`
(#208704)](https://github.com/elastic/kibana/pull/208704)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-02-24T11:03:30Z","message":"SKA:
Relocate \"platform\" packages that remain on `/packages`
(#208704)\n\n## Summary\n\nThe `/packages` folder at the root of the
Kibana repository used to\ncontain a lot of packages.\nIn the context of
SKA, they have been gradually moved to various\nlocations:\n*
`src/platform/packages`\n* `x-pack/platform/packages`\n*
`src/core/packages`\n\nCurrently, only `devOnly: true` packages are left
in this folder. This\ncomprises libraries for CLI scripts as well as
testing utilities.\n\nWith this PR, we are moving ~half of these
packages under\n`src/platform/packages/(private|shared)/`.\nIn
particular, we are moving those packages that are being used
from\nplatform and/or solutions.\n\nSince they are `\"devOnly\": true`,
this means they are ONLY used from\ntests, cypress tests, storybook
configs, ./scripts/ folders inside some\nmodules, or other non-prod-time
logic. Nonetheless, they are effectively\nreferenced from platform
and/or solutions code, hence I decided they\nshould be placed under
`platform` folders.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6a7c904f921434fe21dfa00eceabfb5e64e915dc","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-infra_services","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"SKA:
Relocate \"platform\" packages that remain on
`/packages`","number":208704,"url":"https://github.com/elastic/kibana/pull/208704","mergeCommit":{"message":"SKA:
Relocate \"platform\" packages that remain on `/packages`
(#208704)\n\n## Summary\n\nThe `/packages` folder at the root of the
Kibana repository used to\ncontain a lot of packages.\nIn the context of
SKA, they have been gradually moved to various\nlocations:\n*
`src/platform/packages`\n* `x-pack/platform/packages`\n*
`src/core/packages`\n\nCurrently, only `devOnly: true` packages are left
in this folder. This\ncomprises libraries for CLI scripts as well as
testing utilities.\n\nWith this PR, we are moving ~half of these
packages under\n`src/platform/packages/(private|shared)/`.\nIn
particular, we are moving those packages that are being used
from\nplatform and/or solutions.\n\nSince they are `\"devOnly\": true`,
this means they are ONLY used from\ntests, cypress tests, storybook
configs, ./scripts/ folders inside some\nmodules, or other non-prod-time
logic. Nonetheless, they are effectively\nreferenced from platform
and/or solutions code, hence I decided they\nshould be placed under
`platform` folders.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6a7c904f921434fe21dfa00eceabfb5e64e915dc"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208704","number":208704,"mergeCommit":{"message":"SKA:
Relocate \"platform\" packages that remain on `/packages`
(#208704)\n\n## Summary\n\nThe `/packages` folder at the root of the
Kibana repository used to\ncontain a lot of packages.\nIn the context of
SKA, they have been gradually moved to various\nlocations:\n*
`src/platform/packages`\n* `x-pack/platform/packages`\n*
`src/core/packages`\n\nCurrently, only `devOnly: true` packages are left
in this folder. This\ncomprises libraries for CLI scripts as well as
testing utilities.\n\nWith this PR, we are moving ~half of these
packages under\n`src/platform/packages/(private|shared)/`.\nIn
particular, we are moving those packages that are being used
from\nplatform and/or solutions.\n\nSince they are `\"devOnly\": true`,
this means they are ONLY used from\ntests, cypress tests, storybook
configs, ./scripts/ folders inside some\nmodules, or other non-prod-time
logic. Nonetheless, they are effectively\nreferenced from platform
and/or solutions code, hence I decided they\nshould be placed under
`platform` folders.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6a7c904f921434fe21dfa00eceabfb5e64e915dc"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
This commit is contained in:
Gerard Soldevila 2025-02-28 10:10:29 +01:00 committed by GitHub
parent 9b75e3c3bb
commit 19db8f87a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
1443 changed files with 1002 additions and 963 deletions

View file

@ -92,7 +92,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
if (
(await doAnyChangesMatch([
/^x-pack\/solutions\/observability\/plugins\/apm/,
/^packages\/kbn-apm-synthtrace/,
/^src\/platform\/packages\/shared\/kbn-apm-synthtrace/,
])) ||
GITHUB_PR_LABELS.includes('ci:all-cypress-suites')
) {
@ -102,7 +102,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
if (
(await doAnyChangesMatch([
/^x-pack\/solutions\/observability\/plugins\/inventory/,
/^packages\/kbn-apm-synthtrace/,
/^src\/platform\/packages\/shared\/kbn-apm-synthtrace/,
])) ||
GITHUB_PR_LABELS.includes('ci:all-cypress-suites')
) {
@ -236,7 +236,8 @@ const getPipeline = (filename: string, removeSteps = true) => {
if (
(await doAnyChangesMatch([
/^packages\/kbn-securitysolution-.*/,
/^src\/platform\/packages\/shared\/kbn-securitysolution-.*/,
/^x-pack\/solutions\/security\/packages\/kbn-securitysolution-.*/,
/^x-pack\/solutions\/security\/plugins\/security_solution/,
/^x-pack\/test\/defend_workflows_cypress/,
/^x-pack\/test\/security_solution_cypress/,
@ -252,7 +253,8 @@ const getPipeline = (filename: string, removeSteps = true) => {
if (
(await doAnyChangesMatch([
/^package.json/,
/^packages\/kbn-securitysolution-.*/,
/^src\/platform\/packages\/shared\/kbn-securitysolution-.*/,
/^x-pack\/solutions\/security\/packages\/kbn-securitysolution-.*/,
/^x-pack\/platform\/plugins\/shared\/alerting/,
/^x-pack\/platform\/plugins\/shared\/data_views\/common/,
/^x-pack\/solutions\/security\/plugins\/lists/,
@ -298,7 +300,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
(await doAnyChangesMatch([
/^package.json/,
/^src\/platform\/packages\/shared\/kbn-discover-utils/,
/^packages\/kbn-doc-links/,
/^src\/platform\/packages\/shared\/kbn-doc-links/,
/^src\/platform\/packages\/shared\/kbn-dom-drag-drop/,
/^src\/platform\/packages\/shared\/kbn-es-query/,
/^src\/platform\/packages\/shared\/kbn-i18n/,
@ -309,7 +311,8 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^src\/platform\/packages\/shared\/kbn-rule-data-utils/,
/^src\/platform\/packages\/shared\/kbn-safer-lodash-set/,
/^src\/platform\/packages\/shared\/kbn-search-types/,
/^packages\/kbn-securitysolution-.*/,
/^src\/platform\/packages\/shared\/kbn-securitysolution-.*/,
/^x-pack\/solutions\/security\/packages\/kbn-securitysolution-.*/,
/^src\/platform\/packages\/shared\/kbn-securitysolution-ecs/,
/^x-pack\/solutions\/security\/packages\/kbn-securitysolution-io-ts-alerting-types/,
/^x-pack\/solutions\/security\/packages\/kbn-securitysolution-io-ts-list-types/,
@ -317,8 +320,8 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^x-pack\/solutions\/security\/packages\/kbn-securitysolution-t-grid/,
/^src\/platform\/packages\/shared\/kbn-ui-theme/,
/^src\/platform\/packages\/shared\/kbn-utility-types/,
/^packages\/react/,
/^packages\/shared-ux/,
/^src\/platform\/packages\/shared\/react/,
/^src\/platform\/packages\/shared\/shared-ux/,
/^src\/core/,
/^src\/platform\/plugins\/shared\/charts/,
/^src\/platform\/plugins\/shared\/controls/,
@ -363,7 +366,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
(await doAnyChangesMatch([
/^package.json/,
/^src\/platform\/packages\/shared\/kbn-discover-utils/,
/^packages\/kbn-doc-links/,
/^src\/platform\/packages\/shared\/kbn-doc-links/,
/^src\/platform\/packages\/shared\/kbn-dom-drag-drop/,
/^src\/platform\/packages\/shared\/kbn-es-query/,
/^src\/platform\/packages\/shared\/kbn-i18n/,
@ -374,7 +377,6 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^src\/platform\/packages\/shared\/kbn-rule-data-utils/,
/^src\/platform\/packages\/shared\/kbn-safer-lodash-set/,
/^src\/platform\/packages\/shared\/kbn-search-types/,
/^packages\/kbn-securitysolution-.*/,
/^src\/platform\/packages\/shared\/kbn-securitysolution-ecs/,
/^x-pack\/solutions\/security\/packages\/kbn-securitysolution-io-ts-alerting-types/,
/^x-pack\/solutions\/security\/packages\/kbn-securitysolution-io-ts-list-types/,
@ -382,8 +384,8 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^x-pack\/solutions\/security\/packages\/kbn-securitysolution-t-grid/,
/^src\/platform\/packages\/shared\/kbn-ui-theme/,
/^src\/platform\/packages\/shared\/kbn-utility-types/,
/^packages\/react/,
/^packages\/shared-ux/,
/^src\/platform\/packages\/shared\/react/,
/^src\/platform\/packages\/shared\/shared-ux/,
/^src\/core/,
/^src\/platform\/plugins\/shared\/charts/,
/^src\/platform\/plugins\/shared\/controls/,
@ -459,7 +461,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
(await doAnyChangesMatch([
/^x-pack\/platform\/plugins\/private\/discover_enhanced\/ui_tests/,
/^x-pack\/solutions\/observability\/plugins\/observability_onboarding/,
/^packages\/kbn-scout/,
/^src\/platform\/packages\/shared\/kbn-scout/,
])) ||
GITHUB_PR_LABELS.includes('ci:scout-ui-tests')
) {

View file

@ -51,7 +51,7 @@ echo "+++ ⚠️ WARNING ⚠️"
echo "
console.log(), console.warn(), and console.error() output in jest tests causes a massive amount
of noise on CI without any percevable benefit, so they have been disabled. If you want to log
output in your test temporarily, you can modify 'packages/kbn-test/src/jest/setup/disable_console_logs.js'
output in your test temporarily, you can modify 'src/platform/packages/shared/kbn-test/src/jest/setup/disable_console_logs.js'
"
while read -r config; do

View file

@ -32,8 +32,8 @@ snapshots.js
/packages/kbn-eslint-config
/packages/kbn-plugin-generator/template
/packages/kbn-generate/templates
/packages/kbn-test/src/functional_test_runner/__tests__/fixtures/
/packages/kbn-test/src/functional_test_runner/lib/config/__tests__/fixtures/
/src/platform/packages/shared/kbn-test/src/functional_test_runner/__tests__/fixtures/
/src/platform/packages/shared/kbn-test/src/functional_test_runner/lib/config/__tests__/fixtures/
/src/platform/packages/shared/kbn-flot-charts/lib
/src/platform/packages/shared/kbn-monaco/src/**/antlr
/src/platform/packages/shared/kbn-esql-ast/src/**/antlr

View file

@ -724,7 +724,7 @@ module.exports = {
*/
{
files: [
'packages/kbn-ftr-common-functional-ui-services/services/web_element_wrapper/scroll_into_view_if_necessary.js',
'src/platform/packages/shared/kbn-ftr-common-functional-ui-services/services/web_element_wrapper/scroll_into_view_if_necessary.js',
'**/browser_exec_scripts/**/*.js',
],
rules: {
@ -1441,13 +1441,13 @@ module.exports = {
},
{
files: [
'packages/kbn-scout/src/playwright/**/*.ts',
'src/platform/packages/shared/kbn-scout/src/playwright/**/*.ts',
'x-pack/solutions/observability/packages/kbn-scout-oblt/src/playwright/**/*.ts',
'src/platform/plugins/**/ui_tests/**/*.ts',
'x-pack/platform/plugins/**/ui_tests/**/*.ts',
'x-pack/solutions/**/plugins/**/ui_tests/**/*.ts',
],
excludedFiles: ['packages/kbn-scout/src/playwright/**/*.test.ts'],
excludedFiles: ['src/platform/packages/shared/kbn-scout/src/playwright/**/*.test.ts'],
extends: ['plugin:playwright/recommended'],
plugins: ['playwright'],
settings: {
@ -1909,7 +1909,7 @@ module.exports = {
'test/interactive_setup_functional/**/*.{js,mjs,ts,tsx}',
'packages/kbn-mock-idp-plugin/**/*.{js,mjs,ts,tsx}',
'packages/kbn-mock-idp-utils/**/*.{js,mjs,ts,tsx}',
'src/platform/packages/private/kbn-mock-idp-utils/**/*.{js,mjs,ts,tsx}',
'src/platform/packages/shared/kbn-security-hardening/**/*.{js,mjs,ts,tsx}',
'src/platform/packages/shared/kbn-user-profile-components/**/*.{js,mjs,ts,tsx}',
@ -1995,7 +1995,7 @@ module.exports = {
'src/platform/packages/shared/kbn-config-schema',
'src/platform/plugins/shared/saved_objects_management/**',
'src/platform/packages/shared/kbn-analytics/**',
'packages/kbn-telemetry-tools/**',
'src/platform/packages/private/kbn-telemetry-tools/**',
'src/platform/plugins/private/kibana_usage_collection/**',
'src/platform/plugins/shared/usage_collection/**',
'src/platform/plugins/shared/telemetry/**',
@ -2063,7 +2063,8 @@ module.exports = {
*/
{
files: [
'packages/kbn-{package-*,repo-*,dep-*}/**/*',
'src/platform/packages/*/kbn-repo-*/**/*',
'packages/kbn-repo-*/**/*',
'packages/kbn-validate-next-docs-cli/**/*',
'packages/kbn-find-used-node-modules/**/*',
],

102
.github/CODEOWNERS vendored
View file

@ -41,36 +41,17 @@ examples/unified_doc_viewer @elastic/kibana-core
examples/unified_field_list_examples @elastic/kibana-data-discovery
examples/user_profile_examples @elastic/kibana-security
examples/v8_profiler_examples @elastic/response-ops
packages/kbn-ambient-common-types @elastic/kibana-operations
packages/kbn-ambient-ftr-types @elastic/kibana-operations @elastic/appex-qa
packages/kbn-ambient-storybook-types @elastic/kibana-operations
packages/kbn-ambient-ui-types @elastic/kibana-operations
packages/kbn-apm-synthtrace @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team
packages/kbn-apm-synthtrace-client @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team
packages/kbn-axe-config @elastic/kibana-qa
packages/kbn-babel-preset @elastic/kibana-operations
packages/kbn-babel-register @elastic/kibana-operations
packages/kbn-babel-transform @elastic/kibana-operations
packages/kbn-bazel-runner @elastic/kibana-operations
packages/kbn-capture-oas-snapshot-cli @elastic/kibana-core
packages/kbn-check-mappings-update-cli @elastic/kibana-core
packages/kbn-check-prod-native-modules-cli @elastic/kibana-operations
packages/kbn-ci-stats-core @elastic/kibana-operations
packages/kbn-ci-stats-performance-metrics @elastic/kibana-operations
packages/kbn-ci-stats-reporter @elastic/kibana-operations
packages/kbn-ci-stats-shipper-cli @elastic/kibana-operations
packages/kbn-cli-dev-mode @elastic/kibana-operations
packages/kbn-code-owners @elastic/appex-qa
packages/kbn-cypress-config @elastic/kibana-operations
packages/kbn-dependency-ownership @elastic/kibana-security
packages/kbn-dependency-usage @elastic/kibana-security
packages/kbn-dev-cli-errors @elastic/kibana-operations
packages/kbn-dev-cli-runner @elastic/kibana-operations
packages/kbn-dev-proc-runner @elastic/kibana-operations
packages/kbn-dev-utils @elastic/kibana-operations
packages/kbn-docs-utils @elastic/kibana-operations
packages/kbn-es @elastic/kibana-operations
packages/kbn-es-archiver @elastic/kibana-operations @elastic/appex-qa
packages/kbn-eslint-config @elastic/kibana-operations
packages/kbn-eslint-plugin-css @elastic/appex-sharedux
packages/kbn-eslint-plugin-disable @elastic/kibana-operations
@ -78,20 +59,11 @@ packages/kbn-eslint-plugin-eslint @elastic/kibana-operations
packages/kbn-eslint-plugin-i18n @elastic/obs-knowledge-team @elastic/kibana-operations
packages/kbn-eslint-plugin-imports @elastic/kibana-operations
packages/kbn-eslint-plugin-telemetry @elastic/obs-knowledge-team
packages/kbn-expect @elastic/kibana-operations @elastic/appex-qa
packages/kbn-failed-test-reporter-cli @elastic/kibana-operations @elastic/appex-qa
packages/kbn-find-used-node-modules @elastic/kibana-operations
packages/kbn-ftr-common-functional-services @elastic/kibana-operations @elastic/appex-qa
packages/kbn-ftr-common-functional-ui-services @elastic/appex-qa
packages/kbn-ftr-screenshot-filename @elastic/kibana-operations @elastic/appex-qa
packages/kbn-gen-ai-functional-testing @elastic/appex-ai-infra
packages/kbn-generate @elastic/kibana-operations
packages/kbn-generate-console-definitions @elastic/kibana-management
packages/kbn-get-repo-files @elastic/kibana-operations
packages/kbn-import-locator @elastic/kibana-operations
packages/kbn-import-resolver @elastic/kibana-operations
packages/kbn-jest-serializers @elastic/kibana-operations
packages/kbn-journeys @elastic/kibana-operations @elastic/appex-qa
packages/kbn-json-ast @elastic/kibana-operations
packages/kbn-kibana-manifest-schema @elastic/kibana-operations
packages/kbn-lint-packages-cli @elastic/kibana-operations
@ -100,13 +72,7 @@ packages/kbn-managed-vscode-config @elastic/kibana-operations
packages/kbn-managed-vscode-config-cli @elastic/kibana-operations
packages/kbn-manifest @elastic/kibana-core
packages/kbn-mock-idp-plugin @elastic/kibana-security
packages/kbn-mock-idp-utils @elastic/kibana-security
packages/kbn-node-libs-browser-webpack-plugin @elastic/kibana-operations
packages/kbn-openapi-bundler @elastic/security-detection-rule-management
packages/kbn-openapi-generator @elastic/security-detection-rule-management
packages/kbn-optimizer @elastic/kibana-operations
packages/kbn-optimizer-webpack-helpers @elastic/kibana-operations
packages/kbn-peggy @elastic/kibana-operations
packages/kbn-peggy-loader @elastic/kibana-operations
packages/kbn-performance-testing-dataset-extractor @elastic/kibana-performance-testing
packages/kbn-picomatcher @elastic/kibana-operations
@ -116,24 +82,11 @@ packages/kbn-plugin-helpers @elastic/kibana-operations
packages/kbn-relocate @elastic/kibana-core
packages/kbn-repo-file-maps @elastic/kibana-operations
packages/kbn-repo-linter @elastic/kibana-operations
packages/kbn-repo-path @elastic/kibana-operations
packages/kbn-repo-source-classifier @elastic/kibana-operations
packages/kbn-repo-source-classifier-cli @elastic/kibana-operations
packages/kbn-scout @elastic/appex-qa
packages/kbn-scout-info @elastic/appex-qa
packages/kbn-scout-reporting @elastic/appex-qa
packages/kbn-set-map @elastic/kibana-operations
packages/kbn-some-dev-log @elastic/kibana-operations
packages/kbn-sort-package-json @elastic/kibana-operations
packages/kbn-stdio-dev-helpers @elastic/kibana-operations
packages/kbn-storybook @elastic/kibana-operations
packages/kbn-styled-components-mapping-cli @elastic/kibana-operations @elastic/eui-team
packages/kbn-telemetry-tools @elastic/kibana-core
packages/kbn-test @elastic/kibana-operations @elastic/appex-qa
packages/kbn-test-eui-helpers @elastic/kibana-visualizations
packages/kbn-test-jest-helpers @elastic/kibana-operations @elastic/appex-qa
packages/kbn-test-subj-selector @elastic/kibana-operations @elastic/appex-qa
packages/kbn-tooling-log @elastic/kibana-operations
packages/kbn-ts-projects @elastic/kibana-operations
packages/kbn-ts-type-check-cli @elastic/kibana-operations
packages/kbn-validate-next-docs-cli @elastic/kibana-operations
@ -353,22 +306,39 @@ src/platform/packages/private/default-nav/analytics @elastic/kibana-data-discove
src/platform/packages/private/default-nav/devtools @elastic/kibana-management
src/platform/packages/private/default-nav/management @elastic/kibana-management
src/platform/packages/private/default-nav/ml @elastic/ml-ui
src/platform/packages/private/kbn-ambient-common-types @elastic/kibana-operations
src/platform/packages/private/kbn-ambient-ftr-types @elastic/kibana-operations @elastic/appex-qa
src/platform/packages/private/kbn-apm-config-loader @elastic/kibana-core @vigneshshanmugam
src/platform/packages/private/kbn-babel-transform @elastic/kibana-operations
src/platform/packages/private/kbn-ci-stats-core @elastic/kibana-operations
src/platform/packages/private/kbn-ci-stats-reporter @elastic/kibana-operations
src/platform/packages/private/kbn-code-owners @elastic/appex-qa
src/platform/packages/private/kbn-config-mocks @elastic/kibana-core
src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql
src/platform/packages/private/kbn-ftr-screenshot-filename @elastic/kibana-operations @elastic/appex-qa
src/platform/packages/private/kbn-gen-ai-functional-testing @elastic/appex-ai-infra
src/platform/packages/private/kbn-generate-csv @elastic/appex-sharedux
src/platform/packages/private/kbn-get-repo-files @elastic/kibana-operations
src/platform/packages/private/kbn-grid-layout @elastic/kibana-presentation
src/platform/packages/private/kbn-handlebars @elastic/kibana-security
src/platform/packages/private/kbn-hapi-mocks @elastic/kibana-core
src/platform/packages/private/kbn-health-gateway-server @elastic/kibana-core
src/platform/packages/private/kbn-import-resolver @elastic/kibana-operations
src/platform/packages/private/kbn-item-buffer @elastic/appex-sharedux
src/platform/packages/private/kbn-jest-serializers @elastic/kibana-operations
src/platform/packages/private/kbn-journeys @elastic/kibana-operations @elastic/appex-qa
src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql
src/platform/packages/private/kbn-lens-formula-docs @elastic/kibana-visualizations
src/platform/packages/private/kbn-managed-content-badge @elastic/kibana-visualizations
src/platform/packages/private/kbn-mapbox-gl @elastic/kibana-presentation
src/platform/packages/private/kbn-mock-idp-utils @elastic/kibana-security
src/platform/packages/private/kbn-node-libs-browser-webpack-plugin @elastic/kibana-operations
src/platform/packages/private/kbn-optimizer-webpack-helpers @elastic/kibana-operations
src/platform/packages/private/kbn-panel-loader @elastic/kibana-presentation
src/platform/packages/private/kbn-peggy @elastic/kibana-operations
src/platform/packages/private/kbn-react-mute-legacy-root-warning @elastic/appex-sharedux
src/platform/packages/private/kbn-repo-packages @elastic/kibana-operations
src/platform/packages/private/kbn-repo-path @elastic/kibana-operations
src/platform/packages/private/kbn-reporting/common @elastic/appex-sharedux
src/platform/packages/private/kbn-reporting/export_types/csv @elastic/appex-sharedux
src/platform/packages/private/kbn-reporting/export_types/csv_common @elastic/appex-sharedux
@ -381,7 +351,13 @@ src/platform/packages/private/kbn-reporting/mocks_server @elastic/appex-sharedux
src/platform/packages/private/kbn-reporting/public @elastic/appex-sharedux
src/platform/packages/private/kbn-reporting/server @elastic/appex-sharedux
src/platform/packages/private/kbn-saved-objects-settings @elastic/appex-sharedux
src/platform/packages/private/kbn-scout-info @elastic/appex-qa
src/platform/packages/private/kbn-scout-reporting @elastic/appex-qa
src/platform/packages/private/kbn-screenshotting-server @elastic/appex-sharedux
src/platform/packages/private/kbn-some-dev-log @elastic/kibana-operations
src/platform/packages/private/kbn-stdio-dev-helpers @elastic/kibana-operations
src/platform/packages/private/kbn-telemetry-tools @elastic/kibana-core
src/platform/packages/private/kbn-test-eui-helpers @elastic/kibana-visualizations
src/platform/packages/private/kbn-timelion-grammar @elastic/kibana-visualizations
src/platform/packages/private/kbn-tinymath @elastic/kibana-visualizations
src/platform/packages/private/kbn-transpose-utils @elastic/kibana-visualizations
@ -424,10 +400,16 @@ src/platform/packages/shared/kbn-actions-types @elastic/response-ops
src/platform/packages/shared/kbn-alerting-types @elastic/response-ops
src/platform/packages/shared/kbn-alerts-as-data-utils @elastic/response-ops
src/platform/packages/shared/kbn-alerts-ui-shared @elastic/response-ops
src/platform/packages/shared/kbn-ambient-storybook-types @elastic/kibana-operations
src/platform/packages/shared/kbn-ambient-ui-types @elastic/kibana-operations
src/platform/packages/shared/kbn-analytics @elastic/kibana-core
src/platform/packages/shared/kbn-apm-data-view @elastic/obs-ux-infra_services-team
src/platform/packages/shared/kbn-apm-synthtrace @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team
src/platform/packages/shared/kbn-apm-synthtrace-client @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team
src/platform/packages/shared/kbn-apm-utils @elastic/obs-ux-infra_services-team
src/platform/packages/shared/kbn-avc-banner @elastic/security-defend-workflows
src/platform/packages/shared/kbn-axe-config @elastic/appex-qa
src/platform/packages/shared/kbn-babel-register @elastic/kibana-operations
src/platform/packages/shared/kbn-calculate-auto @elastic/obs-ux-management-team
src/platform/packages/shared/kbn-calculate-width-from-char-count @elastic/kibana-visualizations
src/platform/packages/shared/kbn-cases-components @elastic/response-ops
@ -442,16 +424,23 @@ src/platform/packages/shared/kbn-content-management-utils @elastic/kibana-data-d
src/platform/packages/shared/kbn-crypto @elastic/kibana-security
src/platform/packages/shared/kbn-crypto-browser @elastic/kibana-core
src/platform/packages/shared/kbn-custom-icons @elastic/obs-ux-logs-team
src/platform/packages/shared/kbn-cypress-config @elastic/kibana-operations
src/platform/packages/shared/kbn-data-grid-in-table-search @elastic/kibana-data-discovery
src/platform/packages/shared/kbn-data-service @elastic/kibana-visualizations @elastic/kibana-data-discovery
src/platform/packages/shared/kbn-data-view-utils @elastic/kibana-data-discovery
src/platform/packages/shared/kbn-datemath @elastic/kibana-data-discovery
src/platform/packages/shared/kbn-dev-cli-errors @elastic/kibana-operations
src/platform/packages/shared/kbn-dev-cli-runner @elastic/kibana-operations
src/platform/packages/shared/kbn-dev-proc-runner @elastic/kibana-operations
src/platform/packages/shared/kbn-dev-utils @elastic/kibana-operations
src/platform/packages/shared/kbn-discover-contextual-components @elastic/obs-ux-logs-team @elastic/kibana-data-discovery
src/platform/packages/shared/kbn-discover-utils @elastic/kibana-data-discovery
src/platform/packages/shared/kbn-doc-links @elastic/docs
src/platform/packages/shared/kbn-dom-drag-drop @elastic/kibana-visualizations @elastic/kibana-data-discovery
src/platform/packages/shared/kbn-ebt-tools @elastic/kibana-core
src/platform/packages/shared/kbn-elastic-agent-utils @elastic/obs-ux-logs-team
src/platform/packages/shared/kbn-es @elastic/kibana-operations
src/platform/packages/shared/kbn-es-archiver @elastic/kibana-operations @elastic/appex-qa
src/platform/packages/shared/kbn-es-errors @elastic/kibana-core
src/platform/packages/shared/kbn-es-query @elastic/kibana-data-discovery
src/platform/packages/shared/kbn-es-types @elastic/kibana-core @elastic/obs-knowledge-team
@ -461,9 +450,12 @@ src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-es
src/platform/packages/shared/kbn-esql-variables-types @elastic/kibana-esql
src/platform/packages/shared/kbn-event-annotation-common @elastic/kibana-visualizations
src/platform/packages/shared/kbn-event-annotation-components @elastic/kibana-visualizations
src/platform/packages/shared/kbn-expect @elastic/kibana-operations @elastic/appex-qa
src/platform/packages/shared/kbn-field-types @elastic/kibana-data-discovery
src/platform/packages/shared/kbn-field-utils @elastic/kibana-data-discovery
src/platform/packages/shared/kbn-flot-charts @elastic/kibana-presentation @elastic/stack-monitoring
src/platform/packages/shared/kbn-ftr-common-functional-services @elastic/kibana-operations @elastic/appex-qa
src/platform/packages/shared/kbn-ftr-common-functional-ui-services @elastic/appex-qa
src/platform/packages/shared/kbn-grouping @elastic/response-ops
src/platform/packages/shared/kbn-guided-onboarding @elastic/appex-sharedux
src/platform/packages/shared/kbn-i18n @elastic/kibana-core
@ -490,7 +482,9 @@ src/platform/packages/shared/kbn-monaco @elastic/appex-sharedux
src/platform/packages/shared/kbn-object-utils @elastic/kibana-core
src/platform/packages/shared/kbn-object-versioning @elastic/appex-sharedux
src/platform/packages/shared/kbn-object-versioning-utils @elastic/appex-sharedux
src/platform/packages/shared/kbn-openapi-bundler @elastic/security-detection-rule-management
src/platform/packages/shared/kbn-openapi-common @elastic/security-detection-rule-management
src/platform/packages/shared/kbn-openapi-generator @elastic/security-detection-rule-management
src/platform/packages/shared/kbn-osquery-io-ts-types @elastic/security-asset-management
src/platform/packages/shared/kbn-palettes @elastic/kibana-visualizations
src/platform/packages/shared/kbn-profiling-utils @elastic/obs-ux-infra_services-team
@ -506,6 +500,7 @@ src/platform/packages/shared/kbn-rrule @elastic/response-ops
src/platform/packages/shared/kbn-rule-data-utils @elastic/security-detections-response @elastic/response-ops @elastic/obs-ux-management-team
src/platform/packages/shared/kbn-safer-lodash-set @elastic/kibana-security
src/platform/packages/shared/kbn-saved-search-component @elastic/obs-ux-logs-team
src/platform/packages/shared/kbn-scout @elastic/appex-qa
src/platform/packages/shared/kbn-search-api-panels @elastic/search-kibana
src/platform/packages/shared/kbn-search-connectors @elastic/search-kibana
src/platform/packages/shared/kbn-search-errors @elastic/kibana-data-discovery
@ -528,7 +523,12 @@ src/platform/packages/shared/kbn-sse-utils @elastic/obs-knowledge-team
src/platform/packages/shared/kbn-sse-utils-client @elastic/obs-knowledge-team
src/platform/packages/shared/kbn-sse-utils-server @elastic/obs-knowledge-team
src/platform/packages/shared/kbn-std @elastic/kibana-core
src/platform/packages/shared/kbn-storybook @elastic/kibana-operations
src/platform/packages/shared/kbn-test @elastic/kibana-operations @elastic/appex-qa
src/platform/packages/shared/kbn-test-jest-helpers @elastic/kibana-operations @elastic/appex-qa
src/platform/packages/shared/kbn-test-subj-selector @elastic/kibana-operations @elastic/appex-qa
src/platform/packages/shared/kbn-timerange @elastic/obs-ux-logs-team
src/platform/packages/shared/kbn-tooling-log @elastic/kibana-operations
src/platform/packages/shared/kbn-triggers-actions-ui-types @elastic/response-ops
src/platform/packages/shared/kbn-try-in-console @elastic/search-kibana
src/platform/packages/shared/kbn-typed-react-router-config @elastic/obs-knowledge-team @elastic/obs-ux-infra_services-team
@ -1334,7 +1334,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql
/x-pack/solutions/observability/plugins/infra/server/routes/log_alerts @elastic/obs-ux-logs-team
/x-pack/solutions/observability/plugins/infra/server/routes/log_analysis @elastic/obs-ux-logs-team
/x-pack/solutions/observability/plugins/infra/server/services/rules @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team
/x-pack/test/common/utils/synthtrace @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team # Assigned per https://github.com/elastic/kibana/blob/main/packages/kbn-apm-synthtrace/kibana.jsonc#L5
/x-pack/test/common/utils/synthtrace @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team # Assigned per https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-apm-synthtrace/kibana.jsonc#L5
/x-pack/test/common/utils/server_route_repository @elastic/obs-knowledge-team
# Infra Monitoring tests
@ -1721,7 +1721,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql
/test/functional/services/remote @elastic/appex-qa
/test/visual_regression @elastic/appex-qa
/x-pack/test/visual_regression @elastic/appex-qa
/packages/kbn-test/src/functional_test_runner @elastic/appex-qa
/src/platform/packages/shared/kbn-test/src/functional_test_runner @elastic/appex-qa
/packages/kbn-performance-testing-dataset-extractor @elastic/appex-qa
/x-pack/test_serverless/**/*config.base.ts @elastic/appex-qa
/x-pack/test_serverless/**/deployment_agnostic_services.ts @elastic/appex-qa
@ -1731,7 +1731,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql
/x-pack/test_serverless/functional/test_suites/security/ftr/ @elastic/appex-qa
/x-pack/test_serverless/functional/test_suites/common/home_page/ @elastic/appex-qa
/x-pack/test_serverless/**/services/ @elastic/appex-qa
/packages/kbn-es/src/stateful_resources/roles.yml @elastic/appex-qa
/src/platform/packages/shared/kbn-es/src/stateful_resources/roles.yml @elastic/appex-qa
/x-pack/test/api_integration/deployment_agnostic/ftr_provider_context.d.ts @elastic/appex-qa
/x-pack/test/api_integration/deployment_agnostic/README.md @elastic/appex-qa
/x-pack/test/api_integration/deployment_agnostic/*configs/ @elastic/appex-qa
@ -1828,7 +1828,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql
/config/serverless.security.yml @elastic/kibana-core @elastic/kibana-security
/typings/ @elastic/kibana-core
/test/analytics @elastic/kibana-core
/packages/kbn-test/src/jest/setup/mocks.kbn_i18n_react.js @elastic/kibana-core
/src/platform/packages/shared/kbn-test/src/jest/setup/mocks.kbn_i18n_react.js @elastic/kibana-core
/x-pack/test/saved_objects_field_count/ @elastic/kibana-core
/x-pack/test_serverless/**/test_suites/common/saved_objects_management/ @elastic/kibana-core
/x-pack/test_serverless/api_integration/test_suites/common/core/ @elastic/kibana-core

View file

@ -1,24 +1,26 @@
paths-ignore:
- '**/*-mocks/**'
- '**/*.cy.*'
- '**/*.mock.*'
- '**/*.mocks.*'
- '**/*.test.*'
- '**/.storybook/**'
- '**/__fixtures__/**'
- '**/__jest__/**'
- '**/__mocks__/**'
- '**/__snapshots__/**'
- '**/__stories__/**'
- '**/__tests__/**'
- '**/.storybook/**'
- '**/*-mocks/**'
- '**/*.cy.*'
- '**/*.mock.*'
- '**/*.mocks.*'
- '**/*.test.*'
- '**/cypress/**'
- '**/e2e/**'
- '**/ftr_e2e/**'
- '**/integration_tests/**'
- '**/jest.config.*'
- '**/jest.integration.config.*'
- '**/kbn-scout-*'
- '**/mocks.*'
- '**/mocks/**'
- '**/scripts/**'
- '**/storybook/**'
- '**/test_helpers/**'
- '**/test_utils/**'
@ -29,68 +31,67 @@ paths-ignore:
- kbn_pm
- legacy_rfcs
- oas_docs
- packages/*/scripts
- src/core/test-helpers/kbn-server
- packages/kbn-ambient-*-types
- packages/kbn-apm-synthtrace
- packages/kbn-axe-config
- packages/kbn-babel-*
- packages/kbn-bazel-*
- packages/kbn-ci-*
- packages/kbn-cli-dev-mode
- packages/kbn-cypress-*
- 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-*
- packages/kbn-expect
- packages/kbn-failed-test-reporter-cli
- packages/kbn-find-used-node-modules
- packages/kbn-ftr-*
- packages/kbn-generate
- packages/kbn-get-repo-files
- packages/kbn-import-resolver
- packages/kbn-jest-*
- 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-*
- packages/kbn-peggy
- packages/kbn-peggy-loader
- packages/kbn-performance-testing-dataset-extractor
- packages/kbn-plugin-generator
- packages/kbn-plugin-helpers
- packages/kbn-relocate
- packages/kbn-repo-path
- packages/kbn-repo-source-classifier
- packages/kbn-repo-source-classifier-cli
- packages/kbn-scout
- packages/kbn-scout-*
- packages/kbn-some-dev-log
- packages/kbn-sort-package-json
- packages/kbn-stdio-dev-helpers
- packages/kbn-storybook
- packages/kbn-telemetry-tools
- packages/kbn-test
- packages/kbn-test-*
- packages/kbn-tooling-log
- packages/kbn-ts-*
- packages/kbn-web-worker-stub
- packages/kbn-yarn-lock-validator
- scripts
- src/core/test-helpers/kbn-server
- src/platform/packages/*/kbn-ambient-*-types
- src/platform/packages/*/kbn-babel-*
- src/platform/packages/*/kbn-ci-*
- src/platform/packages/*/kbn-cypress-*
- src/platform/packages/*/kbn-ftr-*
- src/platform/packages/*/kbn-jest-*
- src/platform/packages/*/kbn-optimizer-*
- src/platform/packages/*/kbn-test-*
- src/platform/packages/private/kbn-get-repo-files
- src/platform/packages/private/kbn-import-resolver
- src/platform/packages/private/kbn-journeys
- src/platform/packages/private/kbn-peggy
- src/platform/packages/private/kbn-repo-path
- src/platform/packages/private/kbn-some-dev-log
- src/platform/packages/private/kbn-stdio-dev-helpers
- src/platform/packages/private/kbn-telemetry-tools
- src/platform/packages/shared/kbn-apm-synthtrace
- src/platform/packages/shared/kbn-axe-config
- src/platform/packages/shared/kbn-dev-cli-errors
- src/platform/packages/shared/kbn-dev-cli-runner
- src/platform/packages/shared/kbn-dev-proc-runner
- src/platform/packages/shared/kbn-dev-utils
- src/platform/packages/shared/kbn-es
- src/platform/packages/shared/kbn-es-archiver
- src/platform/packages/shared/kbn-expect
- src/platform/packages/shared/kbn-scout
- src/platform/packages/shared/kbn-storybook
- src/platform/packages/shared/kbn-test
- src/platform/packages/shared/kbn-tooling-log
- test
- typings
- x-pack/examples
- x-pack/performance
- x-pack/platform/**/scripts
- x-pack/plugins/observability_solution/*/scripts
- x-pack/scripts
- x-pack/solutions/**/scripts
- x-pack/test
- x-pack/test_serverless

View file

@ -11,8 +11,8 @@
- 'Team:obs-ux-infra_services':
- 'x-pack/solutions/observability/plugins/apm/**/*.*'
- 'x-pack/test/apm_api_integration/**/*.*'
- 'packages/kbn-apm-synthtrace/**/*.*'
- 'packages/kbn-apm-synthtrace-client/**/*.*'
- 'src/platform/packages/shared/kbn-apm-synthtrace/**/*.*'
- 'src/platform/packages/shared/kbn-apm-synthtrace-client/**/*.*'
- 'src/platform/packages/shared/kbn-apm-utils/**/*.*'
- 'x-pack/solutions/observability/plugins/ux/**/*.*'
- 'Team:Fleet':

4
.gitignore vendored
View file

@ -10,8 +10,8 @@
node_modules
!/src/dev/npm/integration_tests/__fixtures__/fixture1/node_modules
!/src/dev/notice/__fixtures__/node_modules
!/packages/kbn-import-resolver/src/__fixtures__/node_modules
!/packages/kbn-import-resolver/src/__fixtures__/packages/box/node_modules
!/src/platform/packages/private/kbn-import-resolver/src/__fixtures__/node_modules
!/src/platform/packages/private/kbn-import-resolver/src/__fixtures__/packages/box/node_modules
trash
/optimize
/built_assets

View file

@ -35,7 +35,7 @@ For an override related error the `expect(...)` will usually fail with typical e
See the image below for an example of a test failure due to the license type being overridden:
![image][./fips_test_failure_license_override_example.png]
The FIPS overrides can be found in the [fips_overrides.ts](https://github.com/elastic/kibana/blob/542a56b4829643d05c47bcc47485dd9baaacea32/packages/kbn-test/src/functional_tests/lib/fips_overrides.ts) file.
The FIPS overrides can be found in the [fips_overrides.ts](https://github.com/elastic/kibana/blob/542a56b4829643d05c47bcc47485dd9baaacea32/src/platform/packages/shared/kbn-test/src/functional_tests/lib/fips_overrides.ts) file.
For a FIPS/OpenSSL error, the error will be more cryptic/the test will fail to run, usually something like "digital envelope routines::unsupported". Generally these are related to Node.js's crypto module.

View file

@ -16,7 +16,7 @@ Journey runs a flow of user interactions with Kibana in a browser and collects A
It is possible to instrument Kibana with [custom performance metrics](https://docs.elastic.dev/kibana-dev-docs/tutorial/performance/adding_custom_performance_metrics),
that will provide more detailed information about feature performance.
Journeys core is [kbn-journeys](packages/kbn-journeys/README.mdx) package. It is a function test by design and is powered
Journeys core is [kbn-journeys](src/platform/packages/private/kbn-journeys/README.mdx) package. It is a function test by design and is powered
by [Playwright](https://playwright.dev/) end-to-end testing tool.
### Adding a new performance journey

View file

@ -20,7 +20,7 @@ The process takes a few steps:
### Re-configure deployment for Kibana and Elasticsearch
We use [kibana-ops-e2e-perf](https://kibana-ops-e2e-perf.kb.us-central1.gcp.cloud.es.io/) cluster to monitor performance testing.
If you would like to report APM metrics to this cluster, copy `SECRET_TOKEN` and `SERVER_URL` values from [packages/kbn-journeys/journey/journey_apm_config.ts](https://github.com/elastic/kibana/blob/60c82765779419d356a131e212682b69b035804b/packages/kbn-journeys/journey/journey_apm_config.ts#L10-L11)
If you would like to report APM metrics to this cluster, copy `SECRET_TOKEN` and `SERVER_URL` values from [src/platform/packages/private/kbn-journeys/journey/journey_apm_config.ts](https://github.com/elastic/kibana/blob/60c82765779419d356a131e212682b69b035804b/src/platform/packages/private/kbn-journeys/journey/journey_apm_config.ts#L10-L11)
#### Change Elasticsearch configuration
In the ESS Admin Console, find your deployment and navigate to `Security` page. Click `Add Settings` under `Elasticsearch keystore` and add new entry:

View file

@ -60,7 +60,7 @@ The number of saved object fields broken down by saved object type.
[[ci-metric-adding-new-metrics]]
=== Adding new metrics
You can report new metrics by using the `CiStatsReporter` class provided by the `@kbn/dev-utils` package. This class is automatically configured on CI and its methods noop when running outside of CI. For more details checkout the {kib-repo}blob/{branch}/packages/kbn-ci-stats-reporter[`CiStatsReporter` readme].
You can report new metrics by using the `CiStatsReporter` class provided by the `@kbn/dev-utils` package. This class is automatically configured on CI and its methods noop when running outside of CI. For more details checkout the {kib-repo}blob/{branch}/src/platform/packages/private/kbn-ci-stats-reporter[`CiStatsReporter` readme].
[[ci-metric-resolving-overages]]
=== Resolving `page load bundle size` overages

View file

@ -127,7 +127,7 @@ Run `node scripts/functional_test_runner --help` to see all available options.
[discrete]
==== Environment
The tests are written in https://mochajs.org[mocha] using https://github.com/elastic/kibana/tree/main/packages/kbn-expect[@kbn/expect] for assertions.
The tests are written in https://mochajs.org[mocha] using https://github.com/elastic/kibana/tree/main/src/platform/packages/shared/kbn-expect[@kbn/expect] for assertions.
We use https://www.w3.org/TR/webdriver1/[WebDriver Protocol] to run tests in both Chrome and Firefox with the help of https://sites.google.com/a/chromium.org/chromedriver/[chromedriver] and https://firefox-source-docs.mozilla.org/testing/geckodriver/[geckodriver]. When the `FunctionalTestRunner` launches, remote service creates a new webdriver session, which starts the driver and a stripped-down browser instance. We use `browser` service and `webElementWrapper` class to wrap up https://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/[Webdriver API].
@ -203,7 +203,7 @@ Tests should run at the positive security boundary condition, meaning that they
The functional UI tests now default to logging in with a user named `test_user` and the roles of this user can be changed dynamically without logging in and out.
In order to achieve this a new service was introduced called `createTestUserService` (see `packages/kbn-ftr-common-functional-ui-services/services/security/test_user.ts`). The purpose of this test user service is to create roles defined in the test config files and setRoles() or restoreDefaults().
In order to achieve this a new service was introduced called `createTestUserService` (see `src/platform/packages/shared/kbn-ftr-common-functional-ui-services/services/security/test_user.ts`). The purpose of this test user service is to create roles defined in the test config files and setRoles() or restoreDefaults().
An example of how to set the role like how its defined below:
@ -217,7 +217,7 @@ Tests should normally setRoles() in the before() and restoreDefaults() in the af
[discrete]
==== Anatomy of a test file
This annotated example file shows the basic structure every test suite uses. It starts by importing https://github.com/elastic/kibana/tree/main/packages/kbn-expect[`@kbn/expect`] and defining its default export: an anonymous Test Provider. The test provider then destructures the Provider API for the `getService()` and `getPageObjects()` functions. It uses these functions to collect the dependencies of this suite. The rest of the test file will look pretty normal to mocha.js users. `describe()`, `it()`, `before()` and the lot are used to define suites that happen to automate a browser via services and objects of type `PageObject`.
This annotated example file shows the basic structure every test suite uses. It starts by importing https://github.com/elastic/kibana/tree/main/src/platform/packages/shared/kbn-expect[`@kbn/expect`] and defining its default export: an anonymous Test Provider. The test provider then destructures the Provider API for the `getService()` and `getPageObjects()` functions. It uses these functions to collect the dependencies of this suite. The rest of the test file will look pretty normal to mocha.js users. `describe()`, `it()`, `before()` and the lot are used to define suites that happen to automate a browser via services and objects of type `PageObject`.
["source","js"]
----
@ -311,7 +311,7 @@ The `FunctionalTestRunner` comes with three built-in services:
* Use `config.get(path)` to read any value from the config file
**log:**:::
// * Source: {kibana-blob}packages/kbn-dev-utils/src/tooling_log/tooling_log.js[packages/kbn-dev-utils/src/tooling_log/tooling_log.js]
// * Source: {kibana-blob}src/platform/packages/shared/kbn-dev-utils/src/tooling_log/tooling_log.js[src/platform/packages/shared/kbn-dev-utils/src/tooling_log/tooling_log.js]
* `ToolingLog` instances are readable streams. The instance provided by this service is automatically piped to stdout by the `FunctionalTestRunner` CLI
* `log.verbose()`, `log.debug()`, `log.info()`, `log.warning()` all work just like console.log but produce more organized output
@ -366,14 +366,14 @@ await testSubjects.click(containerButton);
** `find.allByCssSelector()`
**retry:**:::
// * Source: {kibana-blob}packages/kbn-ftr-common-functional-services/services/retry/retry.ts[packages/kbn-ftr-common-functional-services/services/retry/retry.ts]
// * Source: {kibana-blob}src/platform/packages/shared/kbn-ftr-common-functional-services/services/retry/retry.ts[src/platform/packages/shared/kbn-ftr-common-functional-services/services/retry/retry.ts]
* Helpers for retrying operations
* Popular methods:
** `retry.try(fn, onFailureBlock)` - Execute `fn` in a loop until it succeeds or the default timeout elapses. The optional `onFailureBlock` is executed before each retry attempt.
** `retry.tryForTime(ms, fn, onFailureBlock)` - Execute `fn` in a loop until it succeeds or `ms` milliseconds elapses. The optional `onFailureBlock` is executed before each retry attempt.
**kibanaServer:**:::
// * Source: {kibana-blob}packages/kbn-ftr-common-functional-services/services/kibana_server/kibana_server.ts[packages/kbn-ftr-common-functional-services/services/kibana_server/kibana_server.ts]
// * Source: {kibana-blob}src/platform/packages/shared/kbn-ftr-common-functional-services/services/kibana_server/kibana_server.ts[src/platform/packages/shared/kbn-ftr-common-functional-services/services/kibana_server/kibana_server.ts]
* Helpers for interacting with {kib}'s server
* Commonly used methods:
** `kibanaServer.uiSettings.update()`
@ -381,7 +381,7 @@ await testSubjects.click(containerButton);
** `kibanaServer.status.getOverallState()`
**esArchiver:**:::
// * Source: {kibana-blob}packages/kbn-ftr-common-functional-services/services/es_archiver.ts[packages/kbn-ftr-common-functional-services/services/es_archiver.ts]
// * Source: {kibana-blob}src/platform/packages/shared/kbn-ftr-common-functional-services/services/es_archiver.ts[src/platform/packages/shared/kbn-ftr-common-functional-services/services/es_archiver.ts]
* Load/unload archives created with the `esArchiver`
* Popular methods:
** `esArchiver.load(path)`
@ -393,7 +393,7 @@ Full list of services that are used in functional tests can be found here: {kiba
**Low-level utilities:**:::
* es
// ** Source: {kibana-blob}packages/kbn-ftr-common-functional-services/services/es.ts[packages/kbn-ftr-common-functional-services/services/es.ts]
// ** Source: {kibana-blob}src/platform/packages/shared/kbn-ftr-common-functional-services/services/es.ts[src/platform/packages/shared/kbn-ftr-common-functional-services/services/es.ts]
** {es} client
** Higher level options: `kibanaServer.uiSettings` or `esArchiver`
* remote

View file

@ -29,7 +29,7 @@ the relative path to the test file.
=== Unit Testing
Kibana primarily uses Jest for unit testing. Each plugin or package defines a `jest.config.js` that extends link:{kib-repo}tree/{branch}/packages/kbn-test/jest-preset.js[a preset] provided by the link:{kib-repo}tree/{branch}/packages/kbn-test[`@kbn/test`] package. Unless you intend to run all unit tests within the project, it's most efficient to provide the Jest configuration file for the plugin or package you're testing.
Kibana primarily uses Jest for unit testing. Each plugin or package defines a `jest.config.js` that extends link:{kib-repo}tree/{branch}/src/platform/packages/shared/kbn-test/jest-preset.js[a preset] provided by the link:{kib-repo}tree/{branch}/src/platform/packages/shared/kbn-test[`@kbn/test`] package. Unless you intend to run all unit tests within the project, it's most efficient to provide the Jest configuration file for the plugin or package you're testing.
[source,bash]
----

View file

@ -6,7 +6,7 @@ NOTE:
node scripts/build_plugin_list_docs
You can update the template within packages/kbn-dev-utils/src/plugin_list/generate_plugin_list.ts
You can update the template within src/platform/packages/shared/kbn-dev-utils/src/plugin_list/generate_plugin_list.ts
////

View file

@ -65,7 +65,7 @@ export default async function ({ readConfigFile }) {
// more settings, like timeouts, mochaOpts, etc are
// defined in the config schema.
// See {kibana-blob}packages/kbn-test/src/functional_test_runner/lib/config/schema.ts
// See {kibana-blob}src/platform/packages/shared/kbn-test/src/functional_test_runner/lib/config/schema.ts
};
}

View file

@ -85,7 +85,7 @@ We are aware there are quite a few alternatives to Webpack, but our plan is to c
### Unit Testing
A Bazel macro will be created to centralize the usage of Jest unit testing. The macro will, at minimum, accept a Jest configuration file, add the [Jest preset](https://github.com/elastic/kibana/blob/main/packages/kbn-test/jest-preset.js) and its dependencies as sources, then use the Jest CLI to execute tests.
A Bazel macro will be created to centralize the usage of Jest unit testing. The macro will, at minimum, accept a Jest configuration file, add the [Jest preset](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-test/jest-preset.js) and its dependencies as sources, then use the Jest CLI to execute tests.
Developers currently use `yarn test:jest` to efficiently run tests in a given directory without remembering the command or path. This command will continue to work as it does today, but will begin running tests through Bazel for packages or plugins which have been migrated.

View file

@ -14,7 +14,7 @@ These bundles form the basis of our OpenAPI bundles to which we append and layer
### Step 1
Append pre-existing bundles not extracted from code using [`kbn-openapi-bundler`](../packages/kbn-openapi-bundler/README.md) to produce the final resulting bundles.
Append pre-existing bundles not extracted from code using [`kbn-openapi-bundler`](../src/platform/packages/shared/kbn-openapi-bundler/README.md) to produce the final resulting bundles.
To add more files into the final bundle, edit the appropriate `oas_docs/scripts/merge*.js` files.

View file

@ -695,7 +695,7 @@
"@kbn/newsfeed-plugin": "link:src/platform/plugins/shared/newsfeed",
"@kbn/newsfeed-test-plugin": "link:test/common/plugins/newsfeed",
"@kbn/no-data-page-plugin": "link:src/platform/plugins/private/no_data_page",
"@kbn/node-libs-browser-webpack-plugin": "link:packages/kbn-node-libs-browser-webpack-plugin",
"@kbn/node-libs-browser-webpack-plugin": "link:src/platform/packages/private/kbn-node-libs-browser-webpack-plugin",
"@kbn/notifications-plugin": "link:x-pack/platform/plugins/shared/notifications",
"@kbn/object-utils": "link:src/platform/packages/shared/kbn-object-utils",
"@kbn/object-versioning": "link:src/platform/packages/shared/kbn-object-versioning",
@ -1345,28 +1345,28 @@
"@jest/types": "^29.6.3",
"@kayahr/text-encoding": "^1.3.0",
"@kbn/alerting-api-integration-helpers": "link:x-pack/test/alerting_api_integration/packages/helpers",
"@kbn/ambient-common-types": "link:packages/kbn-ambient-common-types",
"@kbn/ambient-ftr-types": "link:packages/kbn-ambient-ftr-types",
"@kbn/ambient-storybook-types": "link:packages/kbn-ambient-storybook-types",
"@kbn/ambient-ui-types": "link:packages/kbn-ambient-ui-types",
"@kbn/ambient-common-types": "link:src/platform/packages/private/kbn-ambient-common-types",
"@kbn/ambient-ftr-types": "link:src/platform/packages/private/kbn-ambient-ftr-types",
"@kbn/ambient-storybook-types": "link:src/platform/packages/shared/kbn-ambient-storybook-types",
"@kbn/ambient-ui-types": "link:src/platform/packages/shared/kbn-ambient-ui-types",
"@kbn/apm-ftr-e2e": "link:x-pack/solutions/observability/plugins/apm/ftr_e2e",
"@kbn/apm-synthtrace": "link:packages/kbn-apm-synthtrace",
"@kbn/apm-synthtrace-client": "link:packages/kbn-apm-synthtrace-client",
"@kbn/axe-config": "link:packages/kbn-axe-config",
"@kbn/apm-synthtrace": "link:src/platform/packages/shared/kbn-apm-synthtrace",
"@kbn/apm-synthtrace-client": "link:src/platform/packages/shared/kbn-apm-synthtrace-client",
"@kbn/axe-config": "link:src/platform/packages/shared/kbn-axe-config",
"@kbn/babel-preset": "link:packages/kbn-babel-preset",
"@kbn/babel-register": "link:packages/kbn-babel-register",
"@kbn/babel-transform": "link:packages/kbn-babel-transform",
"@kbn/babel-register": "link:src/platform/packages/shared/kbn-babel-register",
"@kbn/babel-transform": "link:src/platform/packages/private/kbn-babel-transform",
"@kbn/bazel-runner": "link:packages/kbn-bazel-runner",
"@kbn/capture-oas-snapshot-cli": "link:packages/kbn-capture-oas-snapshot-cli",
"@kbn/check-mappings-update-cli": "link:packages/kbn-check-mappings-update-cli",
"@kbn/check-prod-native-modules-cli": "link:packages/kbn-check-prod-native-modules-cli",
"@kbn/ci-stats-core": "link:packages/kbn-ci-stats-core",
"@kbn/ci-stats-core": "link:src/platform/packages/private/kbn-ci-stats-core",
"@kbn/ci-stats-performance-metrics": "link:packages/kbn-ci-stats-performance-metrics",
"@kbn/ci-stats-reporter": "link:packages/kbn-ci-stats-reporter",
"@kbn/ci-stats-reporter": "link:src/platform/packages/private/kbn-ci-stats-reporter",
"@kbn/ci-stats-shipper-cli": "link:packages/kbn-ci-stats-shipper-cli",
"@kbn/cli-dev-mode": "link:packages/kbn-cli-dev-mode",
"@kbn/code-editor-mock": "link:src/platform/packages/shared/shared-ux/code_editor/mocks",
"@kbn/code-owners": "link:packages/kbn-code-owners",
"@kbn/code-owners": "link:src/platform/packages/private/kbn-code-owners",
"@kbn/core-analytics-browser-mocks": "link:src/core/packages/analytics/browser-mocks",
"@kbn/core-analytics-server-mocks": "link:src/core/packages/analytics/server-mocks",
"@kbn/core-application-browser-mocks": "link:src/core/packages/application/browser-mocks",
@ -1424,16 +1424,16 @@
"@kbn/core-ui-settings-browser-mocks": "link:src/core/packages/ui-settings/browser-mocks",
"@kbn/core-ui-settings-server-mocks": "link:src/core/packages/ui-settings/server-mocks",
"@kbn/core-usage-data-server-mocks": "link:src/core/packages/usage-data/server-mocks",
"@kbn/cypress-config": "link:packages/kbn-cypress-config",
"@kbn/cypress-config": "link:src/platform/packages/shared/kbn-cypress-config",
"@kbn/dependency-ownership": "link:packages/kbn-dependency-ownership",
"@kbn/dependency-usage": "link:packages/kbn-dependency-usage",
"@kbn/dev-cli-errors": "link:packages/kbn-dev-cli-errors",
"@kbn/dev-cli-runner": "link:packages/kbn-dev-cli-runner",
"@kbn/dev-proc-runner": "link:packages/kbn-dev-proc-runner",
"@kbn/dev-utils": "link:packages/kbn-dev-utils",
"@kbn/dev-cli-errors": "link:src/platform/packages/shared/kbn-dev-cli-errors",
"@kbn/dev-cli-runner": "link:src/platform/packages/shared/kbn-dev-cli-runner",
"@kbn/dev-proc-runner": "link:src/platform/packages/shared/kbn-dev-proc-runner",
"@kbn/dev-utils": "link:src/platform/packages/shared/kbn-dev-utils",
"@kbn/docs-utils": "link:packages/kbn-docs-utils",
"@kbn/es": "link:packages/kbn-es",
"@kbn/es-archiver": "link:packages/kbn-es-archiver",
"@kbn/es": "link:src/platform/packages/shared/kbn-es",
"@kbn/es-archiver": "link:src/platform/packages/shared/kbn-es-archiver",
"@kbn/eslint-config": "link:packages/kbn-eslint-config",
"@kbn/eslint-plugin-css": "link:packages/kbn-eslint-plugin-css",
"@kbn/eslint-plugin-disable": "link:packages/kbn-eslint-plugin-disable",
@ -1441,21 +1441,21 @@
"@kbn/eslint-plugin-i18n": "link:packages/kbn-eslint-plugin-i18n",
"@kbn/eslint-plugin-imports": "link:packages/kbn-eslint-plugin-imports",
"@kbn/eslint-plugin-telemetry": "link:packages/kbn-eslint-plugin-telemetry",
"@kbn/expect": "link:packages/kbn-expect",
"@kbn/expect": "link:src/platform/packages/shared/kbn-expect",
"@kbn/failed-test-reporter-cli": "link:packages/kbn-failed-test-reporter-cli",
"@kbn/find-used-node-modules": "link:packages/kbn-find-used-node-modules",
"@kbn/ftr-common-functional-services": "link:packages/kbn-ftr-common-functional-services",
"@kbn/ftr-common-functional-ui-services": "link:packages/kbn-ftr-common-functional-ui-services",
"@kbn/ftr-screenshot-filename": "link:packages/kbn-ftr-screenshot-filename",
"@kbn/gen-ai-functional-testing": "link:packages/kbn-gen-ai-functional-testing",
"@kbn/ftr-common-functional-services": "link:src/platform/packages/shared/kbn-ftr-common-functional-services",
"@kbn/ftr-common-functional-ui-services": "link:src/platform/packages/shared/kbn-ftr-common-functional-ui-services",
"@kbn/ftr-screenshot-filename": "link:src/platform/packages/private/kbn-ftr-screenshot-filename",
"@kbn/gen-ai-functional-testing": "link:src/platform/packages/private/kbn-gen-ai-functional-testing",
"@kbn/generate": "link:packages/kbn-generate",
"@kbn/generate-console-definitions": "link:packages/kbn-generate-console-definitions",
"@kbn/get-repo-files": "link:packages/kbn-get-repo-files",
"@kbn/get-repo-files": "link:src/platform/packages/private/kbn-get-repo-files",
"@kbn/import-locator": "link:packages/kbn-import-locator",
"@kbn/import-resolver": "link:packages/kbn-import-resolver",
"@kbn/import-resolver": "link:src/platform/packages/private/kbn-import-resolver",
"@kbn/inventory-e2e": "link:x-pack/solutions/observability/plugins/inventory/e2e",
"@kbn/jest-serializers": "link:packages/kbn-jest-serializers",
"@kbn/journeys": "link:packages/kbn-journeys",
"@kbn/jest-serializers": "link:src/platform/packages/private/kbn-jest-serializers",
"@kbn/journeys": "link:src/platform/packages/private/kbn-journeys",
"@kbn/json-ast": "link:packages/kbn-json-ast",
"@kbn/kibana-manifest-schema": "link:packages/kbn-kibana-manifest-schema",
"@kbn/lint-packages-cli": "link:packages/kbn-lint-packages-cli",
@ -1465,13 +1465,13 @@
"@kbn/management-storybook-config": "link:src/platform/packages/shared/kbn-management/storybook/config",
"@kbn/manifest": "link:packages/kbn-manifest",
"@kbn/mock-idp-plugin": "link:packages/kbn-mock-idp-plugin",
"@kbn/mock-idp-utils": "link:packages/kbn-mock-idp-utils",
"@kbn/mock-idp-utils": "link:src/platform/packages/private/kbn-mock-idp-utils",
"@kbn/observability-synthetics-test-data": "link:x-pack/solutions/observability/packages/synthetics-test-data",
"@kbn/openapi-bundler": "link:packages/kbn-openapi-bundler",
"@kbn/openapi-generator": "link:packages/kbn-openapi-generator",
"@kbn/openapi-bundler": "link:src/platform/packages/shared/kbn-openapi-bundler",
"@kbn/openapi-generator": "link:src/platform/packages/shared/kbn-openapi-generator",
"@kbn/optimizer": "link:packages/kbn-optimizer",
"@kbn/optimizer-webpack-helpers": "link:packages/kbn-optimizer-webpack-helpers",
"@kbn/peggy": "link:packages/kbn-peggy",
"@kbn/optimizer-webpack-helpers": "link:src/platform/packages/private/kbn-optimizer-webpack-helpers",
"@kbn/peggy": "link:src/platform/packages/private/kbn-peggy",
"@kbn/peggy-loader": "link:packages/kbn-peggy-loader",
"@kbn/performance-testing-dataset-extractor": "link:packages/kbn-performance-testing-dataset-extractor",
"@kbn/picomatcher": "link:packages/kbn-picomatcher",
@ -1482,14 +1482,14 @@
"@kbn/relocate": "link:packages/kbn-relocate",
"@kbn/repo-file-maps": "link:packages/kbn-repo-file-maps",
"@kbn/repo-linter": "link:packages/kbn-repo-linter",
"@kbn/repo-path": "link:packages/kbn-repo-path",
"@kbn/repo-path": "link:src/platform/packages/private/kbn-repo-path",
"@kbn/repo-source-classifier": "link:packages/kbn-repo-source-classifier",
"@kbn/repo-source-classifier-cli": "link:packages/kbn-repo-source-classifier-cli",
"@kbn/reporting-mocks-server": "link:src/platform/packages/private/kbn-reporting/mocks_server",
"@kbn/scout": "link:packages/kbn-scout",
"@kbn/scout-info": "link:packages/kbn-scout-info",
"@kbn/scout": "link:src/platform/packages/shared/kbn-scout",
"@kbn/scout-info": "link:src/platform/packages/private/kbn-scout-info",
"@kbn/scout-oblt": "link:x-pack/solutions/observability/packages/kbn-scout-oblt",
"@kbn/scout-reporting": "link:packages/kbn-scout-reporting",
"@kbn/scout-reporting": "link:src/platform/packages/private/kbn-scout-reporting",
"@kbn/security-api-integration-helpers": "link:x-pack/test/security_api_integration/packages/helpers",
"@kbn/serverless-storybook-config": "link:src/platform/packages/shared/serverless/storybook/config",
"@kbn/set-map": "link:packages/kbn-set-map",
@ -1507,23 +1507,23 @@
"@kbn/shared-ux-router-mocks": "link:src/platform/packages/shared/shared-ux/router/mocks",
"@kbn/shared-ux-storybook-config": "link:src/platform/packages/private/shared-ux/storybook/config",
"@kbn/shared-ux-storybook-mock": "link:src/platform/packages/shared/shared-ux/storybook/mock",
"@kbn/some-dev-log": "link:packages/kbn-some-dev-log",
"@kbn/some-dev-log": "link:src/platform/packages/private/kbn-some-dev-log",
"@kbn/sort-package-json": "link:packages/kbn-sort-package-json",
"@kbn/stdio-dev-helpers": "link:packages/kbn-stdio-dev-helpers",
"@kbn/storybook": "link:packages/kbn-storybook",
"@kbn/stdio-dev-helpers": "link:src/platform/packages/private/kbn-stdio-dev-helpers",
"@kbn/storybook": "link:src/platform/packages/shared/kbn-storybook",
"@kbn/styled-components-mapping-cli": "link:packages/kbn-styled-components-mapping-cli",
"@kbn/synthetics-e2e": "link:x-pack/solutions/observability/plugins/synthetics/e2e",
"@kbn/synthetics-private-location": "link:x-pack/packages/kbn-synthetics-private-location",
"@kbn/telemetry-tools": "link:packages/kbn-telemetry-tools",
"@kbn/test": "link:packages/kbn-test",
"@kbn/test-eui-helpers": "link:packages/kbn-test-eui-helpers",
"@kbn/test-jest-helpers": "link:packages/kbn-test-jest-helpers",
"@kbn/test-subj-selector": "link:packages/kbn-test-subj-selector",
"@kbn/telemetry-tools": "link:src/platform/packages/private/kbn-telemetry-tools",
"@kbn/test": "link:src/platform/packages/shared/kbn-test",
"@kbn/test-eui-helpers": "link:src/platform/packages/private/kbn-test-eui-helpers",
"@kbn/test-jest-helpers": "link:src/platform/packages/shared/kbn-test-jest-helpers",
"@kbn/test-subj-selector": "link:src/platform/packages/shared/kbn-test-subj-selector",
"@kbn/test-suites-serverless": "link:x-pack/test_serverless",
"@kbn/test-suites-src": "link:test",
"@kbn/test-suites-xpack": "link:x-pack/test",
"@kbn/test-suites-xpack-performance": "link:x-pack/performance",
"@kbn/tooling-log": "link:packages/kbn-tooling-log",
"@kbn/tooling-log": "link:src/platform/packages/shared/kbn-tooling-log",
"@kbn/ts-projects": "link:packages/kbn-ts-projects",
"@kbn/ts-type-check-cli": "link:packages/kbn-ts-type-check-cli",
"@kbn/validate-next-docs-cli": "link:packages/kbn-validate-next-docs-cli",

View file

@ -1 +0,0 @@
See packages/kbn-apm-synthtrace/README.json

View file

@ -20,8 +20,8 @@ module.exports = {
* Used by `kbn-babel-preset` and `kbn-eslint-config`.
*/
USES_STYLED_COMPONENTS: [
/packages[\/\\]kbn-ui-shared-deps-npm[\/\\]/,
/packages[\/\\]kbn-ui-shared-deps-src[\/\\]/,
/src[\/\\]platform[\/\\]packages[\/\\]private[\/\\]kbn-ui-shared-deps-npm[\/\\]/,
/src[\/\\]platform[\/\\]packages[\/\\]private[\/\\]kbn-ui-shared-deps-src[\/\\]/,
/x-pack[\/\\]platform[\/\\]packages[\/\\]shared[\/\\]kbn-elastic-assistant[\/\\]impl[\/\\]assistant[\/\\]assistant_overlay[\/\\]index.tsx/,
/x-pack[\/\\]platform[\/\\]packages[\/\\]shared[\/\\]kbn-elastic-assistant[\/\\]impl[\/\\]assistant[\/\\]settings[\/\\]assistant_settings.tsx/,

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-code-owners'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-cypress-config'],
};

View file

@ -8,13 +8,23 @@
*/
export const aggregationGroups = [
'x-pack/plugins',
'x-pack/solutions/observability/plugins',
'x-pack/solutions/observability/packages',
'x-pack/solutions/security/plugins',
'x-pack/solutions/security/packages',
'x-pack/solutions/search/plugins',
'x-pack/solutions/search/packages',
'x-pack/platform/plugins',
'x-pack/platform/packages',
'x-pack/packages',
'src/plugins',
'src/platform/plugins',
'src/platform/packages',
'src/core/packages',
'packages',
'src',
'x-pack/test',
'x-pack/test_serverless',
'test',
];
export const excludePaths = [

View file

@ -114,11 +114,11 @@ describe('identifyDependencyUsage', () => {
const [, configWithDepth1] = (cruise as jest.Mock).mock.calls[1];
expect(configWithDepth2.collapse).toMatchInlineSnapshot(
`"^(x-pack/plugins|x-pack/packages|src/plugins|packages|src|x-pack/test|x-pack/test_serverless)/([^/]+)/([^/]+)"`
`"^(x-pack/solutions/observability/plugins|x-pack/solutions/observability/packages|x-pack/solutions/security/plugins|x-pack/solutions/security/packages|x-pack/solutions/search/plugins|x-pack/solutions/search/packages|x-pack/platform/plugins|x-pack/platform/packages|x-pack/packages|src/platform/plugins|src/platform/packages|src/core/packages|packages|src|x-pack/test|x-pack/test_serverless|test)/([^/]+)/([^/]+)"`
);
expect(configWithDepth1.collapse).toMatchInlineSnapshot(
`"^(x-pack/plugins|x-pack/packages|src/plugins|packages|src|x-pack/test|x-pack/test_serverless)/([^/]+)|^node_modules/(@[^/]+/[^/]+|[^/]+)"`
`"^(x-pack/solutions/observability/plugins|x-pack/solutions/observability/packages|x-pack/solutions/security/plugins|x-pack/solutions/security/packages|x-pack/solutions/search/plugins|x-pack/solutions/search/packages|x-pack/platform/plugins|x-pack/platform/packages|x-pack/packages|src/platform/plugins|src/platform/packages|src/core/packages|packages|src|x-pack/test|x-pack/test_serverless|test)/([^/]+)|^node_modules/(@[^/]+/[^/]+|[^/]+)"`
);
});

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-dev-cli-errors'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-dev-cli-runner'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-dev-proc-runner'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-es'],
};

View file

@ -120,7 +120,7 @@ module.exports = {
from: 'zod',
to: '@kbn/zod',
disallowedMessage: `import from @kbn/zod instead`,
exclude: [/packages[\/\\]kbn-zod[\/\\]/],
exclude: [/src[\/\\]platform[\/\\]packages[\/\\]shared[\/\\]kbn-zod[\/\\]/],
},
{
from: 'styled-components',

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-expect'],
};

View file

@ -15,7 +15,7 @@
</body>
</html>
at Function.getSnapshot (/var/lib/jenkins/workspace/elastic+kibana+master/JOB/x-pack-intake/node/immutable/kibana/packages/kbn-es/src/artifact.js:95:13)
at Function.getSnapshot (/var/lib/jenkins/workspace/elastic+kibana+master/JOB/x-pack-intake/node/immutable/kibana/src/platform/packages/shared/kbn-es/src/artifact.js:95:13)
at process._tickCallback (internal/process/next_tick.js:68:7)]]>
</failure>
</testcase>

View file

@ -227,7 +227,7 @@ it('rewrites mocha reports with minimal changes', async () => {
/body
/html
at Function.getSnapshot (/var/lib/jenkins/workspace/elastic+kibana+master/JOB/x-pack-intake/node/immutable/kibana/packages/kbn-es/src/artifact.js:95:13)
at Function.getSnapshot (/var/lib/jenkins/workspace/elastic+kibana+master/JOB/x-pack-intake/node/immutable/kibana/src/platform/packages/shared/kbn-es/src/artifact.js:95:13)
- at process._tickCallback (internal/process/next_tick.js:68:7)]]
- /failure
+ at process._tickCallback (internal/process/next_tick.js:68:7)

View file

@ -115,7 +115,7 @@ it('discovers failures in mocha report', async () => {
</body>
</html>
at Function.getSnapshot (/var/lib/jenkins/workspace/elastic+kibana+master/JOB/x-pack-intake/node/immutable/kibana/packages/kbn-es/src/artifact.js:95:13)
at Function.getSnapshot (/var/lib/jenkins/workspace/elastic+kibana+master/JOB/x-pack-intake/node/immutable/kibana/src/platform/packages/shared/kbn-es/src/artifact.js:95:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
",
"likelyIrrelevant": true,

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-ftr-common-functional-ui-services'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-ftr-screenshot-filename'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-gen-ai-functional-testing'],
};

View file

@ -88,7 +88,23 @@ export const PackageCommand: GenerateCommand = {
throw createFlagError(`expected --owner to be a string starting with an @ symbol`);
}
let isCliScript = false;
if (dev) {
isCliScript = (
await inquirer.prompt<{ cli: boolean }>({
type: 'list',
default: false,
choices: [
{ name: 'Yes, it can go in /packages', value: true },
{ name: 'No, it will be used from platform / solutions code', value: false },
],
name: 'cli',
message: `Is the package going to be used exclusively from tooling / CLI scripts?`,
})
).cli;
}
if (isCliScript) {
calculatedPackageDir = determineDevPackageDir(pkgId);
} else {
group = (

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-get-repo-files'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-journeys'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-node-libs-browser-webpack-plugin'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-optimizer-webpack-helpers'],
};

View file

@ -21,7 +21,7 @@ SRCS = glob(
)
BUNDLER_DEPS = [
"//packages/kbn-peggy",
"//src/platform/packages/private/kbn-peggy",
"@npm//peggy",
"@npm//webpack",
]

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-peggy'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-repo-path'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-scout-info'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-scout-reporting'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-scout'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-some-dev-log'],
};

View file

@ -1,16 +0,0 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
"jest",
"node"
]
},
"include": [
"**/*.ts"
],
"exclude": [
"target/**/*",
]
}

View file

@ -10,7 +10,7 @@
import * as fs from 'node:fs/promises';
import * as path from 'node:path';
const SOURCE_DIRS = ['x-pack', 'src', 'packages'];
const SOURCE_DIRS = ['x-pack', 'src'];
const SOURCE_FILE_REGEX = /(^.?|\.[^d]|[^.]d|[^.][^d])\.tsx?$/;
const STYLED_COMPONENTS_IMPORT_REGEX =
/import\s+(?:{[^{}]+}|.*?)\s*(?:from)?\s*['"](styled-components)['"]/;

View file

@ -31,8 +31,8 @@ module.exports = {
* Used by \`kbn-babel-preset\` and \`kbn-eslint-config\`.
*/
USES_STYLED_COMPONENTS: [
/packages[\\/\\\\]kbn-ui-shared-deps-npm[\\/\\\\]/,
/packages[\\/\\\\]kbn-ui-shared-deps-src[\\/\\\\]/,
/src[\\/\\\\]platform[\\/\\\\]packages[\\/\\\\]private[\\/\\\\]kbn-ui-shared-deps-npm[\\/\\\\]/,
/src[\\/\\\\]platform[\\/\\\\]packages[\\/\\\\]private[\\/\\\\]kbn-ui-shared-deps-src[\\/\\\\]/,
`;
const babelFileSuffix = ` ],

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-telemetry-tools'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-test-eui-helpers'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-test-jest-helpers'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-test-subj-selector'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-test'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-tooling-log'],
};

View file

@ -19,11 +19,11 @@ This directory is excluded from the build and tools within it should help users
**`node scripts/functional_tests [--config test/functional/config.base.js --config test/api_integration/config.js]`**
Runs all the functional tests: selenium tests and api integration tests. List configs with multiple `--config` arguments. Uses the [@kbn/test](../packages/kbn-test) library to run Elasticsearch and Kibana servers and tests against those servers, for multiple server+test setups. In particular, calls out to [`runTests()`](../packages/kbn-test/src/functional_tests/run_tests/run_tests.ts). Can be run on a single config.
Runs all the functional tests: selenium tests and api integration tests. List configs with multiple `--config` arguments. Uses the [@kbn/test](../src/platform/packages/shared/kbn-test) library to run Elasticsearch and Kibana servers and tests against those servers, for multiple server+test setups. In particular, calls out to [`runTests()`](../src/platform/packages/shared/kbn-test/src/functional_tests/run_tests/run_tests.ts). Can be run on a single config.
**`node scripts/functional_tests_server [--config test/functional/config.base.js]`**
Starts just the Elasticsearch and Kibana servers given a single config, i.e. via `--config test/functional/config.base.js` or `--config test/api_integration/config`. Allows the user to start just the servers with this script, and keep them running while running tests against these servers. The idea is that the same config file configures both Elasticsearch and Kibana servers. Uses the [`startServers()`](../packages/kbn-test/src/functional_tests/start_servers/start_servers.ts#L27-L89) method from [@kbn/test](../packages/kbn-test) library.
Starts just the Elasticsearch and Kibana servers given a single config, i.e. via `--config test/functional/config.base.js` or `--config test/api_integration/config`. Allows the user to start just the servers with this script, and keep them running while running tests against these servers. The idea is that the same config file configures both Elasticsearch and Kibana servers. Uses the [`startServers()`](../src/platform/packages/shared/kbn-test/src/functional_tests/start_servers/start_servers.ts#L27-L89) method from [@kbn/test](../src/platform/packages/shared/kbn-test) library.
Example. Start servers _and_ run tests, separately, but using the same config:
@ -39,7 +39,7 @@ In another terminal:
node scripts/functional_test_runner --config path/to/config
```
For details on how the internal methods work, [read this readme](../packages/kbn-test/README.mdx).
For details on how the internal methods work, [read this readme](../src/platform/packages/shared/kbn-test/README.mdx).
### ES archiver

View file

@ -14,7 +14,7 @@ import { createFailError } from '@kbn/dev-cli-errors';
import { run } from '@kbn/dev-cli-runner';
import { REPO_ROOT } from '@kbn/repo-info';
const FLAGS_FILE = 'packages/kbn-test/src/jest/jest_flags.json';
const FLAGS_FILE = 'src/platform/packages/shared/kbn-test/src/jest/jest_flags.json';
function readStdin() {
return new Promise((resolve, reject) => {

View file

@ -41,8 +41,8 @@ export const IGNORE_FILE_GLOBS = [
'src/platform/packages/shared/kbn-utility-types/test-d/**/*',
'Dockerfile*',
'vars/*',
'packages/kbn-test/jest-preset.js',
'packages/kbn-test/*/jest-preset.js',
'src/platform/packages/shared/kbn-test/jest-preset.js',
'src/platform/packages/shared/kbn-test/*/jest-preset.js',
'test/package/Vagrantfile',
'x-pack/solutions/security/plugins/security_solution/scripts/endpoint/common/vagrant/Vagrantfile',
'**/test/**/fixtures/**/*',

View file

@ -0,0 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/packages/private/kbn-ambient-common-types'],
};

View file

@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [

View file

@ -0,0 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/packages/private/kbn-ambient-ftr-types'],
};

View file

@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [

View file

@ -0,0 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/packages/private/kbn-babel-transform'],
};

View file

@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"checkJs": true,

View file

@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [

Some files were not shown because too many files have changed in this diff Show more