This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 7055fc016995 CAMEL-25311: Guard model tests on unsupported native 
platforms (#27577)
7055fc016995 is described below

commit 7055fc0169958a0042be90ac35727adc4c247d6c
Author: Luigi De Masi <[email protected]>
AuthorDate: Thu Oct 8 16:17:06 2026 +0200

    CAMEL-25311: Guard model tests on unsupported native platforms (#27577)
    
    WolfDefenderModelIT ran whenever a local model directory was supplied,
    including on platforms without the required native libraries. Reuse the
    native unit tests' platform check so both model integration tests skip
    unsupported architectures (such as ppc64le and s390x) before native
    initialization. Java-only tests remain enabled.
    
    Closes #27577
    
    Co-authored-by: Codex <[email protected]>
    Signed-off-by: Luigi De Masi <[email protected]>
---
 .../org/apache/camel/component/wolfdefender/WolfDefenderModelIT.java   | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/components/camel-ai/camel-wolf-defender/src/test/java/org/apache/camel/component/wolfdefender/WolfDefenderModelIT.java
 
b/components/camel-ai/camel-wolf-defender/src/test/java/org/apache/camel/component/wolfdefender/WolfDefenderModelIT.java
index 035f347695e7..0dae81c825ae 100644
--- 
a/components/camel-ai/camel-wolf-defender/src/test/java/org/apache/camel/component/wolfdefender/WolfDefenderModelIT.java
+++ 
b/components/camel-ai/camel-wolf-defender/src/test/java/org/apache/camel/component/wolfdefender/WolfDefenderModelIT.java
@@ -29,6 +29,7 @@ import org.apache.camel.semantic.SemanticEvaluations;
 import org.apache.camel.semantic.SemanticResult;
 import org.apache.camel.support.DefaultExchange;
 import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIf;
 import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
 import org.junit.jupiter.api.io.TempDir;
 
@@ -37,6 +38,8 @@ import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.within;
 
 /** Explicitly opt in with a local, pinned model; this test never downloads 
artifacts. */
+@EnabledIf(value = 
"org.apache.camel.component.wolfdefender.WolfDefenderInferenceTest#supportedRuntime",
+           disabledReason = "ONNX Runtime and DJL Tokenizers have no native 
libraries for this platform")
 @EnabledIfSystemProperty(named = "wolfDefender.modelDirectory", matches = ".+")
 class WolfDefenderModelIT {
     @Test

Reply via email to