-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for different thresholds per GraalVM version
`ImageMetricsITCase` tests are skipped for versions with undefined thresholds
- Loading branch information
Showing
12 changed files
with
147 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...jpa-postgresql-withxml/src/test/java/io/quarkus/it/jpa/postgresql/ImageMetricsITCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
package io.quarkus.it.jpa.postgresql; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.ExtendWith; | ||
|
||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
import io.quarkus.test.junit.nativeimage.BuildOutput; | ||
import io.quarkus.test.junit.nativeimage.BuildOutputExtension; | ||
|
||
@ExtendWith(BuildOutputExtension.class) | ||
@QuarkusIntegrationTest | ||
public class ImageMetricsITCase { | ||
@Test | ||
public void verifyImageMetrics() { | ||
BuildOutput buildOutput = new BuildOutput(); | ||
BuildOutputExtension buildOutput = new BuildOutputExtension(); | ||
buildOutput.verifyImageMetrics(); | ||
} | ||
} |
15 changes: 8 additions & 7 deletions
15
...t/resources/image-metrics-test.properties → ...age-metrics/23.0/image-metrics.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...sts/jpa-postgresql-withxml/src/test/resources/image-metrics/23.1/image-metrics.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Properties file used by ImageMetricsITCase | ||
image_details.total_bytes=91650760 | ||
image_details.total_bytes.tolerance=3 | ||
analysis_results.types.reachable=20387 | ||
analysis_results.types.reachable.tolerance=3 | ||
analysis_results.methods.reachable=100956 | ||
analysis_results.methods.reachable.tolerance=3 | ||
analysis_results.fields.reachable=29789 | ||
analysis_results.fields.reachable.tolerance=3 | ||
analysis_results.types.reflection=6522 | ||
analysis_results.types.reflection.tolerance=3 | ||
analysis_results.methods.reflection=4682 | ||
analysis_results.methods.reflection.tolerance=3 | ||
analysis_results.fields.reflection=163 | ||
analysis_results.fields.reflection.tolerance=3 | ||
analysis_results.types.jni=61 | ||
analysis_results.types.jni.tolerance=1 | ||
analysis_results.methods.jni=55 | ||
analysis_results.methods.jni.tolerance=1 | ||
analysis_results.fields.jni=59 | ||
analysis_results.fields.jni.tolerance=1 |
7 changes: 5 additions & 2 deletions
7
...n-tests/jpa-postgresql/src/test/java/io/quarkus/it/jpa/postgresql/ImageMetricsITCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
package io.quarkus.it.jpa.postgresql; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.ExtendWith; | ||
|
||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
import io.quarkus.test.junit.nativeimage.BuildOutput; | ||
import io.quarkus.test.junit.nativeimage.BuildOutputExtension; | ||
|
||
@ExtendWith(BuildOutputExtension.class) | ||
@QuarkusIntegrationTest | ||
public class ImageMetricsITCase { | ||
|
||
@Test | ||
public void verifyImageMetrics() { | ||
BuildOutput buildOutput = new BuildOutput(); | ||
BuildOutputExtension buildOutput = new BuildOutputExtension(); | ||
buildOutput.verifyImageMetrics(); | ||
} | ||
} |
15 changes: 8 additions & 7 deletions
15
...t/resources/image-metrics-test.properties → ...age-metrics/23.0/image-metrics.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...ation-tests/jpa-postgresql/src/test/resources/image-metrics/23.1/image-metrics.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Properties file used by ImageMetricsITCase | ||
image_details.total_bytes=83036632 | ||
image_details.total_bytes.tolerance=3 | ||
analysis_results.types.reachable=19394 | ||
analysis_results.types.reachable.tolerance=3 | ||
analysis_results.methods.reachable=96465 | ||
analysis_results.methods.reachable.tolerance=3 | ||
analysis_results.fields.reachable=27025 | ||
analysis_results.fields.reachable.tolerance=3 | ||
analysis_results.types.reflection=6048 | ||
analysis_results.types.reflection.tolerance=3 | ||
analysis_results.methods.reflection=4495 | ||
analysis_results.methods.reflection.tolerance=3 | ||
analysis_results.fields.reflection=192 | ||
analysis_results.fields.reflection.tolerance=3 | ||
analysis_results.types.jni=61 | ||
analysis_results.types.jni.tolerance=1 | ||
analysis_results.methods.jni=55 | ||
analysis_results.methods.jni.tolerance=1 | ||
analysis_results.fields.jni=59 | ||
analysis_results.fields.jni.tolerance=1 |
6 changes: 4 additions & 2 deletions
6
integration-tests/main/src/test/java/io/quarkus/it/main/ImageMetricsITCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
package io.quarkus.it.main; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.ExtendWith; | ||
|
||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
import io.quarkus.test.junit.nativeimage.BuildOutput; | ||
import io.quarkus.test.junit.nativeimage.BuildOutputExtension; | ||
|
||
@ExtendWith(BuildOutputExtension.class) | ||
@QuarkusIntegrationTest | ||
public class ImageMetricsITCase { | ||
@Test | ||
public void verifyImageMetrics() { | ||
BuildOutput buildOutput = new BuildOutput(); | ||
BuildOutputExtension buildOutput = new BuildOutputExtension(); | ||
buildOutput.verifyImageMetrics(); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
integration-tests/main/src/test/resources/image-metrics/23.0/image-metrics.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Properties file used by ImageMetricsITCase | ||
image_details.total_bytes=139447360 | ||
image_details.total_bytes.tolerance=3 | ||
analysis_results.types.reachable=30117 | ||
analysis_results.types.reachable.tolerance=3 | ||
analysis_results.methods.reachable=150060 | ||
analysis_results.methods.reachable.tolerance=3 | ||
analysis_results.fields.reachable=44502 | ||
analysis_results.fields.reachable.tolerance=3 | ||
analysis_results.types.reflection=8989 | ||
analysis_results.types.reflection.tolerance=3 | ||
analysis_results.methods.reflection=7393 | ||
analysis_results.methods.reflection.tolerance=3 | ||
analysis_results.fields.reflection=438 | ||
analysis_results.fields.reflection.tolerance=3 | ||
analysis_results.types.jni=64 | ||
analysis_results.types.jni.tolerance=1 | ||
analysis_results.methods.jni=55 | ||
analysis_results.methods.jni.tolerance=1 | ||
analysis_results.fields.jni=70 | ||
analysis_results.fields.jni.tolerance=1 |
19 changes: 10 additions & 9 deletions
19
...t/resources/image-metrics-test.properties → ...age-metrics/23.1/image-metrics.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
image_details.total_bytes=138778008 | ||
# Properties file used by ImageMetricsITCase | ||
image_details.total_bytes=147268552 | ||
image_details.total_bytes.tolerance=3 | ||
# TODO: Switch to using analysis_results.types.reachable key once we drop support for GraalVM 22.3.0 | ||
analysis_results.classes.reachable=30005 | ||
analysis_results.classes.reachable=30415 | ||
analysis_results.classes.reachable.tolerance=3 | ||
analysis_results.methods.reachable=149440 | ||
analysis_results.methods.reachable=151296 | ||
analysis_results.methods.reachable.tolerance=3 | ||
analysis_results.fields.reachable=44161 | ||
analysis_results.fields.reachable=44325 | ||
analysis_results.fields.reachable.tolerance=3 | ||
# TODO: Switch to using analysis_results.types.reflection key once we drop support for GraalVM 22.3.0 | ||
analysis_results.classes.reflection=8966 | ||
analysis_results.classes.reflection=9118 | ||
analysis_results.classes.reflection.tolerance=3 | ||
analysis_results.methods.reflection=7346 | ||
analysis_results.methods.reflection=7741 | ||
analysis_results.methods.reflection.tolerance=3 | ||
analysis_results.fields.reflection=438 | ||
analysis_results.fields.reflection=480 | ||
analysis_results.fields.reflection.tolerance=3 | ||
# TODO: Switch to using analysis_results.types.jni key once we drop support for GraalVM 22.3.0 | ||
analysis_results.classes.jni=64 | ||
analysis_results.classes.jni=62 | ||
analysis_results.classes.jni.tolerance=1 | ||
analysis_results.methods.jni=55 | ||
analysis_results.methods.jni.tolerance=1 | ||
analysis_results.fields.jni=70 | ||
analysis_results.fields.jni=61 | ||
analysis_results.fields.jni.tolerance=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters