From 903430576a7c301bea17b846dc20260ebc33cff1 Mon Sep 17 00:00:00 2001 From: Priamo Germosen <6233424+pgermosen@users.noreply.github.com> Date: Thu, 5 Nov 2026 09:55:49 -0400 Subject: [PATCH] perf: share Jandex classes across test preparations (#7593) Load Jandex parent-first in tests to avoid duplicate implementation classes across Quarkus preparations. Move the existing Groovy entry to bootstrap application.properties while retaining separate application classloaders and test state. --- src/test/resources/application.properties | 4 ++++ src/test/resources/application.yml | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 src/test/resources/application.properties diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties new file mode 100644 index 0000000000..7293d09d6b --- /dev/null +++ b/src/test/resources/application.properties @@ -0,0 +1,4 @@ +# Bootstrap class-loading settings are read before YAML configuration. +# Keep Groovy's DFA-cache-cleaner threads from pinning per-profile classloaders. +# Share Jandex implementation classes across preparations, not application state. +quarkus.class-loading.parent-first-artifacts=org.apache.groovy:groovy,io.smallrye:jandex diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml index e95ec67199..695d25a2ac 100644 --- a/src/test/resources/application.yml +++ b/src/test/resources/application.yml @@ -9,11 +9,6 @@ quarkus: max-body-size: ${floci.protocols.max-request-size}M max-header-size: 256K max-initial-line-length: 262144 - # Groovy (a REST Assured dependency) starts DFA-cache-cleaner threads that never stop. - # Loaded parent-first they live in the shared system classloader, so they cannot pin a - # per-profile application classloader across the many app restarts of a test run. - class-loading: - parent-first-artifacts: org.apache.groovy:groovy floci: base-url: "http://localhost:4566"