Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e3e7872
[UPGRADE] - Maven org.codehaus.mojo:versions-maven-plugin:2.11.0 ->2.…
vttranlina Jul 17, 2023
566ba68
[UPGRADE] - Maven org.apache.maven:maven-plugin-api 3.8.5 -> 3.9.3
vttranlina Jul 17, 2023
3f8e7c5
[UPGRADE] - Maven org.apache.maven.wagon:wagon-ssh 3.5.2 -> 3.5.3
vttranlina Jul 17, 2023
3e006a9
[UPGRADE] - Maven com.puppycrawl.tools:checkstyle 10.3.4 -> 10.12.1
vttranlina Jul 17, 2023
dfb5a91
[UPGRADE] - Maven org.apache.maven.doxia:doxia-module-markdown 1.9.1 …
vttranlina Jul 17, 2023
84b4430
[UPGRADE] - Maven org.apache.maven.reporting:maven-reporting-api 3.0 …
vttranlina Jul 17, 2023
4962753
[UPGRADE] - Maven org.apache.maven.plugin-tools:maven-plugin-annotati…
vttranlina Jul 17, 2023
f4088c5
[UPGRADE] - Maven surefire plugin/ surefire report plugin: 2.22.2 -> …
vttranlina Jul 10, 2023
95111ee
Maven - Execute build surefire report after test
vttranlina Jul 10, 2023
97f6937
[UPGRADE] - Maven com.github.ekryd.sortpom:sortpom-maven-plugin 3.1.2…
vttranlina Jul 19, 2023
0bb778b
[UPGRADE] - Maven jib-maven-plugin 3.2.1 -> 3.3.2
vttranlina Jul 19, 2023
d7ad395
[UPGRADE] - Maven org.scalatest:scalatest-maven-plugin 2.0.2 -> 2.2.0
vttranlina Jul 19, 2023
8ae6e86
[UPGRADE] - Maven org.apache.maven.plugins:maven-assembly-plugin 3.1.…
vttranlina Jul 19, 2023
78f5fbb
[UPGRADE] - Maven maven-checkstyle-plugin 3.1.2 -> 3.3.0
vttranlina Jul 19, 2023
a0a4ecb
[UPGRADE] - Maven maven-compiler-plugin 3.8.1 -> 3.11.0
vttranlina Jul 19, 2023
e5fe4dd
[UPGRADE] - Maven maven-jar-plugin 3.2.2 -> 3.3.0
vttranlina Jul 19, 2023
ba76de8
[UPGRADE] - Maven - pl.project13.maven:git-commit-id-plugin 4.9.10 ->…
vttranlina Jul 19, 2023
c22189d
[UPGRADE] - Maven - org.apache.maven.plugins:maven-jxr-plugin 3.2.0 -…
vttranlina Jul 19, 2023
abf6a1a
[CLEAN CODE] - Maven - Remove maven-surefire-plugin version tag in ch…
vttranlina Jul 21, 2023
441ca35
Jenkinsfile - echo maven version, java version
vttranlina Jul 26, 2023
166a80c
Fix JMAP draft test - increase Duration of time waiting to start Jame…
vttranlina Jul 26, 2023
846a299
Disable the update flag concurrency test cases in CassandraMessageMap…
vttranlina Jul 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ pipeline {
steps {
echo 'Building branch ' + env.BRANCH_NAME
echo 'Using PATH ' + env.PATH
sh 'mvn -version'
sh 'java -version'
}
}

Expand Down
2 changes: 1 addition & 1 deletion examples/custom-james-assembly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ We do provide in this example [JIB](https://github.com/GoogleContainerTools/jib/
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>2.7.1</version>
<version>3.3.2</version>
<configuration>
<from>
<image>adoptopenjdk:11-jdk-hotspot</image>
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-james-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>2.7.1</version>
<version>3.3.2</version>
<configuration>
<from>
<image>eclipse-temurin:11-jre-jammy</image>
Expand Down
10 changes: 10 additions & 0 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<executions>
<execution>
<id>get-the-git-infos</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@

import org.apache.james.backends.cassandra.CassandraClusterExtension;
import org.apache.james.backends.cassandra.init.configuration.CassandraConfiguration;
import org.apache.james.junit.categories.Unstable;
import org.apache.james.mailbox.store.mail.model.MapperProvider;
import org.apache.james.mailbox.store.mail.model.MessageMapperTest;
import org.apache.james.utils.UpdatableTickingClock;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.extension.RegisterExtension;

class CassandraMessageMapperRelaxedConsistencyTest {
Expand All @@ -51,6 +53,18 @@ protected MapperProvider createMapperProvider() {
protected UpdatableTickingClock updatableTickingClock() {
return cassandraMapperProvider.getUpdatableTickingClock();
}

@Tag(Unstable.TAG)
@Override
public void setFlagsShouldWorkWithConcurrencyWithRemove() throws Exception {
super.setFlagsShouldWorkWithConcurrencyWithRemove();
}

@Tag(Unstable.TAG)
@Override
public void userFlagsUpdateShouldWorkInConcurrentEnvironment() throws Exception {
super.userFlagsUpdateShouldWorkInConcurrentEnvironment();
}
}

@Nested
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.apache.james.backends.cassandra.StatementRecorder.Selector;
import org.apache.james.backends.cassandra.init.configuration.CassandraConfiguration;
import org.apache.james.blob.api.HashBlobId;
import org.apache.james.junit.categories.Unstable;
import org.apache.james.mailbox.MessageManager;
import org.apache.james.mailbox.cassandra.ids.CassandraId;
import org.apache.james.mailbox.cassandra.ids.CassandraMessageId;
Expand All @@ -65,6 +66,7 @@
import org.assertj.core.api.SoftAssertions;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

Expand Down Expand Up @@ -458,4 +460,16 @@ void messagesRetrievedUsingFetchTypeAttachmentsMetadataShouldHaveAttachmentsMeta

assertThat(retrievedMessage.getAttachments()).isEqualTo(message.getAttachments());
}

@Tag(Unstable.TAG)
@Override
public void setFlagsShouldWorkWithConcurrencyWithRemove() throws Exception {
super.setFlagsShouldWorkWithConcurrencyWithRemove();
}

@Tag(Unstable.TAG)
@Override
public void userFlagsUpdateShouldWorkInConcurrentEnvironment() throws Exception {
super.userFlagsUpdateShouldWorkInConcurrentEnvironment();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,8 @@ public void userFlagsUpdateShouldWorkInConcurrentEnvironment() throws Exception

saveMessages();

int threadCount = 2;
int updateCount = 10;
int threadCount = 8;
int updateCount = 40;
ConcurrentTestRunner.builder()
.operation((threadNumber, step) -> messageMapper.updateFlags(benwaInboxMailbox, message1.getUid(),
new FlagsUpdateCalculator(new Flags("custom-" + threadNumber + "-" + step), FlagsUpdateMode.ADD)))
Expand All @@ -939,8 +939,8 @@ public void setFlagsShouldWorkWithConcurrencyWithRemove() throws Exception {
Assume.assumeTrue(mapperProvider.getSupportedCapabilities().contains(MapperProvider.Capabilities.THREAD_SAFE_FLAGS_UPDATE));
saveMessages();

int threadCount = 4;
int updateCount = 20;
int threadCount = 8;
int updateCount = 40;
ConcurrentTestRunner.builder()
.operation((threadNumber, step) -> {
if (step < updateCount / 2) {
Expand Down
66 changes: 38 additions & 28 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,10 @@
<apache.httpcomponents.version>4.5.13</apache.httpcomponents.version>
<!-- maven-mailetdocs-plugin artifacts -->
<maven-artifact.version>3.0-alpha-1</maven-artifact.version>
<maven-plugin-annotations.version>3.6.4</maven-plugin-annotations.version>
<maven-plugin-api.version>3.8.5</maven-plugin-api.version>
<maven-plugin-annotations.version>3.9.0</maven-plugin-annotations.version>
<maven-plugin-api.version>3.9.3</maven-plugin-api.version>
<maven-reporting-impl.version>3.1.0</maven-reporting-impl.version>
<maven-reporting-api.version>3.0</maven-reporting-api.version>
<maven-reporting-api.version>3.1.1</maven-reporting-api.version>
<qdox.version>2.0.3</qdox.version>
<javax.activation.groupId>javax.activation</javax.activation.groupId>
<javax.activation.artifactId>activation</javax.activation.artifactId>
Expand Down Expand Up @@ -2957,7 +2957,7 @@
<plugin>
<groupId>com.github.ekryd.sortpom</groupId>
<artifactId>sortpom-maven-plugin</artifactId>
<version>3.1.2</version>
<version>3.2.1</version>
<configuration>
<createBackupFile>false</createBackupFile>
<expandEmptyElements>false</expandEmptyElements>
Expand Down Expand Up @@ -2999,7 +2999,7 @@
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>3.2.1</version>
<version>3.3.2</version>
</plugin>
<plugin>
<groupId>io.github.evis</groupId>
Expand Down Expand Up @@ -3034,7 +3034,7 @@
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
<version>2.0.2</version>
<version>2.2.0</version>
<configuration>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<junitxml>.</junitxml>
Expand Down Expand Up @@ -3105,7 +3105,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.1</version>
<version>3.6.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -3121,7 +3121,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.2</version>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -3131,7 +3131,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.11.0</version>
<configuration>
<optimize>true</optimize>
<source>${target.jdk}</source>
Expand Down Expand Up @@ -3199,7 +3199,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -3237,10 +3237,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<aggregate>true</aggregate>
</configuration>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -3308,7 +3305,7 @@
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>3.5.2</version>
<version>3.5.3</version>
</dependency>
</dependencies>
<executions>
Expand All @@ -3323,7 +3320,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>3.1.2</version>
<configuration>
<systemPropertyVariables>
<!--https://issues.apache.org/jira/browse/JAMES-3724-->
Expand All @@ -3342,7 +3339,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.22.2</version>
<version>3.1.2</version>
<configuration>
<aggregate>true</aggregate>
</configuration>
Expand Down Expand Up @@ -3417,7 +3414,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.11.0</version>
<version>2.16.0</version>
</plugin>
<plugin>
<groupId>org.eclipse.m2e</groupId>
Expand Down Expand Up @@ -3493,9 +3490,9 @@
</configuration>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>4.9.10</version>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>6.0.0</version>
</plugin>
</plugins>
</pluginManagement>
Expand Down Expand Up @@ -3600,7 +3597,7 @@
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-markdown</artifactId>
<version>1.9.1</version>
<version>1.12.0</version>
</dependency>
</dependencies>
</plugin>
Expand All @@ -3618,7 +3615,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.3.4</version>
<version>10.12.1</version>
</dependency>
</dependencies>
<executions>
Expand All @@ -3632,8 +3629,8 @@
</executions>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<configuration>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
<prefix>git</prefix>
Expand Down Expand Up @@ -3665,6 +3662,19 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<executions>
<execution>
<id>build-surefire-report</id>
<goals>
<goal>report-only</goal>
</goals>
<phase>post-integration-test</phase>
</execution>
</executions>
</plugin>
</plugins>
<extensions>
<extension>
Expand Down Expand Up @@ -3783,7 +3793,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>3.1.2</version>
<configuration>
<excludedGroups />
<groups>unstable</groups>
Expand Down Expand Up @@ -3971,8 +3981,8 @@
</plugin>

<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<executions>
<execution>
<id>get-the-git-infos</id>
Expand Down
1 change: 0 additions & 1 deletion server/mailet/mock-smtp-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>2.7.0</version>
<configuration>
<from>
<image>eclipse-temurin:11-jre-jammy</image>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<excludedGroups />
<groups combine.self="override">org.apache.james.junit.categories.Unstable</groups>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<excludedGroups />
<groups>unstable</groups>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<excludedGroups />
<groups>unstable</groups>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import java.io.IOException;
import java.net.URISyntaxException;
import java.time.Duration;

import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.fluent.Request;
Expand All @@ -37,7 +38,9 @@
public class HttpJmapAuthentication {

public static AccessToken authenticateJamesUser(URIBuilder uriBuilder, Username username, String password) {
return calmlyAwait.until(
return calmlyAwait
.atMost(Duration.ofMinutes(2))
.until(
() -> doAuthenticate(uriBuilder, username, password), IsAnything.anything());
}

Expand Down