Skip to content

[9.3.0] Support pass-through Args for JavaBuilder in java_common.create_compilation_action - #30981

Merged
iancha1992 merged 1 commit into
bazelbuild:release-9.3.0from
fmeum:cp-9.3.0-30808
Sep 3, 2026
Merged

[9.3.0] Support pass-through Args for JavaBuilder in java_common.create_compilation_action#30981
iancha1992 merged 1 commit into
bazelbuild:release-9.3.0from
fmeum:cp-9.3.0-30808

Conversation

@fmeum

@fmeum fmeum commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

This allows faster iteration on the rules_java <> JavaBuilder contract without having to wait for Bazel changes/releases. In the immediate future, this will be used for the unused-deps checking. Longer term this should also help in migrating off the native compilation code.

Note: the added integration shell test is currently a no-op on CI (since we need the corresponding rules_java changes) but does allow for local testing with an overridden @rules_java.

Closes #30808.

PiperOrigin-RevId: 971826913
Change-Id: I8047e057716475a7a4d8bff48b8c7bfe6d79ba1c

(cherry picked from commit 0e6f09d)

9.3.0 adaptation: java_common.bzl has no _ALLOWLIST constant on this branch, so bazel_internal/test_rules is added to the allowlist passed inline to check_private_api. JavaCompileActionBuilderTest needed a testutil:TestConstants dep for the new test. The bazel_java_test.sh cases are left out: they exercise --experimental_check_unused_deps, which is a JavaBuilder option added by #30807 and not present on this branch, and they are a no-op on CI anyway. JavaCompileActionBuilderTest and all four shards of //src/test/shell/bazel:bazel_java_test_jdk17_toolchain_head pass locally.

Closes #30968

@fmeum
fmeum marked this pull request as ready for review September 2, 2026 16:36
@fmeum
fmeum requested a review from a team as a code owner September 2, 2026 16:36
@fmeum
fmeum requested a review from hvadehra September 2, 2026 16:36
@github-actions github-actions Bot added team-Rules-Java Issues for Java rules awaiting-review PR is awaiting review from an assigned reviewer team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts labels Sep 2, 2026
@iancha1992
iancha1992 enabled auto-merge September 2, 2026 19:26
@hvadehra

hvadehra commented Sep 3, 2026

Copy link
Copy Markdown
Member

We don't need 61218bb, it doesn't do anything. We can just ignore the bazel_java_test changes, they're essentially a no-op on CI.

…compilation_action` (bazelbuild#30808)

This allows faster iteration on the `rules_java` <> `JavaBuilder` contract without having to wait for Bazel changes/releases. In the immediate future, this will be used for the unused-deps checking. Longer term this should also help in migrating off the native compilation code.

Note: the added integration shell test is currently a no-op on CI (since we need the corresponding rules_java changes) but does allow for local testing with an overridden `@rules_java`.

Closes bazelbuild#30808.

PiperOrigin-RevId: 971826913
Change-Id: I8047e057716475a7a4d8bff48b8c7bfe6d79ba1c

(cherry picked from commit 0e6f09d)
auto-merge was automatically disabled September 3, 2026 09:55

Head branch was pushed to by a user without write access

@fmeum

fmeum commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator Author

@hvadehra Dropped!

@iancha1992
iancha1992 added this pull request to the merge queue Sep 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 3, 2026
@iancha1992
iancha1992 added this pull request to the merge queue Sep 3, 2026
Merged via the queue into bazelbuild:release-9.3.0 with commit 9a1d18e Sep 3, 2026
41 checks passed
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts team-Rules-Java Issues for Java rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants