-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
data
dependent on security
breaks tests
#123720
Comments
security
as a dependency of data
breaks tests 🔴 security
as a dependency of data
breaks tests
security
as a dependency of data
breaks testsdata
dependent on security
breaks tests
Running my own tests in #124682. I noticed 2 potential issues here:
Installing artifacts on startupI have the suspicion that installing artifacts on startup is causing too much stress on ES/Kibana, and it makes them take longer to reply to the early authentication requests while the artifacts are still being installed. I validated it locally by:
IMO, it still makes sense to run them concurrently so the setup ends ASAP. So I went for the status API approach in #124682. It fixed the server-side FTRs, but the UI based tests still take longer than expected. And, worst of all, Jest Integration tests OOM when running Fleet's suites 😭 Circular dependency in the UILooking at the UI tests, I noticed that adding The reason Bearing in mind that the plugin I created #124796 to remove the circular dependency by copying the deprecated modal from
NB: I created |
Is this actively being worked on? @ppisljar - I think this is the issue to follow for unblocking removing of data_enhanced plugin. |
@stacey-gammon yes |
Pinging @elastic/kibana-core (Team:Core) |
In this commit, I've fixed the I've used @afharo's tool to check that there are no circular dependencies anymore. Unfortunately, this didn't help . Looks like our problem is unrelated to |
😢 ACK! Thanks for removing the dependency. I think I may be able to take another look next week |
Looks like the issue is resolved 🎉 @afharo suggests that #128324 that improved server event-loop delay and fixed memory leak helped #121955 (comment) It is still not exactly clear to me why before the fix main didn't have the same flakiness as the pr that reproduced the issue. But this is already good enough and unblocks us with I plan to close this issue with the pr adding data -> security dependency. |
TLDR
security
plugin as an optional dependency ofdata
breaks tests on CI 🔴data_enhanced
to simplify code [data.search] remove data_enhanced #119321.data/kibana.json
breaks CIBlocks #119321, #122075
@elastic/kibana-app-services wants to clean up their code by removing
*_enhanced
plugins. This work was unblocked sincesrc/
plugins can optionally depend onx-pack/
plugins.While working on removing
data_enhanced
in #122075 we discovered that adding thesecurity
plugin as an optional dependency ofdata
plugin fails CI causing numerous tests to become.You can find minimal reproduction in this pr: #121955
data
<->security
security
plugin as a dependency ofdata
plugin. Just changingkibana.json
and not even using thesecurity
's plugin contract insidedata
plugin. df7151aWhat is failing?:
There are a lot of tests that fail. Some pass during 2nd attempt, some not. More often than not it seems like tests are related to
security
, but this isn't necessary.status page should display the server status
. Kibana reportsYellow
status whenGreen
is expected. After adding more logging I saw thattaskManager
is causingYellow
status.logs
logs
Reporting Functional Tests with Security enabled Security with reporting_user built-in role Dashboard: Download CSV file does not allow user that does not have reporting privileges
. It fails on page load with timeout. logs. It is also often SAML / OIDC related tests that are likely to failerror: Setup lifecycle of "infra" plugin wasn't completed in 10sec. Consider disabling the plugin and re-start.
I guess this just highlights that a bundle wasn't loaded on timeWhat we've tried:
kibana.json
caused plugin dependency topology change which discovered some race conditions. This doesn't seem to be the case, because plugin topology didn't change. We can see that from a log message fromcore
:[plugins-system.standard] Setting up [113] plugins:...
that reports plugin in the identical order - before and after the change. internal thread with @lukeelmerssecurity
plugin a dependency of a different OSS plugin (discover) - didn't reproduce the issue. So we know the issue is reproduced ondata
but not ondiscover
I (as @elastic/kibana-app-services owner of this) run out of troubleshooting ideas. With help from @azasypkin, @afharo, @lukeelmers wasn't able to get to the root cause in a reasonable time. Looking for more attention or complete ownership takeover by another team (operations? qa? core?)
The text was updated successfully, but these errors were encountered: