Skip to content
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

[Backport 2.x] Add support for dependencies in plugin descriptor properties with semver range #11441 #12271

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

abseth-amzn
Copy link
Contributor

@abseth-amzn abseth-amzn commented Feb 9, 2024

Description

Backport #11441 to 2.x.
Following are the additional changes:

  1. Updated PluginInfo version check for serialization of semver range list to use V_2_13_0.
  2. Updated PluginInfo version check of Version.V_1_1_0 for custom folder name and related test.
  3. Resolved minor conflicts in ListPluginsCommandTests.java

Related Issues

Resolves #1707

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

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.

Copy link
Contributor

github-actions bot commented Feb 9, 2024

Compatibility status:

Checks if related components are compatible with change c82c6e1

Incompatible components

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/sql.git]

Copy link
Contributor

github-actions bot commented Feb 9, 2024

❌ Gradle check result for c59fd0b: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

…ver range (opensearch-project#11441)

* Add support for dependencies in plugin descriptor properties with semver range (opensearch-project#1707)

Signed-off-by: Abhilasha Seth <[email protected]>

* Remove unused gson licenses

Signed-off-by: Abhilasha Seth <[email protected]>

* Maintain bwc in PluginInfo with addition of semver range

Signed-off-by: Abhilasha Seth <[email protected]>

* Added support for list of ranges

Signed-off-by: Abhilasha Seth <[email protected]>

* Add bwc tests and restrict range list size to 1

Signed-off-by: Abhilasha Seth <[email protected]>

* Update SemverRange javadoc

Signed-off-by: Abhilasha Seth <[email protected]>

* Minor change to trigger jenkins re-run

Signed-off-by: Abhilasha Seth <[email protected]>

* Use jackson instead of gson

* Remove jackson databind and annotations dependency from server

Signed-off-by: Abhilasha Seth <[email protected]>

* nit fixes

Signed-off-by: Abhilasha Seth <[email protected]>

* Minor change to re-run jenkins workflow

Signed-off-by: Abhilasha Seth <[email protected]>

---------

Signed-off-by: Abhilasha Seth <[email protected]>
@abseth-amzn abseth-amzn force-pushed the backport_11441_to_2.x branch from c59fd0b to c82c6e1 Compare February 9, 2024 11:06
Copy link
Contributor

github-actions bot commented Feb 9, 2024

❌ Gradle check result for c82c6e1: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

github-actions bot commented Feb 9, 2024

❕ Gradle check result for c82c6e1: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.remotestore.RemoteIndexPrimaryRelocationIT.testPrimaryRelocationWhileIndexing

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Feb 9, 2024

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (a98f719) 71.19% compared to head (c82c6e1) 71.17%.

Files Patch % Lines
...c/main/java/org/opensearch/semver/SemverRange.java 76.92% 9 Missing ⚠️
...c/main/java/org/opensearch/plugins/PluginInfo.java 78.57% 5 Missing and 4 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #12271      +/-   ##
============================================
- Coverage     71.19%   71.17%   -0.02%     
- Complexity    59951    59969      +18     
============================================
  Files          4940     4944       +4     
  Lines        282025   282117      +92     
  Branches      41306    41321      +15     
============================================
+ Hits         200790   200809      +19     
- Misses        64249    64374     +125     
+ Partials      16986    16934      -52     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Xtansia
Copy link
Contributor

Xtansia commented Mar 3, 2024

@abseth-amzn This is resulting in a breaking change within 2.x as GET /_cluster/stats and GET /_nodes both contain the PluginInfo object in their response bodies, and the opensearch_version field has changed from a string to an array.

@dblock
Copy link
Member

dblock commented Mar 4, 2024

I opened #12528, @abseth-amzn will you please take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants