Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions .mvn/serial-tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# FIX-292: exceptions supported by observed local and platform CI failures.
# BlockingEventLoopShutdownTest: local reverse-order shutdown warning.
# Timing assertions failed on both Zing JDKs; retain their original assertions and timings in serial/fresh execution.
# TeamCity builds: 1365949, 1365950
net/openhft/chronicle/threads/BlockingEventLoopShutdownTest.java
net/openhft/chronicle/threads/LongPauserTest.java
net/openhft/chronicle/threads/YieldingPauserTest.java
94 changes: 92 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
<properties>
<jacoco.line.coverage>0.7</jacoco.line.coverage>
<jacoco.branch.coverage>0.6</jacoco.branch.coverage>
<chronicle.test.forkCount>8</chronicle.test.forkCount>
<chronicle.test.reuseForks>true</chronicle.test.reuseForks>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -167,8 +169,8 @@
<configuration>
<!-- Keep failures visible even when CI requests retries on the command line. -->
<rerunFailingTestsCount>0</rerunFailingTestsCount>
<forkCount>4</forkCount>
<reuseForks>true</reuseForks>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<runOrder>hourly</runOrder>
</configuration>
</plugin>
Expand Down Expand Up @@ -237,6 +239,28 @@
</plugin>

</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>none</phase>
</execution>
<!-- The package lifecycle has already generated sources; avoid repeating its earlier phases. -->
<execution>
<id>attach-sources-no-fork</id>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
Expand All @@ -255,6 +279,72 @@
</plugins>
</build>
</profile>
<profile>
<!-- Use -T1: forkCount is a limit per execution, not across reactor modules. -->
<id>chronicle-eight-default</id>
<activation>
<property>
<name>!test</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<configuration>
<forkCount>${chronicle.test.forkCount}</forkCount>
<reuseForks>${chronicle.test.reuseForks}</reuseForks>
<excludes>
<exclude>**/*$*</exclude>
</excludes>
<excludesFile>${project.basedir}/.mvn/serial-tests.txt</excludesFile>
</configuration>
</execution>
<execution>
<id>serial-tests</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<!-- An empty list must select nothing, not Surefire's defaults. -->
<includes combine.self="override">
<include>%regex[^$]</include>
</includes>
<includesFile>${project.basedir}/.mvn/serial-tests.txt</includesFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>test-serial</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<configuration>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<scm>
Expand Down