-
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
Detect requiredBundles
circular references on Kibana startup
#124923
Comments
Pinging @elastic/kibana-operations (Team:Operations) |
Pinging @elastic/kibana-core (Team:Core) |
I believe it makes sense considering that Core already processes these data.
However, we need to improve the error message to show a cyclic graph, |
I agree! The graphs should look more like: #124860 IMO, we'll need to create a separate function for this validation because |
Ideally, we should implement this issue so Kibana refuses to start. However, we depend on #126578 to be able to do so. I'm speaking with the @elastic/fleet team to get it sorted. If they don't have the bandwidth, we may want to print a warning for now. |
We noticed that some plugins are getting around the current circular references runtime validation by using
requiredBundles
dependencies instead ofrequiredPlugins
/optionalPlugins
.Circular dependencies in
requiredBundles
can also lead to unexpected behaviours like #123720.We could add a new CI script that validates and warns about these circular dependencies #124860. However, we should discuss if it makes sense to add it to the existing runtime validation in Kibana:
kibana/src/core/server/plugins/plugins_system.ts
Lines 281 to 332 in 237256a
IMO, if we want to avoid them, the sooner we error in the dev process, the better.
What do you think?
The text was updated successfully, but these errors were encountered: