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

chrisdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 8e7b6f0a1a fix: Relaxed the coverage threshold for pcap-replay 
transport, as the CI/CD servers don't seem to have the ability to run all tests.
8e7b6f0a1a is described below

commit 8e7b6f0a1a163250eafa33efb68ec30bdd485f18
Author: Christofer Dutz <[email protected]>
AuthorDate: Fri Jun 12 18:17:00 2026 +0200

    fix: Relaxed the coverage threshold for pcap-replay transport, as the CI/CD 
servers don't seem to have the ability to run all tests.
---
 plc4j/transports/raw-socket/pom.xml | 42 +++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/plc4j/transports/raw-socket/pom.xml 
b/plc4j/transports/raw-socket/pom.xml
index 0f315cd4fd..571cb9498b 100644
--- a/plc4j/transports/raw-socket/pom.xml
+++ b/plc4j/transports/raw-socket/pom.xml
@@ -35,6 +35,48 @@
     
<project.build.outputTimestamp>2025-08-02T13:55:11Z</project.build.outputTimestamp>
   </properties>
 
+  <build>
+    <plugins>
+      <!--
+        Override coverage threshold: PCAP transport requires native libraries 
for pcap
+        operations. Especially on the CI/CD servers this is not available and 
tests are skipped
+        Which drops below the coverage threshold, which however is met on 
systems with installed
+        libs.
+      -->
+      <plugin>
+        <groupId>org.jacoco</groupId>
+        <artifactId>jacoco-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>check-coverage</id>
+            <goals>
+              <goal>check</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <rule implementation="org.jacoco.maven.RuleConfiguration">
+                  <element>BUNDLE</element>
+                  <limits>
+                    <limit implementation="org.jacoco.report.check.Limit">
+                      <counter>INSTRUCTION</counter>
+                      <value>COVEREDRATIO</value>
+                      <minimum>0.79</minimum>
+                    </limit>
+                    <limit implementation="org.jacoco.report.check.Limit">
+                      <counter>CLASS</counter>
+                      <value>MISSEDCOUNT</value>
+                      <maximum>0</maximum>
+                    </limit>
+                  </limits>
+                </rule>
+              </rules>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
   <dependencies>
     <dependency>
       <groupId>org.apache.plc4x</groupId>

Reply via email to