[8.19] [scout] support custom servers configuration (#244306)#246131
Merged
dmlemeshko merged 3 commits intoelastic:8.19from Dec 12, 2025
Merged
[8.19] [scout] support custom servers configuration (#244306)#246131dmlemeshko merged 3 commits intoelastic:8.19from
dmlemeshko merged 3 commits intoelastic:8.19from
Conversation
## Summary part of elastic/appex-qa-team#562 This PR adds support for custom server configurations by creating a scout directory with the name matching the directory with configuration files under `kbn-scout/src/servers/configs/custom`. ### Usage 1. Define custom configurations under `kbn-scout/src/servers/configs/custom` by creating a new directory e.g. `uiam_local` and adding configs for modes it should support (e.g. `es.serverless.config`, **check kbn-scout/src/servers/configs/default for naming** ): ```ts // custom/uiam_local/serverless/es.serverless.config.ts import type { ScoutServerConfig } from '../../../types'; import { defaultConfig } from '../../default/serverless/serverless.base.config'; export const servers: ScoutServerConfig = { ...defaultConfig, // Your custom configuration }; ``` 2. Create a new test directory under <plugin|package>/test/scout_`<dir_name_with_custom_configs>`: `x-pack/platform/plugins/shared/security/test/scout_uiam_local` 3. Keep the `<ui|api>tests` & `playwright.config.ts` design as in the regular `scout` dir, use the same tags in spec files. 4. Run your tests as usual: ```bash node scripts/scout run-tests --serverless=es --config x-pack/platform/plugins/shared/security/test/scout_uiam_local/ui/playwright.config.ts // to only start the server using configs from custom directory node scripts/scout start-server --serverless=es --config-dir uiam_local ``` ### Important - Tests defined in `scout_<config_dir_name>` directory are not included in the main scout builder CI step, but rather in its own for custom configs (to be added as a follow-up) - They do not benefit from smart test balancing due to custom server setup. - **The tests won't be run in Cloud** due to custom servers setup requirement, keep it in mind and mitigate the risks (cherry picked from commit 0b42c31) # Conflicts: # src/platform/packages/shared/kbn-scout/src/cli/config_discovery.test.ts # src/platform/packages/shared/kbn-scout/src/cli/config_discovery.ts # src/platform/packages/shared/kbn-scout/src/config/utils/get_config_file.ts # src/platform/packages/shared/kbn-scout/src/playwright/runner/flags.ts # src/platform/packages/shared/kbn-scout/src/playwright/runner/run_tests.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/config.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/default/serverless/es.serverless.config.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/default/serverless/oblt.serverless.config.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/default/serverless/oblt_logs_essentials.serverless.config.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/default/serverless/security.serverless.config.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/default/serverless/security_ease.serverless.config.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/default/serverless/security_essentials.serverless.config.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/default/serverless/serverless.base.config.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/default/stateful/base.config.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/default/stateful/stateful.config.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/loader/read_config_file.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/utils/load_servers_config.test.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/utils/load_servers_config.ts # src/platform/packages/shared/kbn-scout/src/servers/configs/utils/save_scout_test_config.ts # src/platform/packages/shared/kbn-scout/src/servers/flags.ts # src/platform/packages/shared/kbn-scout/src/servers/run_kibana_server.ts # src/platform/packages/shared/kbn-scout/src/servers/start_servers.ts # x-pack/solutions/observability/plugins/slo/test/scout/ui/tests/slos_overview.spec.ts
Contributor
|
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
…/slos_overview.spec.ts
csr
approved these changes
Dec 12, 2025
Contributor
💚 Build Succeeded
Metrics [docs]Page load bundle
History
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto8.19:Questions ?
Please refer to the Backport tool documentation