Skip to content

[7.0.0] Pass ct.sym to direct version of Turbine#20341

Merged
meteorcloudy merged 1 commit intobazelbuild:release-7.0.0from
fmeum:20323-cherry
Nov 28, 2023
Merged

[7.0.0] Pass ct.sym to direct version of Turbine#20341
meteorcloudy merged 1 commit intobazelbuild:release-7.0.0from
fmeum:20323-cherry

Conversation

@fmeum
Copy link
Copy Markdown
Collaborator

@fmeum fmeum commented Nov 28, 2023

Cherry-picked from 4a29f08

Compared to the cherry-picked commit, this does not contain the turbine update as turbine is not embedded into the Bazel binary and can be updated independently via rules_java.

Original description follows:

This ensures that Turbine has access to ct.sym and thus supports the --release flag even if it is compiled into a Graal native image, which doesn't have access to a JAVA_HOME.

This requires exposing the ct.sym file on a new lib_ct_sym attribute of java_runtime and passing it into Turbine via the turbine.ctSymPath system property introduced in v0.3.1.

Along the way this commit fixes the setup code for testing unreleased versions of the remote Java and coverage tools, which silently broke with the flip of --enable_bzlmod.

Work towards bazelbuild/stardoc#195

Closes #20294.

PiperOrigin-RevId: 585866870
Change-Id: I416b787e324bd3a01e223edbda4f9ba137c21241

Closes #20323

Cherry-picked from 4a29f08

Compared to the cherry-picked commit, this does not contain the turbine
update as turbine is not embedded into the Bazel binary and can be
updated independently via rules_java.

Original description follows:

This ensures that Turbine has access to `ct.sym` and thus supports the `--release` flag even if it is compiled into a Graal native image, which doesn't have access to a `JAVA_HOME`.

This requires exposing the `ct.sym` file on a new `lib_ct_sym` attribute of `java_runtime` and passing it into Turbine via the `turbine.ctSymPath` system property introduced in v0.3.1.

Along the way this commit fixes the setup code for testing unreleased versions of the remote Java and coverage tools, which silently broke with the flip of `--enable_bzlmod`.

Work towards bazelbuild/stardoc#195

Closes bazelbuild#20294.

PiperOrigin-RevId: 585866870
Change-Id: I416b787e324bd3a01e223edbda4f9ba137c21241
@fmeum fmeum requested a review from a team as a code owner November 28, 2023 12:00
@github-actions github-actions Bot added awaiting-review PR is awaiting review from an assigned reviewer team-Rules-Java Issues for Java rules labels Nov 28, 2023
@fmeum
Copy link
Copy Markdown
Collaborator Author

fmeum commented Nov 28, 2023

CC @meteorcloudy

@meteorcloudy
Copy link
Copy Markdown
Member

meteorcloudy commented Nov 28, 2023

Sorry, I was told the turbine change didn't make it into Bazel 7, do we still need this change?

@meteorcloudy
Copy link
Copy Markdown
Member

Should we wait for 7.1.0?

@meteorcloudy
Copy link
Copy Markdown
Member

Oh, just saw #20323 (comment)

@meteorcloudy meteorcloudy merged commit a9747c1 into bazelbuild:release-7.0.0 Nov 28, 2023
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Rules-Java Issues for Java rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants