This is an automated email from the ASF dual-hosted git repository.
emaynard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 23f648005 Testing: silence a bunch of harmless test warnings (#1773)
23f648005 is described below
commit 23f6480054c389d9ea9414182b8e04f6f7de5586
Author: Robert Stupp <[email protected]>
AuthorDate: Mon Jun 2 20:20:21 2025 +0200
Testing: silence a bunch of harmless test warnings (#1773)
* `OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot
loader classes because bootstrap classpath has been appended`
* Hibernate Validator cannot instrument static methods (`Hibernate
Validator does not support constraints on static methods yet. ...`)
* ForkJoinPool test lifecycle warning
* Couple of split-package warnings
---
quarkus/defaults/src/main/resources/application-test.properties | 9 +++++++++
quarkus/defaults/src/main/resources/application.properties | 9 +++++++++
quarkus/service/build.gradle.kts | 3 +++
3 files changed, 21 insertions(+)
diff --git a/quarkus/defaults/src/main/resources/application-test.properties
b/quarkus/defaults/src/main/resources/application-test.properties
index 61d7a518a..2aeb77acc 100644
--- a/quarkus/defaults/src/main/resources/application-test.properties
+++ b/quarkus/defaults/src/main/resources/application-test.properties
@@ -22,3 +22,12 @@
quarkus.log.file.enable=false
quarkus.datasource.devservices.image-name=postgres:17-alpine
+
+# Prevent the 'Hibernate Validator does not support constraints on static
methods yet.' warning log messages on
+# code generated by the OpenAPI generator. The warning can only be silenced
via a log level setting.
+# See
https://github.com/quarkusio/quarkus/blob/15f6b4426512c04a54e7a0bd87f894fabe068c07/extensions/hibernate-validator/deployment/src/main/java/io/quarkus/hibernate/validator/deployment/MethodValidatedAnnotationsTransformer.java#L51-L53
+# and how the 'LOGGER' is setup.
+quarkus.log.category."io.quarkus.hibernate.validator.deployment".level=ERROR
+# Silence the FJP warning, nothing we can do about it.
+# See
https://github.com/quarkusio/quarkus/blob/15f6b4426512c04a54e7a0bd87f894fabe068c07/core/deployment/src/main/java/io/quarkus/runner/bootstrap/ForkJoinClassLoading.java#L41-L42
+quarkus.log.category."io.quarkus.runner.bootstrap.ForkJoinClassLoading".level=FATAL
diff --git a/quarkus/defaults/src/main/resources/application.properties
b/quarkus/defaults/src/main/resources/application.properties
index a695922d7..592501f76 100644
--- a/quarkus/defaults/src/main/resources/application.properties
+++ b/quarkus/defaults/src/main/resources/application.properties
@@ -189,10 +189,18 @@ polaris.oidc.principal-roles-mapper.type=default
# polaris.storage.gcp.lifespan=PT1H
quarkus.arc.ignored-split-packages=\
+ org.apache.polaris.service.catalog.api,\
+ org.apache.polaris.service.catalog.api.impl,\
org.apache.polaris.service.quarkus.metrics,\
org.apache.polaris.service.quarkus.config,\
org.apache.polaris.service.quarkus.auth,\
+ org.apache.polaris.service.quarkus.auth.external,\
+ org.apache.polaris.service.quarkus.auth.external.mapping,\
+ org.apache.polaris.service.quarkus.auth.external.tenant,\
+ org.apache.polaris.service.quarkus.auth.internal,\
+ org.apache.polaris.service.quarkus.events,\
org.apache.polaris.service.quarkus.task,\
+ org.apache.polaris.service.quarkus.secrets,\
org.apache.polaris.service.quarkus.storage,\
org.apache.polaris.service.quarkus.tracing,\
org.apache.polaris.service.quarkus.ratelimiter,\
@@ -201,6 +209,7 @@ quarkus.arc.ignored-split-packages=\
org.apache.polaris.service.quarkus.context,\
org.apache.polaris.service.quarkus.persistence,\
org.apache.polaris.service.quarkus.logging,\
+ org.apache.polaris.service.types,\
org.apache.polaris.admintool.config,\
org.apache.polaris.admintool
diff --git a/quarkus/service/build.gradle.kts b/quarkus/service/build.gradle.kts
index a7dcd14c4..01af01d3c 100644
--- a/quarkus/service/build.gradle.kts
+++ b/quarkus/service/build.gradle.kts
@@ -150,6 +150,9 @@ tasks.named<Test>("test").configure {
maxParallelForks = 4
// enlarge the max heap size to avoid out of memory error
maxHeapSize = "4g"
+ // Silence the 'OpenJDK 64-Bit Server VM warning: Sharing is only supported
for boot loader
+ // classes because bootstrap classpath has been appended' warning from
OpenJDK.
+ jvmArgs("-Xshare:off")
}
tasks.named<Test>("intTest").configure {