You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2023/11/09 02:26:42 UTC

(james-project) branch master updated (5f8eef6379 -> a1bea0d06e)

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

rcordier pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git


    from 5f8eef6379 JAMES 3897 - Crowdsec integration for Dictionary Attack (#1764)
     new 3facc21b00 [Build] Fail tests on modules longer than 30 minutes instead of 20
     new 817e4f5c39 [Build] Increase latency to 2s with dates checks in MailImplTest
     new a1bea0d06e [Build] Increase delay to 1s instead of 500ms in CachedBlobStoreTest

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml                                                             | 4 ++--
 server/apps/distributed-app/pom.xml                                 | 4 ++--
 server/apps/distributed-pop3-app/pom.xml                            | 4 ++--
 .../org/apache/james/blob/cassandra/cache/CachedBlobStoreTest.java  | 4 ++--
 server/blob/blob-file/pom.xml                                       | 2 +-
 server/blob/blob-memory/pom.xml                                     | 2 +-
 .../src/test/java/org/apache/james/server/core/MailImplTest.java    | 6 +++---
 .../distributed-jmap-rfc-8621-integration-tests/pom.xml             | 4 ++--
 server/protocols/protocols-imap4/pom.xml                            | 4 ++--
 server/protocols/protocols-lmtp/pom.xml                             | 4 ++--
 server/protocols/protocols-pop3/pom.xml                             | 4 ++--
 server/protocols/protocols-smtp/pom.xml                             | 4 ++--
 .../distributed-webadmin-integration-test/pom.xml                   | 4 ++--
 .../memory-webadmin-integration-test/pom.xml                        | 2 +-
 server/protocols/webadmin/webadmin-mailbox/pom.xml                  | 4 ++--
 15 files changed, 28 insertions(+), 28 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


(james-project) 01/03: [Build] Fail tests on modules longer than 30 minutes instead of 20

Posted by rc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 3facc21b00fab3b356ea3b1732c59e6679e03f59
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Tue Nov 7 16:44:19 2023 +0700

    [Build] Fail tests on modules longer than 30 minutes instead of 20
---
 pom.xml                                                               | 4 ++--
 server/apps/distributed-app/pom.xml                                   | 4 ++--
 server/apps/distributed-pop3-app/pom.xml                              | 4 ++--
 server/blob/blob-file/pom.xml                                         | 2 +-
 server/blob/blob-memory/pom.xml                                       | 2 +-
 .../distributed-jmap-rfc-8621-integration-tests/pom.xml               | 4 ++--
 server/protocols/protocols-imap4/pom.xml                              | 4 ++--
 server/protocols/protocols-lmtp/pom.xml                               | 4 ++--
 server/protocols/protocols-pop3/pom.xml                               | 4 ++--
 server/protocols/protocols-smtp/pom.xml                               | 4 ++--
 .../distributed-webadmin-integration-test/pom.xml                     | 4 ++--
 .../memory-webadmin-integration-test/pom.xml                          | 2 +-
 server/protocols/webadmin/webadmin-mailbox/pom.xml                    | 4 ++--
 13 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/pom.xml b/pom.xml
index 048c9bf723..9fe09d9f7d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3304,8 +3304,8 @@
                             -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                             -Xms512m -Xmx1024m</argLine>
                         <reuseForks>true</reuseForks>
-                        <!-- Fail tests longer than 20 minutes, prevent form random locking tests -->
-                        <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                        <!-- Fail tests longer than 30 minutes, prevent form random locking tests -->
+                        <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                         <excludedGroups>unstable</excludedGroups>
                     </configuration>
                 </plugin>
diff --git a/server/apps/distributed-app/pom.xml b/server/apps/distributed-app/pom.xml
index b363c1bb7a..fbd7f61e42 100644
--- a/server/apps/distributed-app/pom.xml
+++ b/server/apps/distributed-app/pom.xml
@@ -499,8 +499,8 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms512m -Xmx2048m</argLine>
                     <reuseForks>true</reuseForks>
-                    <!-- Fail tests longer than 20 minutes, prevent form random locking tests -->
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <!-- Fail tests longer than 30 minutes, prevent form random locking tests -->
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                     <excludedGroups>unstable</excludedGroups>
                 </configuration>
             </plugin>
diff --git a/server/apps/distributed-pop3-app/pom.xml b/server/apps/distributed-pop3-app/pom.xml
index ad2ec4df8b..e0401e4fe4 100644
--- a/server/apps/distributed-pop3-app/pom.xml
+++ b/server/apps/distributed-pop3-app/pom.xml
@@ -468,8 +468,8 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms512m -Xmx2048m</argLine>
                     <reuseForks>true</reuseForks>
-                    <!-- Fail tests longer than 20 minutes, prevent form random locking tests -->
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <!-- Fail tests longer than 30 minutes, prevent form random locking tests -->
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                     <excludedGroups>unstable</excludedGroups>
                 </configuration>
             </plugin>
diff --git a/server/blob/blob-file/pom.xml b/server/blob/blob-file/pom.xml
index c5dcb1caff..6a4313f685 100644
--- a/server/blob/blob-file/pom.xml
+++ b/server/blob/blob-file/pom.xml
@@ -109,7 +109,7 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms1024m -Xmx2048m</argLine>
                     <reuseForks>true</reuseForks>
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                 </configuration>
             </plugin>
         </plugins>
diff --git a/server/blob/blob-memory/pom.xml b/server/blob/blob-memory/pom.xml
index 5ca4e8c143..b473c82376 100644
--- a/server/blob/blob-memory/pom.xml
+++ b/server/blob/blob-memory/pom.xml
@@ -101,7 +101,7 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms1024m -Xmx2048m</argLine>
                     <reuseForks>true</reuseForks>
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                 </configuration>
             </plugin>
         </plugins>
diff --git a/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/pom.xml b/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/pom.xml
index ae6c722b8c..f030ba3b57 100644
--- a/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/pom.xml
+++ b/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/pom.xml
@@ -136,8 +136,8 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms512m -Xmx2048m</argLine>
                     <reuseForks>true</reuseForks>
-                    <!-- Fail tests longer than 20 minutes, prevent form random locking tests -->
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <!-- Fail tests longer than 30 minutes, prevent form random locking tests -->
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                     <!-- Junit 5 move from Category to Tag, and it need tag's name as parameter -->
                     <groups combine.self="override">BasicFeature</groups>
                     <excludedGroups>unstable</excludedGroups>
diff --git a/server/protocols/protocols-imap4/pom.xml b/server/protocols/protocols-imap4/pom.xml
index 4c3b829372..734b0457d2 100644
--- a/server/protocols/protocols-imap4/pom.xml
+++ b/server/protocols/protocols-imap4/pom.xml
@@ -190,8 +190,8 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms512m -Xmx1024m</argLine>
                     <reuseForks>true</reuseForks>
-                    <!-- Fail tests longer than 20 minutes, prevent form random locking tests -->
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <!-- Fail tests longer than 30 minutes, prevent form random locking tests -->
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                     <excludedGroups>unstable</excludedGroups>
                 </configuration>
             </plugin>
diff --git a/server/protocols/protocols-lmtp/pom.xml b/server/protocols/protocols-lmtp/pom.xml
index 589becb90e..0b0c99497e 100644
--- a/server/protocols/protocols-lmtp/pom.xml
+++ b/server/protocols/protocols-lmtp/pom.xml
@@ -197,8 +197,8 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms512m -Xmx1024m</argLine>
                     <reuseForks>true</reuseForks>
-                    <!-- Fail tests longer than 20 minutes, prevent form random locking tests -->
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <!-- Fail tests longer than 30 minutes, prevent form random locking tests -->
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                     <excludedGroups>unstable</excludedGroups>
                 </configuration>
             </plugin>
diff --git a/server/protocols/protocols-pop3/pom.xml b/server/protocols/protocols-pop3/pom.xml
index dd160d448d..fce154e37a 100644
--- a/server/protocols/protocols-pop3/pom.xml
+++ b/server/protocols/protocols-pop3/pom.xml
@@ -186,8 +186,8 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms512m -Xmx1024m</argLine>
                     <reuseForks>true</reuseForks>
-                    <!-- Fail tests longer than 20 minutes, prevent form random locking tests -->
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <!-- Fail tests longer than 30 minutes, prevent form random locking tests -->
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                     <excludedGroups>unstable</excludedGroups>
                 </configuration>
             </plugin>
diff --git a/server/protocols/protocols-smtp/pom.xml b/server/protocols/protocols-smtp/pom.xml
index d73870f423..b91242fbf6 100644
--- a/server/protocols/protocols-smtp/pom.xml
+++ b/server/protocols/protocols-smtp/pom.xml
@@ -228,8 +228,8 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms512m -Xmx1024m</argLine>
                     <reuseForks>true</reuseForks>
-                    <!-- Fail tests longer than 20 minutes, prevent form random locking tests -->
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <!-- Fail tests longer than 30 minutes, prevent form random locking tests -->
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                     <excludedGroups>unstable</excludedGroups>
                 </configuration>
             </plugin>
diff --git a/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/pom.xml b/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/pom.xml
index 16259ef9c3..e2f36b1d57 100644
--- a/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/pom.xml
+++ b/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/pom.xml
@@ -101,8 +101,8 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms1024m -Xmx4096m</argLine>
                     <reuseForks>true</reuseForks>
-                    <!-- Fail tests longer than 20 minutes, prevent form random locking tests -->
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <!-- Fail tests longer than 30 minutes, prevent form random locking tests -->
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                     <!-- Junit 5 move from Category to Tag, and it needs tag's name as parameter -->
                     <groups combine.self="override">BasicFeature</groups>
                     <excludedGroups>unstable</excludedGroups>
diff --git a/server/protocols/webadmin-integration-test/memory-webadmin-integration-test/pom.xml b/server/protocols/webadmin-integration-test/memory-webadmin-integration-test/pom.xml
index 08d885337b..2ede222169 100644
--- a/server/protocols/webadmin-integration-test/memory-webadmin-integration-test/pom.xml
+++ b/server/protocols/webadmin-integration-test/memory-webadmin-integration-test/pom.xml
@@ -61,7 +61,7 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms512m -Xmx2048m</argLine>
                     <reuseForks>true</reuseForks>
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                     <forkCount>4</forkCount>
                 </configuration>
             </plugin>
diff --git a/server/protocols/webadmin/webadmin-mailbox/pom.xml b/server/protocols/webadmin/webadmin-mailbox/pom.xml
index 6a43d8197c..08c8c94bde 100644
--- a/server/protocols/webadmin/webadmin-mailbox/pom.xml
+++ b/server/protocols/webadmin/webadmin-mailbox/pom.xml
@@ -248,8 +248,8 @@
                         -javaagent:"${settings.localRepository}"/org/jacoco/org.jacoco.agent/${jacoco-maven-plugin.version}/org.jacoco.agent-${jacoco-maven-plugin.version}-runtime.jar=destfile=${basedir}/target/jacoco.exec
                         -Xms512m -Xmx2048m</argLine>
                     <reuseForks>true</reuseForks>
-                    <!-- Fail tests longer than 20 minutes, prevent form random locking tests -->
-                    <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds>
+                    <!-- Fail tests longer than 30 minutes, prevent form random locking tests -->
+                    <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
                     <excludedGroups>unstable</excludedGroups>
                 </configuration>
             </plugin>


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


(james-project) 02/03: [Build] Increase latency to 2s with dates checks in MailImplTest

Posted by rc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 817e4f5c3924e7c0e401d1c3a07813e0b26ff391
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Tue Nov 7 16:57:55 2023 +0700

    [Build] Increase latency to 2s with dates checks in MailImplTest
---
 .../src/test/java/org/apache/james/server/core/MailImplTest.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/container/core/src/test/java/org/apache/james/server/core/MailImplTest.java b/server/container/core/src/test/java/org/apache/james/server/core/MailImplTest.java
index cca06ce2f0..e545c82a55 100644
--- a/server/container/core/src/test/java/org/apache/james/server/core/MailImplTest.java
+++ b/server/container/core/src/test/java/org/apache/james/server/core/MailImplTest.java
@@ -74,7 +74,7 @@ public class MailImplTest extends ContractMailTest {
         assertThat(mail.getName()).isEqualTo("mail-id");
         assertThat(mail.hasAttributes()).describedAs("no initial attributes").isFalse();
         assertThat(mail.getErrorMessage()).describedAs("no initial error").isNull();
-        assertThat(mail.getLastUpdated()).isCloseTo(new Date(), TimeUnit.SECONDS.toMillis(1));
+        assertThat(mail.getLastUpdated()).isCloseTo(new Date(), TimeUnit.SECONDS.toMillis(2));
         assertThat(mail.getRecipients()).describedAs("no initial recipient").isNullOrEmpty();
         assertThat(mail.getRemoteAddr()).describedAs("initial remote address is localhost ip").isEqualTo("127.0.0.1");
         assertThat(mail.getRemoteHost()).describedAs("initial remote host is localhost").isEqualTo("localhost");
@@ -102,7 +102,7 @@ public class MailImplTest extends ContractMailTest {
             .usingRecursiveComparison()
             .ignoringFields("sender", "name", "recipients", "lastUpdated")
             .isEqualTo(expected);
-        assertThat(mail.getLastUpdated()).isCloseTo(new Date(), TimeUnit.SECONDS.toMillis(1));
+        assertThat(mail.getLastUpdated()).isCloseTo(new Date(), TimeUnit.SECONDS.toMillis(2));
     }
 
     @Test
@@ -139,7 +139,7 @@ public class MailImplTest extends ContractMailTest {
             .usingRecursiveComparison()
             .ignoringFields("message", "lastUpdated")
             .isEqualTo(expected);
-        assertThat(mail.getLastUpdated()).isCloseTo(new Date(), TimeUnit.SECONDS.toMillis(1));
+        assertThat(mail.getLastUpdated()).isCloseTo(new Date(), TimeUnit.SECONDS.toMillis(2));
     }
 
     @Test


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


(james-project) 03/03: [Build] Increase delay to 1s instead of 500ms in CachedBlobStoreTest

Posted by rc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit a1bea0d06e85ff0f34714ed2c5e2778c4f4ae8d9
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Wed Nov 8 13:44:12 2023 +0700

    [Build] Increase delay to 1s instead of 500ms in CachedBlobStoreTest
---
 .../org/apache/james/blob/cassandra/cache/CachedBlobStoreTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/blob/blob-cassandra/src/test/java/org/apache/james/blob/cassandra/cache/CachedBlobStoreTest.java b/server/blob/blob-cassandra/src/test/java/org/apache/james/blob/cassandra/cache/CachedBlobStoreTest.java
index d4ced32241..31f70a7cf7 100644
--- a/server/blob/blob-cassandra/src/test/java/org/apache/james/blob/cassandra/cache/CachedBlobStoreTest.java
+++ b/server/blob/blob-cassandra/src/test/java/org/apache/james/blob/cassandra/cache/CachedBlobStoreTest.java
@@ -544,7 +544,7 @@ public class CachedBlobStoreTest implements BlobStoreContract {
         void readBytesShouldRecordDistinctTimingsWhenRepeatAndBackendRead() {
             BlobId blobId = Mono.from(testee.save(DEFAULT_BUCKETNAME, ELEVEN_KILOBYTES, SIZE_BASED)).block();
 
-            Duration delay = Duration.ofMillis(500);
+            Duration delay = Duration.ofMillis(1000);
             Mono.from(testee.readBytes(DEFAULT_BUCKETNAME, blobId, HIGH_PERFORMANCE))
                 .then(Mono.delay(delay))
                 .repeat(2)
@@ -559,7 +559,7 @@ public class CachedBlobStoreTest implements BlobStoreContract {
         void readBytesShouldRecordDistinctTimingsWhenRepeat() {
             BlobId blobId = Mono.from(testee.save(DEFAULT_BUCKETNAME, APPROXIMATELY_FIVE_KILOBYTES, SIZE_BASED)).block();
 
-            Duration delay = Duration.ofMillis(500);
+            Duration delay = Duration.ofMillis(1000);
             Mono.from(testee.readBytes(DEFAULT_BUCKETNAME, blobId, HIGH_PERFORMANCE))
                 .then(Mono.delay(delay))
                 .repeat(2)


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org