This is an automated email from the ASF dual-hosted git repository. JiriOndrusek pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 4b4de4259b9d56ef7f1e02f6cd4ee7c0762c6b72 Author: Jiří Ondrušek <[email protected]> AuthorDate: Fri Sep 25 11:39:06 2026 +0000 Fixed crypto test modules and stale test categories - crypto: Camel main (CAMEL-24440, 4ebacf60e46c) gave CryptoDataFormat a static SecureRandom, which GraalVM rejects in the image heap. Register the class for runtime initialization. - test-categories.yaml: drop leveldb, headersmap, splunk, digitalocean, csimple and langchain4j-tools, removed on camel-main with the Camel 4.23.0-SNAPSHOT upgrade, so native groups 04, 06, 10 and 12 no longer fail with "Could not find the selected project in the reactor". Co-Authored-By: Claude Fable 5.1 <[email protected]> --- .../quarkus/component/crypto/deployment/CryptoProcessor.java | 8 ++++++++ tooling/scripts/test-categories.yaml | 6 ------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/extensions/crypto/deployment/src/main/java/org/apache/camel/quarkus/component/crypto/deployment/CryptoProcessor.java b/extensions/crypto/deployment/src/main/java/org/apache/camel/quarkus/component/crypto/deployment/CryptoProcessor.java index 42e2c91683..3155d29656 100644 --- a/extensions/crypto/deployment/src/main/java/org/apache/camel/quarkus/component/crypto/deployment/CryptoProcessor.java +++ b/extensions/crypto/deployment/src/main/java/org/apache/camel/quarkus/component/crypto/deployment/CryptoProcessor.java @@ -19,6 +19,8 @@ package org.apache.camel.quarkus.component.crypto.deployment; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem; import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem; +import org.apache.camel.converter.crypto.CryptoDataFormat; import org.jboss.logging.Logger; class CryptoProcessor { @@ -37,4 +39,10 @@ class CryptoProcessor { return new ExtensionSslNativeSupportBuildItem(FEATURE); } + @BuildStep + RuntimeInitializedClassBuildItem runtimeInitializedClasses() { + // CryptoDataFormat holds a static SecureRandom, which must not be created at build time + return new RuntimeInitializedClassBuildItem(CryptoDataFormat.class.getName()); + } + } diff --git a/tooling/scripts/test-categories.yaml b/tooling/scripts/test-categories.yaml index ce8b1114e6..425cdd3567 100644 --- a/tooling/scripts/test-categories.yaml +++ b/tooling/scripts/test-categories.yaml @@ -86,7 +86,6 @@ group-04: - jpa - jta - kudu - - leveldb - mdc - micrometer - micrometer-observability @@ -116,7 +115,6 @@ group-06: - exec - file - hashicorp-vault - - headersmap - jsonpath - kamelet - langchain4j-chat-ql4j @@ -128,7 +126,6 @@ group-06: - quartz - saga - sjms-qpid-amqp-client - - splunk - stax - validator - wasm @@ -195,7 +192,6 @@ group-10: - as2 - braintree - consul - - digitalocean - docling - fop - groovy @@ -238,10 +234,8 @@ group-11: group-12: - ai-tool - aws2-grouped - - csimple - github2 - knative - - langchain4j-tools - langchain4j-web-search - mcp-server - openapi-java
