-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Introduce env variable QUARKUS_NATIVE_IT_SKIP_VERIFY_IMAGE_METRICS #37820
Introduce env variable QUARKUS_NATIVE_IT_SKIP_VERIFY_IMAGE_METRICS #37820
Conversation
This comment has been minimized.
This comment has been minimized.
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.
I just added a minor comment
* Allow users to skip this kind of tests by setting env variable QUARKUS_NATIVE_IT_SKIP_VERIFY_IMAGE_METRICS to true | ||
*/ | ||
String skipVerifyImageMetrics = System.getenv("QUARKUS_NATIVE_IT_SKIP_VERIFY_IMAGE_METRICS"); | ||
boolean skip = skipVerifyImageMetrics != null && skipVerifyImageMetrics.equalsIgnoreCase("true"); |
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.
Minor nitpicking: you can use Boolean.valueOf here
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.
Done, using Boolean.parseBoolean
though since there is no need for the variable to be a Boolean
instead of a boolean
.
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.
+1 on the suggestion to use Boolean.valueOf(System.getenv("QUARKUS_NATIVE_IT_SKIP_VERIFY_IMAGE_METRICS"))
Allow users to skip tests verifying native image build metrics (such as binary size, classes registered for reflection, etc.) by setting env variable QUARKUS_NATIVE_IT_SKIP_VERIFY_IMAGE_METRICS to true. Quarkus uses the "jvmci" version from the base-JDK used to build GraalVM. When building GraalVM master with JDK 21, however, we are using LabsJDK 21.0.1+12-jvmci-23.1-b26, so Quarkus thinks the GraalVM version is 23.1 despite it acutally being 24.0. Since upstream GraalVM doesn't plan on releasing GraalVM 24.0 based on JDK 21 it's not expected to get a jvmci version bump in LabsJDK 21. This patch allows us to keep testing GraalVM 24.0-dev with JDK 21 without getting false negatives.
d92738c
to
21f055a
Compare
Failures are due to:
The ImageMetricsITCase seems to work as expected. |
Allow users to skip tests verifying native image build metrics (such as
binary size, classes registered for reflection, etc.) by setting env
variable QUARKUS_NATIVE_IT_SKIP_VERIFY_IMAGE_METRICS to true.
Quarkus uses the "jvmci" version from the base-JDK used to build
GraalVM. When building GraalVM master with JDK 21, however, we are using
LabsJDK 21.0.1+12-jvmci-23.1-b26, so Quarkus thinks the GraalVM version
is 23.1 despite it acutally being 24.0. Since upstream GraalVM doesn't
plan on releasing GraalVM 24.0 based on JDK 21 it's not expected to get
a jvmci version bump in LabsJDK 21.
This patch allows us to keep testing GraalVM 24.0-dev with JDK 21 without
getting false negatives.