Skip to content

Upgrade expansion jar to java17#38931

Merged
derrickaw merged 6 commits into
masterfrom
20260611_upgradeExponsionJarToJava17
Jun 13, 2026
Merged

Upgrade expansion jar to java17#38931
derrickaw merged 6 commits into
masterfrom
20260611_upgradeExponsionJarToJava17

Conversation

@derrickaw

Copy link
Copy Markdown
Collaborator

Please add a meaningful description for your change here


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@derrickaw derrickaw changed the title 20260611 upgrade exponsion jar to java17 Upgrade expansion jar to java17 Jun 12, 2026
@derrickaw derrickaw force-pushed the 20260611_upgradeExponsionJarToJava17 branch from 19d21e0 to 6bcab53 Compare June 12, 2026 13:42
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

0 tests   - 178   0 ✅  - 107   0s ⏱️ - 1h 48m 40s
0 suites  -   1   0 💤  -  70 
0 files    -   1   0 ❌  -   1 

Results for commit 6bcab53. ± Comparison against base commit afbbc31.

@Abacn

Abacn commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

io-expansion-service container is still on Java 11 runtime:

We need to bump to Java17

And also all other gradle targets and its tests consumed io-expansion-service would need to bump Java version as well

@derrickaw derrickaw marked this pull request as ready for review June 13, 2026 12:49
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the Java version requirement for the expansion service and its associated build processes to Java 17. This change is necessary to accommodate dependencies that require a newer Java runtime, ensuring compatibility and stability for cross-language and Java-specific workflows.

Highlights

  • Java Version Upgrade: Upgraded the expansion service container and build requirements to Java 17 to support newer dependencies like Delta Lake.
  • CI/CD Pipeline Adjustment: Updated the GitHub Actions environment setup to default to Java 17 for specific jobs including Xlang, XVR, and PreCommit_Java.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/beam_PreCommit_Xlang_Generated_Transforms.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Java version from 11 to 17 for the expansion service container and build configuration (due to Delta Lake requirements), and conditionally sets the Java version to 17 in the GitHub setup-environment action for specific jobs. The review feedback suggests avoiding hardcoded job name patterns in the shared GitHub action and instead passing the Java version as an input parameter to improve modularity and maintainability.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

with:
distribution: 'temurin'
java-version: ${{ inputs.java-version == 'default' && '11' || inputs.java-version }}
java-version: ${{ inputs.java-version == 'default' && ((contains(github.job, 'Xlang') || contains(github.job, 'XVR') || contains(github.job, 'PreCommit_Java')) && '17' || '11') || inputs.java-version }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Hardcoding specific job name patterns (like 'Xlang', 'XVR', and 'PreCommit_Java') inside a shared action reduces its modularity and maintainability. If new jobs require Java 17 or existing jobs are renamed, this action will need to be constantly updated. Instead of inspecting github.job inside the action, consider passing the appropriate java-version (e.g., '17') as an input parameter directly from the calling workflow files.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a valid comment and it indeed caused a couple of tests now failing

We should keep Java artifacts compiled on Java11 by default as it matches release build

@github-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @chamikaramj for label java.
R: @Abacn for label build.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@derrickaw derrickaw merged commit b3a62ee into master Jun 13, 2026
34 of 39 checks passed
@derrickaw derrickaw deleted the 20260611_upgradeExponsionJarToJava17 branch June 13, 2026 19:42
derrickaw pushed a commit that referenced this pull request Jun 15, 2026
ash6898 pushed a commit to ash6898/beam that referenced this pull request Jun 28, 2026
* upgrade expansion sevice to Java 17

* update comment

* add container and workflow change

* try something

* Add PreCommit_Java to run on Java 17 in setup-environment-action

* add more coverage
ash6898 pushed a commit to ash6898/beam that referenced this pull request Jun 28, 2026
ash6898 pushed a commit to ash6898/beam that referenced this pull request Jun 29, 2026
* upgrade expansion sevice to Java 17

* update comment

* add container and workflow change

* try something

* Add PreCommit_Java to run on Java 17 in setup-environment-action

* add more coverage
ash6898 pushed a commit to ash6898/beam that referenced this pull request Jun 29, 2026
@Abacn Abacn mentioned this pull request Jul 2, 2026
3 tasks
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.

2 participants