-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing test: X-Pack Security API Integration Tests (Session Idle Timeout).x-pack/test/security_api_integration/tests/session_idle/cleanup·ts - security APIs - Session Idle Session Idle cleanup should properly clean up session expired because of idle timeout #121482
Failing test: X-Pack Security API Integration Tests (Session Idle Timeout).x-pack/test/security_api_integration/tests/session_idle/cleanup·ts - security APIs - Session Idle Session Idle cleanup should properly clean up session expired because of idle timeout #121482
Comments
Pinging @elastic/kibana-security (Team:Security) |
I cannot think of any reason why we'd get error like that in this test. Here is the assertion that fails:
It's a simple basic login API request with the credentials of the pre-populated admin test user. I'll keep eye on this issue and either dig deeper if it happens again or close it as an intermittent if we don't see failures during next few weeks. |
New failure: CI Build - 8.0 |
Investigating the failure... |
In this test we take the following steps:
The test fails on the step 2 likely because sometimes Kibana is too slow on CI and it takes more than 5s between steps 1 and 2. I'm doubling timeouts in configuration for these tests and will see if it helps: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/37 |
New failure: CI Build - 8.0 |
New failure: CI Build - 8.0 |
Closing again since 8.0/7.x backports haven't been merged yet due to merge conflicts (CI run pending). |
New failure: CI Build - main |
Before the fix, the symptom in all failed builds was |
New failure: CI Build - main |
сс @thomheymann, just in case you can notice what can be the reason here. |
New failure: CI Build - 8.1 |
This is also the "new error":
The assertion that's failing is on line 111 below: kibana/x-pack/test/security_api_integration/tests/session_idle/cleanup.ts Lines 100 to 111 in 660023b
I think I know what's causing the test failure. We changed kibana/x-pack/plugins/security/server/session_management/session_index.ts Lines 460 to 467 in 6627bd8
However, we don't appear to be triggering an index refresh after the whole cleanup process is finished. I believe we intended to add that but it got lost in the mix. |
New failure: CI Build - main |
New failure: CI Build - main |
New failure: CI Build - main |
New failure: CI Build - main |
New failure: CI Build - main |
/skip |
Skipped main: 3dabc61 |
Closes #152260 Closes #121482 Closes #136688 ## Description - Adds security index refresh to `getSessionInfo` to ensure each query is running on updated data - Triggers the cleanup routine just before checking idle session timeouts to increase determinism (same methodology used in concurrent sessions tests) - Adds a short static delay when testing session extend to ensure the original session time has somewhat elapsed (when this was failing it was only by a few milliseconds) ### Tests x-pack/test/security_api_integration/session_idle.config.ts... - 'should properly clean up session expired because of idle timeout' - 'should properly clean up session expired because of idle timeout when providers override global session config' - 'should extend the session' ### Flaky Test Runner https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2031
Closes elastic#152260 Closes elastic#121482 Closes elastic#136688 ## Description - Adds security index refresh to `getSessionInfo` to ensure each query is running on updated data - Triggers the cleanup routine just before checking idle session timeouts to increase determinism (same methodology used in concurrent sessions tests) - Adds a short static delay when testing session extend to ensure the original session time has somewhat elapsed (when this was failing it was only by a few milliseconds) ### Tests x-pack/test/security_api_integration/session_idle.config.ts... - 'should properly clean up session expired because of idle timeout' - 'should properly clean up session expired because of idle timeout when providers override global session config' - 'should extend the session' ### Flaky Test Runner https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2031
New failure: CI Build - main |
New failure: CI Build - main |
New failure: CI Build - 8.8 |
New failure: CI Build - 8.8 |
Ran another flaky test runner just to be sure, but this looks tied to a series of CI failures on Friday. |
New failure: kibana-on-merge - 7.17 |
A test failed on a tracked branch
First failure: CI Build - main
The text was updated successfully, but these errors were encountered: