-
Notifications
You must be signed in to change notification settings - Fork 286
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
Updates for build qualifiers #1742
Updates for build qualifiers #1742
Conversation
Signed-off-by: cliu123 <[email protected]>
Also extract only the number from the openearch version Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
Signed-off-by: cliu123 <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: cliu123 <[email protected]>
…ha1' into build-qualifier Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Working on a test failure in |
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
It'll be good to avoid hardcode versions. Please see the changes in this branch(WIP). I'm testing against OpenSearch 2.0.0 alpha1 on the branch. Once everything is ready, I can create a PR from the branch. |
How are these properties hardcoded? They can be altered by passing in command line parameters the test matrix is from the OpenSearch 2.0.0 build logs, e.g. for K-NN the command is executed as |
List<String> descriptorProperties = [ | ||
"description=Provide access control related features for OpenSearch", | ||
"version=${version}", | ||
"version=${version.tokenize('-')[0]}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what would this change achieve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously our version string would only be the numeric version 2.0.0
now it can include 2.0.0-alpha
and this is not accepted in the descriptor file. String.tokenize(delim)[0]
is a quick way in groovy to substring before the given token.
Codecov Report
@@ Coverage Diff @@
## main #1742 +/- ##
============================================
- Coverage 60.39% 60.32% -0.08%
+ Complexity 3197 3194 -3
============================================
Files 253 253
Lines 18095 18093 -2
Branches 3245 3245
============================================
- Hits 10929 10915 -14
- Misses 5585 5596 +11
- Partials 1581 1582 +1
Continue to review full report at Codecov.
|
I'm referring to versions being hardcoded in |
@cliu123 These can be substituted with command line overrides, and there needs to be defaults when the build occurs without any parameters. If this value is stored in a gradle.build file or gradle.properties or some other convention - this sounds like a preference, how can we move forward with this PR? |
@peternied Can we avoid mixing up changes? You don't have to merge the changes in the PR#1741 into this PR when PR#1741 is in WIP. |
@cliu123 I needed to pull in the test fixes otherwise the build with the qualifier wouldn't function. The integration tests of the distribution and the security plugin are blocked on these changes, so optimizing for speed is important. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Speed is not the first priority. This PR is for version qualifier. There's no need to include other changes, especially the changes from another open PR. BTW, there's opensearch-project/OpenSearch#2769 on OpenSearch 2.0.0-alpha1. Please hold off moving forward to alpha1 or alpha2 for now.
Description
Making sure to fully support build qualifiers as used in OpenSearch 2.0.0 builds
Issues Resolved
Check List
New functionality has been documentedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.