Skip to content

Roll forward io expansion service to Java17#38974

Open
derrickaw wants to merge 6 commits into
masterfrom
20260615_rollForwardIOExpansionJava17
Open

Roll forward io expansion service to Java17#38974
derrickaw wants to merge 6 commits into
masterfrom
20260615_rollForwardIOExpansionJava17

Conversation

@derrickaw

Copy link
Copy Markdown
Collaborator

First iteration that was reverted - #38931


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.

@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.72%. Comparing base (6ed0635) to head (88ac876).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #38974      +/-   ##
============================================
- Coverage     60.25%   57.72%   -2.54%     
+ Complexity    20572    13032    -7540     
============================================
  Files          3318     2513     -805     
  Lines        315452   261376   -54076     
  Branches      17142    10722    -6420     
============================================
- Hits         190073   150868   -39205     
+ Misses       116830   104796   -12034     
+ Partials       8549     5712    -2837     
Flag Coverage Δ
java 64.22% <ø> (-2.84%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@derrickaw

Copy link
Copy Markdown
Collaborator Author

/gemini review

@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 requirement for the expansion service from Java 11 to Java 17. Specifically, it updates the base Docker image to eclipse-temurin:17 and modifies the Gradle build configuration to require JavaVersion.VERSION_17, noting that Delta Lake requires Java 17+. There are no review comments, and I have no additional feedback to provide.

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.

@derrickaw derrickaw force-pushed the 20260615_rollForwardIOExpansionJava17 branch 2 times, most recently from 898e6d6 to 5ea0a53 Compare June 16, 2026 16:42
@derrickaw derrickaw force-pushed the 20260615_rollForwardIOExpansionJava17 branch from 5ea0a53 to d8735a1 Compare June 16, 2026 16:44
@derrickaw

Copy link
Copy Markdown
Collaborator Author

/gemini review

@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 upgrades the Java environment requirements to Java 17 for the expansion service, updates the setup-java action to v4, and automatically configures Java home properties in the Gradle build configuration using environment variables. Feedback suggests refactoring the Gradle plugin logic to support ARM64 runners by checking both _X64 and _ARM64 environment variables, which can be simplified using a Groovy loop.

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.

Comment thread buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy Outdated
@derrickaw derrickaw marked this pull request as ready for review June 17, 2026 19:11
@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 facilitates the migration of the IO expansion service to Java 17. It includes necessary updates to build configurations, CI/CD environment setups, and container definitions to ensure compatibility with modern Java requirements and dependencies.

Highlights

  • Java 17 Migration: Updated the IO expansion service to require Java 17, aligning with dependencies like Delta Lake.
  • Infrastructure Updates: Modified GitHub Actions and Dockerfiles to support Java 17 as the default runtime environment.
  • Gradle Configuration: Enhanced BeamModulePlugin to automatically detect local Java 17+ home paths and redirect JavaExec tasks to the configured JDK.
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/** (13)
    • .github/workflows/beam_PerformanceTests_xlang_KafkaIO_Python.yml
    • .github/workflows/beam_PostCommit_Python_Xlang_Gcp_Dataflow.yml
    • .github/workflows/beam_PostCommit_Python_Xlang_Gcp_Direct.yml
    • .github/workflows/beam_PostCommit_Python_Xlang_IO_Dataflow.yml
    • .github/workflows/beam_PostCommit_Python_Xlang_IO_Direct.yml
    • .github/workflows/beam_PostCommit_TransformService_Direct.yml
    • .github/workflows/beam_PostCommit_XVR_Direct.yml
    • .github/workflows/beam_PostCommit_Yaml_Xlang_Direct.yml
    • .github/workflows/beam_PreCommit_Xlang_Generated_Transforms.yml
    • .github/workflows/beam_PreCommit_Yaml_Xlang_Direct.yml
    • .github/workflows/beam_Publish_Beam_SDK_Snapshots.yml
    • .github/workflows/build_release_candidate.yml
    • .github/workflows/typescript_tests.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 environment configuration to support Java 17, including adding a Java 17 fallback installation in GitHub Actions, updating the expansion service Dockerfile base image to Java 17, and requiring Java 17 for the IO expansion service. Additionally, it configures Gradle to dynamically set JDK home properties and redirect JavaExec tasks to the specified JDK. Feedback points out that the Java 17 fallback installation path is overwritten and lost by the subsequent Java installation step, and suggests explicitly exporting the path. Another comment recommends adding a null check for testJavaHome before configuring JavaExec tasks to prevent build failures when the JDK path is unresolved.

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.

Comment thread .github/actions/setup-environment-action/action.yml
@github-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @ahmedabu98 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).

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.

1 participant