-
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
fleet
<-> infra
circular dependencies
#126578
Comments
Pinging @elastic/fleet (Team:Fleet) |
@afharo is there a transient dependency between infra -> fleet in kibana/x-pack/plugins/infra/kibana.json Lines 5 to 17 in 25b97bb
|
Oh! Sorry! Forgot to mention |
Thanks for clarifying.
|
We've looked at doing this before but never got to it: |
Ah that's right. Looking at this again, I do think it would make more sense to pursue inverting the dependency between Fleet and Infra or try to hoist the It could be more changes but it feels like the better long-term option to me. @jasonrhodes any idea how feasible it would be to extract the Logs UI bits out into it's own plugin or package? |
@afharo Could you give us feedback on what this is blocking so we can prioritize it appropriately? |
@elastic/infra-monitoring-ui |
We'd like to implement #124923. It's a check to let developers know when circular dependencies are introduced. If we enable the check, we'll break CI. The reason we decided to implement it is that we noticed other teams started off trying that approach (#123720). Thankfully, it already caused some unexpected issues on CI that didn't allow them to merge their PR 😇 |
Sorry for the response delay here. We've tried to figure something like this out for quite a long time, the conversation which can be tracked here #97108 @afgomez and I have been working on it the most, and have decided to wait until core dependencies move into packages so that we can move things like the Log Stream component into a package itself. That said, if it's truly blocking things in Kibana, we can try to think through new ways to fix this once again. @afharo I assume this is still a problem you'd like to see solved ASAP? |
@jasonrhodes we lowered the priority of our issue during our last grooming. However, it may be a potential issue with @elastic/kibana-operations' attempt to make every plugin a package. I'll let them fill in re prioritization. |
Well, our situation is blocked on the ability to make every plugin a package, so you might say we have a ... circular dependency here. We'd gladly work with operations on getting around that hurdle so that we can package-ify most of our code, which I think seems to be the only way around a lot of this problem. |
We recently identified that circular dependencies in
requiredBundles
might affect Kibana's UI performance. Looking for any existing circular dependencies in Kibana #124860, we noticed thatfleet
requires oninfra
via therequiredBundles
, whileinfra
optionally dependsosquery
, which depends onfleet
. Both via theoptionalPlugins
.In the Core team we created #124923 to identify these use cases early in the development phase, so this doesn't occur again. However, in order to fail Kibana, we depend on this circular dependency to be fixed.
The text was updated successfully, but these errors were encountered: