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

[Extensions] Moving ExtensionsRequest to use Protobuf #6960

Merged

Conversation

saratvemulapalli
Copy link
Member

@saratvemulapalli saratvemulapalli commented Apr 4, 2023

Description

As part of opensearch-project/opensearch-sdk-java#337. Moving the first API to protobuf to have seamless version support.

Issues Resolved

Part of #opensearch-project/opensearch-sdk-java#642
Also first introduction of protobuf #6844

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2023

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2023

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2023

Gradle Check (Jenkins) Run Completed with:

@saratvemulapalli
Copy link
Member Author

saratvemulapalli commented Apr 20, 2023

@reta @owaiskazi19 @peternied @VachaShah sorry couldn't get back to this since a week. The change is now ready for review. Everything works :)

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
@@ -45,6 +48,13 @@ publishing {

archivesBaseName = 'opensearch'

sourceSets {
main {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -315,13 +344,34 @@ tasks.named("dependencyLicenses").configure {
}
}

tasks.named("missingJavadoc").configure {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@reta
Copy link
Collaborator

reta commented Apr 20, 2023

Nice one @saratvemulapalli , pretty clean and simple

Copy link
Member

@owaiskazi19 owaiskazi19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM! Thanks for addressing the feedback @saratvemulapalli! Do you think we should add tests for the generated Protobuf classes?

server/build.gradle Outdated Show resolved Hide resolved
server/build.gradle Show resolved Hide resolved
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.indices.replication.SegmentReplicationIT.testScrollWithOngoingSegmentReplication

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.indices.replication.SegmentReplicationIT.testScrollCreatedOnReplica
      1 org.opensearch.cluster.allocation.AwarenessAllocationIT.testThreeZoneOneReplicaWithForceZoneValueAndLoadAwareness

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@saratvemulapalli
Copy link
Member Author

Overall LGTM! Thanks for addressing the feedback @saratvemulapalli! Do you think we should add tests for the generated Protobuf classes?

Tests for generated classes, I am like "protoc" can you generate unit tests too :D.
Anyway for generated code its already concise and optimized, no point writing tests for message data types/for internal protobuf business logic.
@reta WDYT ?

@saratvemulapalli
Copy link
Member Author

Gradle Check (Jenkins) Run Completed with:

Looks like 2.7 is on its way, i'll rebase my PR.

 [2.6.1] build complete, generating: /var/jenkins/workspace/gradle-check/search/distribution/bwc/bugfix/build/bwc/checkout-2.6/build/14394.tar.bz2
 [2.6.1] 
 [2.6.1] BUILD SUCCESSFUL in 5m 9s
 [2.6.1] 165 actionable tasks: 165 executed

> Task :distribution:bwc:minor:buildBwcLinuxTar
 [2.8.0] > Task :distribution:archives:buildLinuxTar
 [2.8.0] > Task :distribution:archives:linux-tar:assemble
 [2.8.0] build complete, generating: /var/jenkins/workspace/gradle-check/search/distribution/bwc/minor/build/bwc/checkout-2.x/build/14394.tar.bz2

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Copy link
Collaborator

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

@saratvemulapalli saratvemulapalli merged commit c0f7c19 into opensearch-project:main Apr 21, 2023
@saratvemulapalli saratvemulapalli added backport 2.x Backport to 2.x branch extensions labels Apr 21, 2023
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-6960-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 c0f7c192baa574407d9d081343fd6318c092cbc5
# Push it to GitHub
git push --set-upstream origin backport/backport-6960-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-6960-to-2.x.

@saratvemulapalli saratvemulapalli deleted the extensionRequestv1 branch April 21, 2023 01:26
saratvemulapalli added a commit to saratvemulapalli/OpenSearch that referenced this pull request Apr 21, 2023
…ject#6960)

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Apr 28, 2023
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch extensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants