How to test latest plugin changes?

Hello,
Recent changes to a plugin were merged, that we would like to test before the next release. If I just try to test the recent changes with the latest version I get the following
Exception in thread "main" java.lang.IllegalArgumentException: Plugin [ingestion-kafka] was built for OpenSearch version 3.4.0 but version 3.3.2 is running. Which makes sense I would say. Following question arise:

  • What is the best way to test a plugin before a release? Do I have to build the OpenSearch and OpenSearch Dashboard image on my own to test it properly?

  • How can I make sure the changes to the plugin will be part of the new release? Should they appear here?

Thank you for your help!

@timojohlo You can build the core OpenSearch directly from main using the below commands:

git checkout main
./gradlew assemble

This will create a opensearch-3.4.0-SNAPSHOT, you can then install the plugin using /bin/opensearch-plugin install file:///... command.

Hope this helps

Hi @Anthony ,
I tried that and was looking for a more convenient way, but I guess there is no other?
Any idea about the second question:

How can I make sure the changes to the plugin will be part of the new release? Should they appear here?

@timojohlo If the changes are merged they will be included in the next release. They should also be included in the release notes you linked

1 Like