Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

@graalvmbot graalvmbot commented Nov 1, 2023

This PR sets NATIVE_IMAGE_EXPERIMENTAL_OPTIONS_ARE_FATAL=true in CI to ensure that gates are properly unlocking experimental options. The PR also adjusts various mx/CI infrastructure bits and fixes a bug in the unlocking mechanism itself.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 1, 2023
@fniephaus fniephaus linked an issue Nov 1, 2023 that may be closed by this pull request
5 tasks
@zakkak
Copy link
Collaborator

zakkak commented Nov 1, 2023

Hi @fniephaus, although this makes sense as the next step we still see 3rd party libraries using experimental VM options, e.g. netty/netty#13595 and neo4j/neo4j-java-driver#1498, so I expect significant disruption if this goes in now.

I am afraid that would possibly force frameworks to just pass -H:+UnlockExperimentalVMOptions in the beginning of the native-image arguments, which is not desirable.

@zakkak
Copy link
Collaborator

zakkak commented Nov 1, 2023

Furthermore I don't see the PR resolving the "Bug fixes and improvements" and "API changes" parts of #7370 is that intentional are they resolved in separate PRs?

@fniephaus
Copy link
Member

Hey @zakkak, are you suggesting that we enforce unlocking in a later release of GraalVM? The JDK 22 release is half a year away from the JDK 21 release (that's where we introduced -H:+UnlockExperimentalVMOptions) , and the JDK 23 release is a year away.

@fniephaus
Copy link
Member

Furthermore I don't see the PR resolving the "Bug fixes and improvements" and "API changes" parts of #7370 is that intentional are they resolved in separate PRs?

They will be resolved in separate PRs.

@zakkak
Copy link
Collaborator

zakkak commented Nov 1, 2023

Hey @zakkak, are you suggesting that we enforce unlocking in a later release of GraalVM? The JDK 22 release is half a year away from the JDK 21 release (that's where we introduced -H:+UnlockExperimentalVMOptions) , and the JDK 23 release is a year away.

Not necessarily, I would suggest delaying the merge of the PR for the time being to see how the ecosystem adapts. We still have enough time for the code freeze, right?

They will be resolved in separate PRs.

In that case it would make more sense to merge those PRs first, no?

@fniephaus
Copy link
Member

Not necessarily, I would suggest delaying the merge of the PR for the time being to see how the ecosystem adapts. We still have enough time for the code freeze, right?

Sure, code freeze is in December, and the freeze is much longer (3 months as opposed to one month). Keep in mind that doing this now will only affect end-users that use a dev build.

In that case it would make more sense to merge those PRs first, no?

It depends. On #7370, we said that enabling this has the highest priority.

@graalvmbot graalvmbot force-pushed the fniephaus/GR-47922/experimental-opts branch from d7a0951 to 706b1cd Compare November 1, 2023 10:22
@graalvmbot graalvmbot changed the title [GR-47922] Enforce -H:±UnlockExperimentalVMOptions. [GR-47922] Enforce -H:±UnlockExperimentalVMOptions in CI. Nov 1, 2023
@graalvmbot graalvmbot force-pushed the fniephaus/GR-47922/experimental-opts branch from 706b1cd to 4ae86f7 Compare November 1, 2023 10:31
@fniephaus
Copy link
Member

I have adjusted this PR so that it doesn't change the behavior just yet. Instead, we use NATIVE_IMAGE_EXPERIMENTAL_OPTIONS_ARE_FATAL=true in CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants