Skip to content
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

[Feature Request] Plugin version compatibility across minor versions #14560

Open
saratvemulapalli opened this issue Jun 26, 2024 · 3 comments
Open
Labels
enhancement Enhancement or improvement to existing feature or request Plugins

Comments

@saratvemulapalli
Copy link
Member

saratvemulapalli commented Jun 26, 2024

Is your feature request related to a problem? Please describe

As a plugin developer, I am forced to bump up when opensearch core has bumped a minor version.
I would like my plugin to work across multiple minor versions of OpenSearch.
We have relaxed the patch versions with #1707 but I see value for few plugins where the interface has not changed and they continue to work with new/older minor version of OpenSearch.

Describe the solution you'd like

I would like a plugin to define its compatibility with OpenSearch as a semver range.
Eg:In plugin-descriptor.properties we define dependencies={ opensearch: "~2.3.0" } which says the plugin is compatible with all versions >= 2.3.0 up to 3.0.0.
There was an attempt to make it possible in OpenSearch via extensions but I've learnt moving from plugins to extensions is hard and takes a while.
Would love some feedback from the community to see if this is valuable for plugin developers and operators.

Related component

Plugins

Describe alternatives you've considered

No response

Additional context

No response

@saratvemulapalli saratvemulapalli added enhancement Enhancement or improvement to existing feature or request untriaged Plugins labels Jun 26, 2024
@andrross
Copy link
Member

@saratvemulapalli What all is missing to implement this after #11441?

I believe there is interest in this feature:

@saratvemulapalli
Copy link
Member Author

saratvemulapalli commented Jun 27, 2024

Thanks @andrross. I believe we need:

  1. an ability to test a plugin compatibility across minor versions.
    Though we have added support for cross-patch versions in Add support for dependencies in plugin descriptor properties with semver range  #11441, the test framework has not changed.
  2. The plugin validation checks in opensearch-plugins cli and OpenSearch plugins service should relax the minor version compatibility check

Also we do not have a plugin in the opensearch-project org using this feature even for patch versions. I know this is hard for few plugins but I would like to start with an application class plugin like ML-Commons.

@peternied
Copy link
Member

[Triage - attendees 1 2 3]
@saratvemulapalli Thanks for creating this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Plugins
Projects
None yet
Development

No branches or pull requests

3 participants