You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2026/08/16 14:05:27 UTC

(httpcomponents-client) branch 5.6.x updated: Moved timeout and stale connection related integration tests into separate groups to be executed manually during release preparation due to those tests failing intermittently in CI

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

ok2c pushed a commit to branch 5.6.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git


The following commit(s) were added to refs/heads/5.6.x by this push:
     new 815043adf Moved timeout and stale connection related integration tests into separate groups to be executed manually during release preparation due to those tests failing intermittently in CI
815043adf is described below

commit 815043adf57b31cd7c99f911dcfb573fffcb5e4d
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sun Aug 16 15:52:30 2026 +0200

    Moved timeout and stale connection related integration tests into separate groups to be executed manually during release preparation due to those tests failing intermittently in CI
---
 .../client5/testing/TestValidateAfterInactivity.java  |  2 ++
 .../testing/async/TestAsyncTlsHandshakeTimeout.java   |  2 +-
 .../client5/testing/sync/TestConnectionTimeouts.java  |  2 ++
 pom.xml                                               | 19 ++++++++++++++++++-
 4 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/TestValidateAfterInactivity.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/TestValidateAfterInactivity.java
index 47ccac911..d6b1f8acc 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/TestValidateAfterInactivity.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/TestValidateAfterInactivity.java
@@ -44,6 +44,7 @@
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Nested;
+import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Test;
 
 import java.io.IOException;
@@ -144,6 +145,7 @@ void testSyncClientWithValidateAfterInactivity() throws Exception {
     }
 
     @Test
+    @Tag("stale-conn")
     void testAsyncClientWithStaleConnection() throws Exception {
         testAsyncClient(false);
     }
diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestAsyncTlsHandshakeTimeout.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestAsyncTlsHandshakeTimeout.java
index aca39d38d..6b316bbf0 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestAsyncTlsHandshakeTimeout.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestAsyncTlsHandshakeTimeout.java
@@ -55,10 +55,10 @@
 import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.junit.jupiter.api.Assumptions.assumeFalse;
 
+@Tag("time-out")
 public class TestAsyncTlsHandshakeTimeout {
     private static final Duration EXPECTED_TIMEOUT = Duration.ofMillis(500);
 
-    @Tag("slow")
     @Timeout(5)
     @ParameterizedTest
     @ValueSource(strings = { "false", "true" })
diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestConnectionTimeouts.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestConnectionTimeouts.java
index b327d4de1..39b3b2d68 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestConnectionTimeouts.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestConnectionTimeouts.java
@@ -39,6 +39,7 @@
 import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager;
 import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManagerBuilder;
 import org.apache.hc.core5.http.ClassicHttpRequest;
+import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Timeout;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.ValueSource;
@@ -51,6 +52,7 @@
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
+@Tag("time-out")
 class TestConnectionTimeouts {
     private static final Duration EXPECTED_TIMEOUT = Duration.ofMillis(500);
 
diff --git a/pom.xml b/pom.xml
index c2471f1cd..4e5e210f7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -398,7 +398,7 @@
         <artifactId>maven-surefire-plugin</artifactId>
         <version>${hc.surefire.version}</version>
         <configuration>
-          <excludedGroups>slow</excludedGroups>
+          <excludedGroups>slow,time-out,stale-conn</excludedGroups>
         </configuration>
       </plugin>
     </plugins>
@@ -422,6 +422,23 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>pre-release-tests</id>
+      <build>
+        <plugins>
+
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <version>${hc.surefire.version}</version>
+            <configuration combine.self="override">
+              <excludedGroups>slow</excludedGroups>
+            </configuration>
+          </plugin>
+
+        </plugins>
+      </build>
+    </profile>
   </profiles>