@@ -218,9 +218,9 @@ public Pattern[] get(boolean inContainer) {
218218 if (IS_THIS_MACOS && "true" .equalsIgnoreCase (System .getenv ("GITHUB_ACTIONS" ))) {
219219 p .add (Pattern .compile (".*Netty DefaultChannelId initialization \\ (with io\\ .netty\\ .machineId.*\\ ) took more than a second.*" ));
220220 }
221- // GraalVM 26 adds a warning count at the end of the build output.
221+ // GraalVM 26 or graal/master that is Labs JDK 25 based adds a warning count at the end of the build output.
222222 // See https://github.com/oracle/graal/pull/12162
223- if (UsedVersion .getVersion (inContainer ).compareTo (Version .create (26 , 0 , 0 )) >= 0 ) {
223+ if (UsedVersion .getVersion (inContainer ).compareTo (Version .create (25 , 0 , 0 )) >= 0 ) {
224224 p .add (Pattern .compile (".*The build process encountered 1 warning\\ ..*" ));
225225 }
226226 // Sometimes, this appears when using Hyperfoil to benchmark the app. The acceptor wants to handle a connection, but no event loop is registered.
@@ -350,18 +350,23 @@ public Pattern[] get(boolean inContainer) {
350350 HELIDON_QUICKSTART_SE {
351351 @ Override
352352 public Pattern [] get (boolean inContainer ) {
353- return new Pattern [] {
354- // Experimental options not being unlocked, produces warnings, yet it's driven by the helidon-maven-plugin
355- Pattern .compile (".*The option '.*' is experimental and must be enabled via.*" ),
356- // Unused argument on new Graal
357- Pattern .compile (".*Ignoring server-mode native-image argument --no-server.*" ),
358- // --allow-incomplete-classpath not available in new GraalVM https://github.com/Karm/mandrel-integration-tests/issues/76
359- Pattern .compile (".*Using a deprecated option --allow-incomplete-classpath from.*helidon-webserver-2.2.2.jar.*" ),
360- // Ignore JDK 24+ warning till https://github.com/classgraph/classgraph/issues/899 gets fixed
361- Pattern .compile (".*WARNING: sun.misc.Unsafe::invokeCleaner has been called by .*nonapi.io.github.classgraph.utils.FileUtils.*" ),
362- Pattern .compile (".*WARNING: Please consider reporting this to the maintainers of class .*nonapi.io.github.classgraph.utils.FileUtils" ),
363- Pattern .compile (".*WARNING: sun.misc.Unsafe::invokeCleaner will be removed in a future release" ),
364- };
353+ List <Pattern > p = new ArrayList <>();
354+ // Experimental options not being unlocked, produces warnings, yet it's driven by the helidon-maven-plugin
355+ p .add (Pattern .compile (".*The option '.*' is experimental and must be enabled via.*" ));
356+ // Unused argument on new Graal
357+ p .add (Pattern .compile (".*Ignoring server-mode native-image argument --no-server.*" ));
358+ // --allow-incomplete-classpath not available in new GraalVM https://github.com/Karm/mandrel-integration-tests/issues/76
359+ p .add (Pattern .compile (".*Using a deprecated option --allow-incomplete-classpath from.*helidon-webserver-2.2.2.jar.*" ));
360+ // Ignore JDK 24+ warning till https://github.com/classgraph/classgraph/issues/899 gets fixed
361+ p .add (Pattern .compile (".*WARNING: sun.misc.Unsafe::invokeCleaner has been called by .*nonapi.io.github.classgraph.utils.FileUtils.*" ));
362+ p .add (Pattern .compile (".*WARNING: Please consider reporting this to the maintainers of class .*nonapi.io.github.classgraph.utils.FileUtils" ));
363+ p .add (Pattern .compile (".*WARNING: sun.misc.Unsafe::invokeCleaner will be removed in a future release" ));
364+ // GraalVM 26 or graal/master that is Labs JDK 25 based adds a warning count at the end of the build output.
365+ // See https://github.com/oracle/graal/pull/12162
366+ if (UsedVersion .getVersion (inContainer ).compareTo (Version .create (25 , 0 , 0 )) >= 0 ) {
367+ p .add (Pattern .compile (".*The build process encountered 9 warnings\\ ..*" ));
368+ }
369+ return p .toArray (new Pattern [0 ]);
365370 }
366371 },
367372 QUARKUS_BUILDER_IMAGE_ENCODING {
@@ -437,6 +442,11 @@ public Pattern[] get(boolean inContainer) {
437442 p .add (Pattern .compile (".*WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release" ));
438443 }
439444 }
445+ // GraalVM 26 or graal/master that is Labs JDK 25 based adds a warning count at the end of the build output.
446+ // See https://github.com/oracle/graal/pull/12162
447+ if (UsedVersion .getVersion (inContainer ).compareTo (Version .create (25 , 0 , 0 )) >= 0 ) {
448+ p .add (Pattern .compile (".*The build process encountered 1 warning\\ ..*" ));
449+ }
440450 return p .toArray (new Pattern [0 ]);
441451 }
442452 },
0 commit comments