Karm / mandrel-integration-tests

Integration tests for GraalVM and its Mandrel distribution. Runs Quarkus, Helidon and Micronaut applications and small targeted reproducers. The focus is solely on native-image utility and compilation of Java applications into native executables.
Apache License 2.0
5 stars 3 forks source link

Allow list proxy config warning for JFR tests #269

Closed jerboaa closed 2 days ago

jerboaa commented 3 days ago

Closes: #261

jerboaa commented 2 days ago

Successful run on 24.2 with the updated deprecation warning and a successful run that failed before this patch:

[...]
[INFO] --- quarkus:999-SNAPSHOT:build (default) @ quarkus-full-microprofile ---
[WARNING] [io.quarkus.deployment.configuration] Configuration property 'quarkus.package.type' has been deprecated and replaced by: [quarkus.package.jar.enabled, quarkus.package.jar.type, quarkus.native.enabled, quarkus.native.sources-only]
[INFO] [io.quarkus.smallrye.jwt.deployment.SmallRyeJwtProcessor] Adding META-INF/resources/publicKey.pem to native image
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /disk/graal/upstream-sources/mandrel-integration-tests/apps/quarkus-full-microprofile/target/quarkus-native-image-source-jar/quarkus-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /disk/graal/upstream-sources/mandrel-integration-tests/apps/quarkus-full-microprofile/target/quarkus-native-image-source-jar/quarkus-runner.jar
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on MANDREL 24.2.0-deva5ce3a7367da JDK 24-beta+3-ea
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildRunner] /disk/graal/upstream-sources/graal/mandrel-build/bin/native-image -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dlogging.initial-configurator.min-level=500 -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=3 -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Duser.language=en -J-Duser.country=US -J-Dfile.encoding=UTF-8 --features=io.quarkus.runner.Feature,io.quarkus.runtime.graal.DisableLoggingFeature -J--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED -J--add-opens=java.base/java.text=ALL-UNNAMED -J--add-opens=java.base/java.io=ALL-UNNAMED -J--add-opens=java.base/java.lang.invoke=ALL-UNNAMED -J--add-opens=java.base/java.util=ALL-UNNAMED -H:+UnlockExperimentalVMOptions -H:BuildOutputJSONFile=quarkus-runner-build-output-stats.json -H:-UnlockExperimentalVMOptions -H:+UnlockExperimentalVMOptions -H:Log=registerResource: -H:-UnlockExperimentalVMOptions --trace-object-instantiation=java.util.Random -H:+UnlockExperimentalVMOptions -H:+AllowFoldMethods -H:-UnlockExperimentalVMOptions -J-Djava.awt.headless=true --no-fallback --link-at-build-time -H:+UnlockExperimentalVMOptions -H:+ReportExceptionStackTraces -H:-UnlockExperimentalVMOptions -H:-AddAllCharsets --enable-url-protocols=http,https -H:NativeLinkerOption=-no-pie --enable-monitoring=heapdump -H:+UnlockExperimentalVMOptions -H:-UseServiceLoaderFeature -H:-UnlockExperimentalVMOptions -J--add-exports=org.graalvm.nativeimage/org.graalvm.nativeimage.impl=ALL-UNNAMED --exclude-config io\.netty\.netty-codec /META-INF/native-image/io\.netty/netty-codec/generated/handlers/reflect-config\.json --exclude-config io\.netty\.netty-handler /META-INF/native-image/io\.netty/netty-handler/generated/handlers/reflect-config\.json quarkus-runner -jar quarkus-runner.jar
Warning: Option 'DynamicProxyConfigurationResources' is deprecated and might be removed in a future release: This can be caused by a proxy-config.json file in your META-INF directory. Consider including proxy configuration in the reflection section of reachability-metadata.md instead.. Please refer to the GraalVM release notes.
========================================================================================================================
GraalVM Native Image: Generating 'quarkus-runner' (executable)...
========================================================================================================================
For detailed information and explanations on the build output, visit:
https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md
------------------------------------------------------------------------------------------------------------------------
[1/8] Initializing...                                                                                    (5.4s @ 0.29GB)
 Java version: 24-beta+3-ea, vendor version: Mandrel-24.2.0-deva5ce3a7367da
 Graal compiler: optimization level: 2, target machine: x86-64-v3
 C compiler: gcc (redhat, x86_64, 13.3.1)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
 3 user-specific feature(s):
 - com.oracle.svm.thirdparty.gson.GsonFeature
 - io.quarkus.runner.Feature: Auto-generated class by Quarkus from the existing extensions
 - io.quarkus.runtime.graal.DisableLoggingFeature: Disables INFO logging during the analysis phase
------------------------------------------------------------------------------------------------------------------------
 4 experimental option(s) unlocked:
 - '-H:+AllowFoldMethods' (origin(s): command line)
 - '-H:BuildOutputJSONFile' (origin(s): command line)
 - '-H:-UseServiceLoaderFeature' (origin(s): command line)
 - '-H:Log' (origin(s): command line)
------------------------------------------------------------------------------------------------------------------------
Build resources:
 - 26.49GB of memory (42.4% of 62.55GB system memory, determined at start)
 - 12 thread(s) (100.0% of 12 available processor(s), determined at start)
[2/8] Performing analysis...  [******]                                                                  (28.3s @ 1.46GB)
   16,486 reachable types   (87.8% of   18,769 total)
   23,648 reachable fields  (53.0% of   44,593 total)
   80,261 reachable methods (57.7% of  139,073 total)
    5,009 types,   202 fields, and 3,835 methods registered for reflection
       61 types,    61 fields, and    55 methods registered for JNI access
        4 native libraries: dl, pthread, rt, z
[3/8] Building universe...                                                                               (4.9s @ 1.64GB)
[4/8] Parsing methods...      [**]                                                                       (3.6s @ 1.82GB)
[5/8] Inlining methods...     [***]                                                                      (2.2s @ 1.96GB)
[6/8] Compiling methods...    [******]                                                                  (32.2s @ 1.49GB)
[7/8] Laying out methods...   [***]                                                                      (5.4s @ 2.03GB)
[8/8] Creating image...       [***]                                                                      (5.3s @ 2.32GB)
  31.88MB (48.15%) for code area:    52,099 compilation units
  33.71MB (50.92%) for image heap:  393,833 objects and 86 resources
 627.47kB ( 0.93%) for other data
  66.21MB in total
------------------------------------------------------------------------------------------------------------------------
Top 10 origins of code area:                                Top 10 object types in image heap:
  13.23MB java.base                                            8.87MB byte[] for code metadata
   2.05MB quarkus-runner.jar                                   5.35MB byte[] for java.lang.String
   1.97MB svm.jar (Native Image)                               4.14MB java.lang.Class
   1.76MB c.f.jackson.core.jackson-databind-2.17.1.jar         3.55MB java.lang.String
   1.31MB modified-io.vertx.vertx-core-4.5.8.jar               1.38MB com.oracle.svm.core.hub.DynamicHubCompanion
 593.91kB io.netty.netty-buffer-4.1.110.Final.jar              1.13MB byte[] for general heap data
 569.60kB com.fasterxml.jackson.core.jackson-core-2.17.1.jar 948.65kB byte[] for reflection metadata
 508.42kB io.netty.netty-common-4.1.110.Final.jar            706.58kB java.lang.String[]
 462.57kB io.netty.netty-codec-http-4.1.110.Final.jar        596.33kB c.o.svm.core.hub.DynamicHub$ReflectionMetadata
 440.14kB io.quarkus.quarkus-vertx-http-999-SNAPSHOT.jar     541.73kB java.util.HashMap$Node
   8.68MB for 143 more packages                                6.56MB for 4132 more object types
------------------------------------------------------------------------------------------------------------------------
Recommendations:
 HEAP: Set max heap for improved and more predictable memory usage.
 CPU:  Enable more CPU features with '-march=native' for improved performance.
------------------------------------------------------------------------------------------------------------------------
                       6.2s (6.9% of total time) in 1214 GCs | Peak RSS: 3.21GB | CPU load: 9.49
------------------------------------------------------------------------------------------------------------------------
Build artifacts:
 /disk/graal/upstream-sources/mandrel-integration-tests/apps/quarkus-full-microprofile/target/quarkus-native-image-source-jar/quarkus-runner (executable)
 /disk/graal/upstream-sources/mandrel-integration-tests/apps/quarkus-full-microprofile/target/quarkus-native-image-source-jar/quarkus-runner-build-output-stats.json (build_info)
========================================================================================================================
Finished generating 'quarkus-runner' in 1m 29s.
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildRunner] objcopy --strip-debug quarkus-runner
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 94518ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:39 min
[INFO] Finished at: 2024-07-01T18:28:40+02:00
[INFO] ------------------------------------------------------------------------
2024-07-01 18:28:40.142 INFO  [o.g.t.i.RuntimesSmokeTest] (testRuntime) Running...
2024-07-01 18:28:40.143 INFO  [o.g.t.i.u.Commands] (runCommand) Command: [./target/quarkus-runner]
2024-07-01 18:28:40.186 INFO  [o.g.t.i.RuntimesSmokeTest] (testRuntime) Testing web page content...
2024-07-01 18:28:41.491 INFO  [o.g.t.i.RuntimesSmokeTest] (testRuntime) Terminate and scan logs...
2024-07-01 18:28:42.332 INFO  [o.g.t.i.u.Commands] (pidKiller) Killing PID: 370357, forcefully: false
2024-07-01 18:28:42.335 INFO  [o.g.t.i.RuntimesSmokeTest] (testRuntime) Gonna wait for ports closed...
2024-07-01 18:28:42.341 INFO  [o.g.t.i.u.Logs] (checkLog) build-and-run.log log for quarkusFullMicroProfile contains whitelisted error: `[WARNING] [io.quarkus.deployment.configuration] Configuration property 'quarkus.package.type' has been deprecated and replaced by: [quarkus.package.jar.enabled, quarkus.package.jar.type, quarkus.native.enabled, quarkus.native.sources-only]'
2024-07-01 18:28:42.343 INFO  [o.g.t.i.u.Logs] (checkLog) build-and-run.log log for quarkusFullMicroProfile contains whitelisted error: `Warning: Option 'DynamicProxyConfigurationResources' is deprecated and might be removed in a future release: This can be caused by a proxy-config.json file in your META-INF directory. Consider including proxy configuration in the reflection section of reachability-metadata.md instead.. Please refer to the GraalVM release notes.'
2024-07-01 18:28:42.345 INFO  [o.g.t.i.u.Logs] (checkLog) build-and-run.log log for quarkusFullMicroProfile contains whitelisted error: `2024-07-01 18:28:42,322 SEVERE [io.qua.ope.run.exp.otl.VertxGrpcExporter] (vert.x-eventloop-thread-5) Failed to export spans. The request could not be executed. Full error message: Connection refused: localhost/127.0.0.1:4317 [Error Occurred After Shutdown]'
2024-07-01 18:28:42.346 INFO  [o.g.t.i.u.Logs] (logMeasurements) 
App,buildTimeMs,timeToFirstOKRequestMs,RSSKb,executableSizeKb,FDs
QUARKUS_FULL_MICROPROFILE,100535,37,73008,67616,46
2024-07-01 18:28:42.363 INFO  [o.g.t.i.u.Commands] (pidKiller) Killing PID: 370357, forcefully: true
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 103.728 s - in org.graalvm.tests.integration.RuntimesSmokeTest
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- jar:3.3.0:jar (default-jar) @ testsuite ---
[INFO] Building jar: /disk/graal/upstream-sources/mandrel-integration-tests/testsuite/target/testsuite-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- failsafe:2.22.2:integration-test (default) @ testsuite ---
[WARNING] Parameter 'localRepository' is deprecated core expression; Avoid use of ArtifactRepository type. If you need access to local repository, switch to '${repositorySystemSession}' expression and get LRM from it instead.
[INFO] 
[INFO] --- failsafe:2.22.2:verify (default) @ testsuite ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Native image integration TS 1.0.0-SNAPSHOT:
[INFO] 
[INFO] Native image integration TS ........................ SUCCESS [  0.116 s]
[INFO] testsuite .......................................... SUCCESS [01:47 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:47 min
[INFO] Finished at: 2024-07-01T18:28:43+02:00
[INFO] ------------------------------------------------------------------------
zakkak commented 2 days ago

Thanks @jerboaa