-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fixing plugin installation URL to consume build qualifier #3193
Fixing plugin installation URL to consume build qualifier #3193
Conversation
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
cc: @peterzhuamazon |
@@ -1049,7 +1049,7 @@ public void assertInstallPluginFromUrl( | |||
|
|||
public void testOfficialPlugin() throws Exception { | |||
String url = "https://artifacts.opensearch.org/releases/plugins/analysis-icu/" | |||
+ Version.CURRENT | |||
+ Build.CURRENT.getQualifiedVersion() |
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.
@saratvemulapalli sorry, as far as I can tell, Version.CURRENT == Build.CURRENT.getQualifiedVersion()
(at least, should be), why we are changing that?
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.
Answering my own question: Version.CURRENT == Build.CURRENT.getQualifiedVersion()
only in tests, otherwise taken from the JAR artifact ...
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.
Thank you @reta for the review.
Version.CURRENT
doesnt include the qualifier where as Build.CURRENT.getQualifiedVersion()
does.
This helps us structuring artifacts in dedicated folders for releases like alpha1
, beta1
, rc1
…nSearch#3193 Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Add |
* Fixing the installation URL to consume build qualifier Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> * Fixing spotless Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> (cherry picked from commit ba6dc5d)
* Fixing the installation URL to consume build qualifier Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> * Fixing spotless Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> (cherry picked from commit ba6dc5d)
@peterzhuamazon do we plan to release 2.0.1? |
) * Fixing the installation URL to consume build qualifier Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> * Fixing spotless Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com> (cherry picked from commit ba6dc5d) Co-authored-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
2.0 branch is 2.0 GA that hasn't shipped yet |
* Tweak promotion pipeline to support rpm and qualifier Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * Add qualifier tests Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * Add signer tests Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * Update core plugins path after Sarat PR merged opensearch-project/OpenSearch#3193 Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * Remove extra comments Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * Rename promoteTarArtifacts promoteArtifacts Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Signed-off-by: Sarat Vemulapalli vemulapallisarat@gmail.com
Description
Plugin installation URL for official plugins do not consume build qualifier, causing problems with the folder structure we expose for
artifacts.opensearch.org
.This PR fixes it and consumes the build qualifier while populating the URL for native plugins.
Unit tests already cover this, but added manual testing into PR for readability.
Before the fix:
After the fix:
Issues Resolved
Closes #3168
Check List
By 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.