-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scout] fix playwright configs discovery script and add
save
flag f…
…or CI (#213147) ## Summary This PR fixes the search logic to look for playwright configs in all possible & expected locations (`src/*` was not working), matching one of 3 regexp: ``` /(x-pack\/platform\/plugins\/(?:private|shared|[^\/]+)\/([^\/]+))\/ui_tests\//, /(x-pack\/solutions\/[^\/]+\/plugins\/([^\/]+))\/ui_tests\//, /(src\/platform\/plugins\/(?:private|shared)?\/?([^\/]+))\/ui_tests\//, ``` For each plugin we also have `usesParallelWorkers` prop (`true` if at least 1 config runs with concurrent workers) to decide later, if we need worker with 4 or 8 VCPUs. The idea is to run `node scripts/scout discover-playwright-configs --save` on CI and use generated json as source to build test run pipeline. Current output: ``` { "discover_enhanced": { "group": "platform", "pluginPath": "x-pack/platform/plugins/private/discover_enhanced", "configs": [ "x-pack/platform/plugins/private/discover_enhanced/ui_tests/parallel.playwright.config.ts", "x-pack/platform/plugins/private/discover_enhanced/ui_tests/playwright.config.ts" ], "usesParallelWorkers": true }, "maps": { "group": "platform", "pluginPath": "x-pack/platform/plugins/shared/maps", "configs": [ "x-pack/platform/plugins/shared/maps/ui_tests/playwright.config.ts" ], "usesParallelWorkers": false }, "observability_onboarding": { "group": "observability", "pluginPath": "x-pack/solutions/observability/plugins/observability_onboarding", "configs": [ "x-pack/solutions/observability/plugins/observability_onboarding/ui_tests/parallel.playwright.config.ts", "x-pack/solutions/observability/plugins/observability_onboarding/ui_tests/playwright.config.ts" ], "usesParallelWorkers": true } } ``` (cherry picked from commit 1e3bb05)
- Loading branch information
1 parent
4fbbea9
commit dc3ff03
Showing
3 changed files
with
107 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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