elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.73k stars 8.14k forks source link

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 when providers override global session config #152260

Open kibanamachine opened 1 year ago

kibanamachine commented 1 year ago

A test failed on a tracked branch

Error: expected 3 to equal 2
    at Assertion.assert (expect.js:100:11)
    at Assertion.apply (expect.js:227:8)
    at Assertion.be (expect.js:69:22)
    at Context.<anonymous> (cleanup.ts:156:54)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Object.apply (wrap_function.js:73:16)

First failure: CI Build - 8.7

elasticmachine commented 1 year ago

Pinging @elastic/kibana-security (Team:Security)

azasypkin commented 1 year ago

I'll wait a bit more to see how frequent this failure is. If it fails again, we might use the same approach we use in the concurrent sessions tests instead.

kibanamachine commented 1 year ago

New failure: CI Build - main

kibanamachine commented 1 year ago

New failure: CI Build - main

kibanamachine commented 1 year ago

New failure: CI Build - main

jbudz commented 1 year ago

/skip

kibanamachine commented 1 year ago

Skipped

main: fc9a63118c86657a9eab1c7a1f81f5e794498522

kibanamachine commented 1 year ago

New failure: CI Build - 8.8

kibanamachine commented 1 year ago

New failure: CI Build - 8.8

jeramysoucy commented 1 year ago

Ran another flaky test runner just to be sure, but this looks tied to a series of CI failures on Friday.

kibanamachine commented 3 months ago

New failure: kibana-elasticsearch-snapshot-verify - 8.14

azasypkin commented 2 months ago

proc [kibana] [2024-06-18T14:18:23.761+00:00][ERROR][plugins.security.saml.saml_override] Failed to log in with SAML response: {"error":{"root_cause":[{"type":"security_exception","reason":"error attempting to authenticate request","header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}}],"type":"security_exception","reason":"error attempting to authenticate request","caused_by":{"type":"array_index_out_of_bounds_exception","reason":"Index 1 out of bounds for length 0"},"header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}},"status":401} {"service":{"node":{"roles":["background_tasks","ui"]}}} [00:00:47] │

This one caused by some mysterious error in ES that should not happen in theory and we couldn't reproduce it either. Closing for now.

kibanamachine commented 1 month ago

New failure: kibana-on-merge - main

kibanamachine commented 1 week ago

New failure: kibana-on-merge - main

azasypkin commented 1 week ago

@SiddharthMantri do you think we can turn on the ES trace logs for the session_idle, session_invalidate, and session_concurrent_limit test suites as well, like you did for session_lifespan? The underlying issue (a bug in ES) seems to be what's causing these tests to fail as well.

SiddharthMantri commented 4 days ago

@azasypkin Missed the ping last week. Just opened a PR here: https://github.com/elastic/kibana/pull/193259