-
Notifications
You must be signed in to change notification settings - Fork 1.3k
rework java build #1902
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
rework java build #1902
Conversation
Summary of ChangesHello @loosebazooka, 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 undertakes a significant rework of the Java build system, primarily focusing on modularity and updating dependency sourcing. The changes aim to simplify the build process by centralizing logic in a new Bazel file, transitioning Java 25 Temurin images to more reliable official Debian sources, and ensuring compatibility with Debian 13's updated package naming conventions. These improvements contribute to a more maintainable and robust Java image generation pipeline. Highlights
Using Gemini Code AssistThe 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
Customization To customize 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 Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. 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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request is a great refactoring of the Java build definitions. Moving the logic from the BUILD file into a dedicated .bzl file with reusable functions significantly improves maintainability and readability. The switch to using Temurin from Adoptium's deb sources for Debian 13 is a good move towards more standard package management. The changes are well-structured and the PR description is clear. I've found a few minor issues, mostly related to code cleanup and documentation clarity in the new java.bzl file.
| tars = [ | ||
| deb.package(arch, distro, "libharfbuzz0b"), | ||
| deb.package(arch, distro, "libgraphite2-3"), | ||
| deb.package(arch, distro, "libpcre2-8-0"), # required for libharfbuzz0b but remove for temurin installs |
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.
The comment for libpcre2-8-0 states it should be removed for temurin installs. However, java_temurin_image_from_adoptium_debs (which is a temurin install) uses java_base which includes this package. This seems contradictory. Could you please clarify if this package is needed for temurin images from adoptium debs? If it's not needed, perhaps java_temurin_image_from_adoptium_debs should use java_build_base as its base image to avoid including unnecessary dependencies.
|
🌳 🔄 Image Check This pull request has modified the following images: //java:java_base_nonroot_amd64_debian12
//java:java_base_root_amd64_debian12
//java:java_base_debug_nonroot_amd64_debian12
//java:java_base_debug_nonroot_amd64_debian12
//java:java_base_debug_root_arm64_debian12
//java:java_base_root_amd64_debian12
//java:java_base_debug_nonroot_arm64_debian12
//java:java_base_debug_nonroot_s390x_debian12
//java:java_base_debug_root_ppc64le_debian12
//java:java_base_debug_root_amd64_debian12
//java:java_base_nonroot_s390x_debian12
//java:java_base_nonroot_amd64_debian12
//java:java_base_root_s390x_debian12
//java:java_base_root_arm64_debian12
//java:java17_nonroot_s390x_debian12
//java:java_base_nonroot_ppc64le_debian12
//java:java21_root_arm64_debian12
//java:java21_nonroot_amd64_debian12
//java:java17_debug_nonroot_amd64_debian12
//java:java17_nonroot_amd64_debian12
//java:java_base_debug_nonroot_ppc64le_debian12
//java:java17_debug_root_ppc64le_debian12
//java:java21_nonroot_ppc64le_debian12
//java:java17_root_amd64_debian12
//java:java17_root_s390x_debian12
//java:java21_root_amd64_debian12
//java:java21_debug_root_ppc64le_debian12
//java:java_base_root_ppc64le_debian12
//java:java17_nonroot_ppc64le_debian12
//java:java17_debug_nonroot_ppc64le_debian12
//java:java21_debug_root_amd64_debian12
//java:java21_debug_nonroot_amd64_debian12
//java:java21_debug_nonroot_ppc64le_debian12
//java:java21_debug_root_arm64_debian12
//java:java_base_debug_root_amd64_debian12
//java:java17_root_amd64_debian12
//java:java_base_nonroot_arm64_debian12
//java:java25_debug_root_ppc64le_debian13
//java:java25_root_ppc64le_debian13
//java:java21_root_ppc64le_debian12
//java:java25_debug_nonroot_arm64_debian13
//java:java21_root_s390x_debian12
//java:java_base_debug_root_s390x_debian12
//java:java17_debug_root_amd64_debian12
//java:java25_root_s390x_debian13
//java:java17_debug_nonroot_arm64_debian12
//java:java17_nonroot_amd64_debian12
//java:java21_nonroot_arm64_debian12
//java:java17_debug_root_amd64_debian12
//java:java25_debug_nonroot_s390x_debian13
//java:java21_debug_nonroot_arm64_debian12
//java:java25_nonroot_s390x_debian13
//java:java25_debug_nonroot_ppc64le_debian13
//java:java21_nonroot_s390x_debian12
//java:java25_nonroot_ppc64le_debian13
//java:java25_debug_root_amd64_debian13
//java:java21_debug_nonroot_s390x_debian12
//java:java25_root_amd64_debian13
//java:java17_debug_root_s390x_debian12
//java:java25_root_arm64_debian13
//java:java17_debug_root_arm64_debian12
//java:java25_debug_root_s390x_debian13
//java:java17_debug_nonroot_s390x_debian12
//java:java25_debug_root_arm64_debian13
//java:java25_debug_nonroot_amd64_debian13
//java:java25_nonroot_arm64_debian13
//java:java17_root_arm64_debian12
//java:java17_nonroot_arm64_debian12
//java:java17_root_ppc64le_debian12
//java:java17_debug_nonroot_amd64_debian12
//java:java21_debug_root_s390x_debian12
//java:java25_nonroot_amd64_debian13You can check the details in the report here |
ad6f996 to
fa34df4
Compare
fa34df4 to
07eb0a9
Compare
- splits into reusable parts
- old builds should be cleared out when we deprecated debian12
and the java.bzl file will be much smaller
- add libbz which is required by font config
- use temurin from adoptium deb sources (not github releases)
- temurin 25 github releases replaced with official deb
- temurin 25 on debian 13 cacerts points to system certs
- confirmed with maintainers that the pool is additive, and references
should exist for the life of the project
- we will no longer use github releases
- update some java base image references in debian13 (use t64 suffix)
Signed-off-by: Appu Goundan <appu@google.com>
07eb0a9 to
f12e3f8
Compare
Uh oh!
There was an error while loading. Please reload this page.