-
Notifications
You must be signed in to change notification settings - Fork 190
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
Restore support for Java 8 #767
Conversation
YES! Let's add CI. |
Thanks @dblock ! Working on it :) |
75061d1
to
642afb6
Compare
Signed-off-by: Andriy Redko <[email protected]>
@dblock @VachaShah ended up with the following change:
|
I think this should be a blocker. Can we downgrade? We need at least some CI on JDK8, anything even a basic integration test would be enough. |
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.
I would be ok we merge it with an issue on re-adding JDK8 to CI, unless it's doable with the downgrade of the dependent library.
We could downgrade but to unsupported version (which is not good), alliteratively we could try to use other way to get the git details needed, I will look further |
@VachaShah or @Bukhtawar ? |
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.
I am fine with merging this, thank you @reta for adding this! A few TODOs:
- We can add the restored support details to the client documentation. For example, here https://github.com/opensearch-project/opensearch-java/blob/main/DEVELOPER_GUIDE.md.
- As @dblock mentioned, CI with JDK-8.
Was trying to pull it off, but there are 3 blockers (previously I thought there is only 1 but it turns out Gradle reports issues one at a time):
So I am not sure what could we do here besides enforcing the target / source level |
Signed-off-by: Andriy Redko <[email protected]>
Thanks @VachaShah, we have this documented in the COMPATIBILITY.md, so updated the versions there |
Open a GitHub issue? |
For |
The backport to
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-767-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 ff5e0a2d5f04acb4c11c3217b6e8fc71161a2a4b
# Push it to GitHub
git push --set-upstream origin backport/backport-767-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 |
Ok, I merged this, will need a manual backport - let's try to release a version that restored JDK8 support? |
* Restore support for Java 8 Signed-off-by: Andriy Redko <[email protected]> * Address code review comments (update compatibility) Signed-off-by: Andriy Redko <[email protected]> --------- Signed-off-by: Andriy Redko <[email protected]> (cherry picked from commit ff5e0a2)
* Restore support for Java 8 (#767) * Restore support for Java 8 Signed-off-by: Andriy Redko <[email protected]> * Address code review comments (update compatibility) Signed-off-by: Andriy Redko <[email protected]> --------- Signed-off-by: Andriy Redko <[email protected]> (cherry picked from commit ff5e0a2) * Update build.gradle.kts to use OpenSearch 2.12.0-SNAPSHOT Signed-off-by: Andriy Redko <[email protected]> --------- Signed-off-by: Andriy Redko <[email protected]>
…ct#767) (opensearch-project#777)" This reverts commit 081a17e. Signed-off-by: Andriy Redko <[email protected]>
…ct#767) (opensearch-project#777)" This reverts commit 081a17e. Signed-off-by: Andriy Redko <[email protected]>
) This reverts commit 081a17e. Signed-off-by: Andriy Redko <[email protected]>
…ct#767) (opensearch-project#777)" This reverts commit 081a17e. Signed-off-by: Andriy Redko <[email protected]>
Description
Restore support for Java 8
Issues Resolved
Closes #156
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.