Skip to content

Commit

Permalink
Allow-list brotli warning after JEP 472
Browse files Browse the repository at this point in the history
This should fix failures due to new warnings coming from the JDK in the
following tests:

- DebugSymbolsTest.debugSymbolsQuarkus
- JFRTest.jfrPerfTest
- RuntimesSmokeTest.quarkusFullMicroProfile

Closes: Karm#284
  • Loading branch information
jerboaa committed Sep 26, 2024
1 parent ad85ce7 commit 9fe5b20
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ public Pattern[] get(boolean inContainer) {
Pattern.compile(".*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.*"),
// Dependency sources plugin may produce this warning on some systems. See https://issues.apache.org/jira/browse/MNG-7706
Pattern.compile(".*\\[WARNING\\] Parameter 'local' is deprecated core expression; Avoid use of ArtifactRepository type\\. If you need access to local repository, switch to .* expression and get LRM from it instead\\..*"),
// quarkus-netty has brotli as a dependency and native image builds with JDK 24+ produce these warnings
Pattern.compile(".*WARNING: A restricted method in java.lang.System has been called.*"),
Pattern.compile(".*WARNING: java\\.lang\\.System::loadLibrary has been called by com\\.aayushatharva\\.brotli4j\\.Brotli4jLoader.*"),
Pattern.compile(".*WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module.*"),
Pattern.compile(".*WARNING: Restricted methods will be blocked in a future release unless native access is enabled.*"),
};
}
},
Expand Down Expand Up @@ -294,6 +299,11 @@ public Pattern[] get(boolean inContainer) {
Pattern.compile(".*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.*"),
// Allow the quarkus main warning of older Mandrel releases
Pattern.compile(".*\\[WARNING\\] \\[io.quarkus.deployment.pkg.steps.NativeImageBuildStep\\] You are using an older version of GraalVM or Mandrel : 23\\.0.* Quarkus currently supports 23.1.* Please upgrade to this version\\..*"),
// quarkus-netty has brotli as a dependency and native image builds with JDK 24+ produce these warnings
Pattern.compile(".*WARNING: A restricted method in java.lang.System has been called.*"),
Pattern.compile(".*WARNING: java\\.lang\\.System::loadLibrary has been called by com\\.aayushatharva\\.brotli4j\\.Brotli4jLoader.*"),
Pattern.compile(".*WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module.*"),
Pattern.compile(".*WARNING: Restricted methods will be blocked in a future release unless native access is enabled.*"),
};
}
}
Expand Down

0 comments on commit 9fe5b20

Please sign in to comment.