-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Security plugin build fails on 1.x
branch
#762
Comments
Adding my observation: SQL/PPL build can pass using rc1 tag and rc1 qualifier: opensearch-project/sql#83. But 1.x branch + rc1 qualifier didn't work (1.x qualifier is invalid). Please advise what's the right combination. |
@dblock mentioned that plugins should build on top of |
Yes, just added my data point. I haven't figured out how to build against 1.x either. |
I presume you're coming from opensearch-project/security#1176. Here's what I tried:
Since this error says that a constructor added in 1.x is missing, this couldn't be right. The constructor was clearly added in 1.x. I double checked that the missing constructor was in code, then started clean, locally, without anything in my local maven repo to avoid picking up something from beta1.
Then:
This built successfully. Make the above changes in your PR, make sure to change your dependency from opensearch beta1 to rc1, and you should be good to go! |
Closing since this is entirely fixable in plugins, and fixed here in security plugin. |
@dblock @nknize @CEHENKLE @camerski While the issue was caused by incomplete changes in opensearch-project/security#1174, it highlights that the current approach of building Opensearch artifacts in plugins CI is error prone and does not follow open source best practices. What is the plan to remove CI hack and publish Opensearch artifacts to maven repo? |
|
…rch-project#762) * Bump io.github.classgraph:classgraph from 4.8.164 to 4.8.165 Bumps [io.github.classgraph:classgraph](https://github.com/classgraph/classgraph) from 4.8.164 to 4.8.165. - [Release notes](https://github.com/classgraph/classgraph/releases) - [Commits](classgraph/classgraph@classgraph-4.8.164...classgraph-4.8.165) --- updated-dependencies: - dependency-name: io.github.classgraph:classgraph dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Update changelog Signed-off-by: dependabot[bot] <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
The CI on security repo
main
branch checkes out OpenSearch branch1.x
and build OpenSearch withoutbuild.version_qualifier
as you can see here. But building security plugin fails because of the following error:In order to building security plugin successfully,
build.version_qualifier
has to be set tobeta1
as you can see at here. Settingbuild.version_qualifier
torc1
fails the CI too.The text was updated successfully, but these errors were encountered: