Repository navigation
fix(setup): warn in "check" about an engine the bundled plugins do not fit - #4039
Merged
Merged
Conversation
…t fit "fess-setup check" said that everything checks out against an OpenSearch version on which "fess-setup install opensearch-plugins" fails without --version. Compare the engine version with the plugin version that command installs, and report a difference as a warning.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
fess-setup checkreportedOK engine version 3.10.0andEverything checks out.against an OpenSearch 3.10.0engine, while
fess-setup install opensearch-pluginswithout--versionfails on that engine: it installs the3.10.1 plugins, and OpenSearch refuses a plugin built for another version.
Change
checkcompares the version the nodes report with the plugin version thatinstall opensearch-pluginsinstalls whenno
--versionis given (component.opensearch.plugin.version; both commands read it through the same method). Adifferent version is reported as a warning:
It is a warning, not a failure, and the exit status stays 0: an engine of another version with the plugins of its own
version can run Fess. The existing reports for a cluster whose nodes disagree and for an engine that reports no
version are unchanged.
Tests
FessSetupTest:checkagainst a stub engine of another version warns and does not printEverything checks out.(fails without the change); against the bundled version it still does.
DiagnosticsTest: the new comparison, including a later patch release.org.codelibs.fess.setup: 294 run, 0 failures.classes: before the change
checkprintedEverything checks out., after it the warning above (exit status 0 inboth).
install opensearch-pluginsinto a 3.10.0 home without--versionfailed and installed nothing; with--version 3.10.0it installed the four plugins. Against OpenSearch 3.10.1 the changedcheckprintedEverything checks out.