kibana/test/common
Robert Oskamp 7a381afb17
FTR - optimize service initialization (#212421)
## Summary

This PR optimizes the FTR service initialization by not loading UI
service for API tests and by removing retries during test user setup

## Changes

- Remove loading of common UI services from common services (UI services
should not be loaded for API tests)
- Move `security` service from `@kbn/ftr-common-functional-ui-services`
to `@kbn/ftr-common-functional-services` as it should be available to
API tests as well
- Only try once to delete `testUser` during init (this user usually does
not exist on a fresh deployment - and if it does, a single delete
request is enough to get rid of it)

## Benchmark results

**These changes will reduce FTR CI runtime overall by ~100 minutes**
🚀
Due to parallel workers in CI, the effective runtime of the whole CI job
will be less than that.

- The removal of UI service loading (which includes starting a browser
instance) for API tests reduces init time by ~0.5 seconds. With 313 API
configs that are started on CI, this reduces the runtime overall by ~156
seconds / ~2.6 minutes.
- The removal of test user delete retries reduces init time by ~10
seconds. With 589 FTR configs that are started on CI, this reduces the
runtime overall by ~5890 seconds / ~98 minutes.
- These numbers have been taken on a local machine and since CI workers
are usually slower, we should see at least this amount of improvement if
not more in CI.
2025-02-27 11:35:47 +01:00
..
fixtures/plugins/coverage Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
plugins Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-core (#201653) 2025-01-04 11:47:24 -07:00
services FTR - optimize service initialization (#212421) 2025-02-27 11:35:47 +01:00
config.js Additional prototype pollution protections (#206073) 2025-01-28 23:00:43 +01:00
configure_http2.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00