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

migrate everything from java 17 to java 21 #35103

Merged
merged 17 commits into from
Feb 10, 2024
Merged

Conversation

postamar
Copy link
Contributor

@postamar postamar commented Feb 9, 2024

This was fairly straightforward to do once the CDK dependencies were cleaned up.

This PR is best reviewed commit-by-commit.

While this PR triggers the connectors' CI, it does not change the connector docker images in any meaningful way. I tested that airbyte-ci connectors --name=source-postgres build and test work properly.

Copy link

vercel bot commented Feb 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Feb 10, 2024 0:40am

@rodireich
Copy link
Contributor

What does this practically mean for devs?
Need to have openjdk 21 installed to compile?

@postamar
Copy link
Contributor Author

postamar commented Feb 9, 2024

What does this practically mean for devs?
Need to have openjdk 21 installed to compile?

Excellent question! The answer is yes, and:

  • you also want 21 to be the default jdk;
  • you might need to install a more recent intellij and tell it to use the 21 jdk.

But that should be it. FYI, in my shell config I have

export JDK_VERSION=21
export JAVA_HOME="$(/usr/libexec/java_home -v $JDK_VERSION)"

Note that airbyte-ci won't care about whether java 21 is installed or not, since it does everything in containers.

@postamar
Copy link
Contributor Author

postamar commented Feb 9, 2024

Thanks for the reviews! I'll merge this later this evening to minimize the disruption. It'll be a force-merge: there are no significant connector changes which warrant publication.

@stephane-airbyte
Copy link
Contributor

@postamar I think you should merge this in different PRs. The 1st PR should be for airbyte-ci. The 2nd should be the github actions. And once that's stable, we can change everything else, no?

@postamar
Copy link
Contributor Author

postamar commented Feb 9, 2024

I see your point, I'd considered it independently, but came to the opposite conclusion. If we apply the airbyte-ci changes, which change the java runtime of the connectors, and then apply the compilation target changes later on, and then have to worry about this interim period where connectors get published with 17 bytecode but packaged in images with 21 runtimes. We could mitigate this by disabling the publishing workflow, but this still creates some risk if we're to revert one of these PRs but not the other. Hence I believe that merging (and possibly reverting) these changes atomically is actually less risky because far easier to reason about.

Copy link
Contributor

@gisripa gisripa left a comment

Choose a reason for hiding this comment

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

looks good on destinations side. destination-iceberg is failing on master too https://connectors.airbyte.com/files/generated_reports/test_summary/destination-iceberg/index.html

@stephane-airbyte
Copy link
Contributor

stephane-airbyte commented Feb 9, 2024 via email

@postamar
Copy link
Contributor Author

/approve-and-merge reason="unrelated connector CI failures"

@octavia-approvington
Copy link
Contributor

What are we doing again?
merge and squash

@octavia-approvington octavia-approvington merged commit b9ab3d1 into master Feb 10, 2024
26 of 32 checks passed
@octavia-approvington octavia-approvington deleted the postamar/java-21 branch February 10, 2024 01:26
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 21, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants