Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FTR] Session Concurrency Test (elastic#183409)
## Summary Set `security.session.cleanupInterval` to 5h for session concurrency test. ### **Prerequisites** - Task for session cleanup with [default schedule set to 1h](https://github.com/elastic/kibana/blob/main/x-pack/plugins/security/server/config.ts#L222). - Task polling interval is set to [3000ms](https://github.com/elastic/kibana/blob/main/x-pack/plugins/task_manager/server/config.ts#L13). - We override `scheduledAt` once we make a request in [runCleanupTaskSoon](https://github.com/elastic/kibana/blob/main/x-pack/test/security_api_integration/tests/session_concurrent_limit/cleanup.ts#L145). ### **Hypothesis** Taking into consideration that: - `session_cleanup` task is not the only one scheduled during test run. - There is sort of an exponential backoff implemented for task polling if there are too many retries. - Clock jitter. I had a hypothesis that if our whole test run exceeds 1h or polling interval gets adjusted because of retries we might end up executing the scheduled cleanup before we trigger `runCleanupTaskSoon` (this is there we drop 1 session already). ### **FTR runs (x55 each)** - `cleanupInterval` set to 5h: [#1](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5986) :green_circle:, [#2](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5987) :green_circle: - `cleanupInterval` set to default 1h: [#1](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5983) :green_circle:, [#2](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5982) :red_circle: (has 2 failures out of 55) ### Checklist - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) __Fixes: https://github.com/elastic/kibana/issues/149091__
- add-json-safe-parse
- (elastic/kibana#183409)
- arturo-changes-on-week
- (elastic/kibana#183409)
- backport/8.15/pr-187465
- (elastic/kibana#183409)
- backport/8.16/pr-203344
- (elastic/kibana#183409)
- backport/9.0/pr-206340
- (elastic/kibana#183409)
- backport/9.0/pr-210386
- (elastic/kibana#183409)
- enable-summarisation-api-test
- (elastic/kibana#183409)
- fix-flaky-functional-test
- (elastic/kibana#183409)
- fix-user-instructions-access-bug
- (elastic/kibana#183409)
- make-mki-great-again
- (elastic/kibana#183409)
- prefix-obs-ai-assistant-inf-endpoint
- (elastic/kibana#183409)
- remove-language-setting
- (elastic/kibana#183409)
- remove-llm-proxy-simulators
- (elastic/kibana#211855, elastic/kibana#183409)
- remove-token-count-event
- (elastic/kibana#183409)
- rename-chat-complete-endpoints
- (elastic/kibana#183409)
- rewrite-user-prompt
- (elastic/kibana#204532, elastic/kibana#183409)
- unskip-kb-migration-test
- (elastic/kibana#207595, elastic/kibana#183409)
- use-preconfigured-endpoint
- (elastic/kibana#183409)
- wip-support-semantic-text-search-connectors
- (elastic/kibana#183409)