Skip to content

Commit

Permalink
Build ITs in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Jun 15, 2024
1 parent 383ba39 commit 94affba
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 20 deletions.
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@
<modelloNamespaceReportVersion>2.0.0</modelloNamespaceReportVersion>
<byteBuddyVersion>1.14.17</byteBuddyVersion>
<scmpublish.content>${project.build.directory}/staging/versions</scmpublish.content>
<!-- execute ITS in parallel by default -->
<invoker.parallelThreads>0.75C</invoker.parallelThreads>
<!-- mono-module doesn't require site:stage for scm-publish -->
<project.build.outputTimestamp>2023-11-17T00:00:27Z</project.build.outputTimestamp>
</properties>
Expand Down Expand Up @@ -393,4 +395,19 @@
</plugin>
</plugins>
</reporting>

<profiles>
<profile>
<id>windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<!-- on windows there are some issues with parallel build -->
<invoker.parallelThreads>1</invoker.parallelThreads>
</properties>
</profile>
</profiles>
</project>
6 changes: 0 additions & 6 deletions versions-enforcer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@
<settingsFile>src/it/settings.xml</settingsFile>
<showErrors>true</showErrors>
<streamLogs>true</streamLogs>
<!--
! There seemed to be a problem with the indepance of the IT's
! here. So we can't use more than one thread.
! TODO: Dive more deeply into this problem.
-->
<parallelThreads>1</parallelThreads>
<pomIncludes>
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
Expand Down
4 changes: 0 additions & 4 deletions versions-enforcer/src/it/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
<releases>
<enabled>true</enabled>
<checksumPolicy>ignore</checksumPolicy>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<checksumPolicy>ignore</checksumPolicy>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
Expand All @@ -37,12 +35,10 @@
<releases>
<enabled>true</enabled>
<checksumPolicy>ignore</checksumPolicy>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<checksumPolicy>ignore</checksumPolicy>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
Expand Down
6 changes: 0 additions & 6 deletions versions-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,6 @@
<settingsFile>src/it/settings.xml</settingsFile>
<showErrors>true</showErrors>
<streamLogs>true</streamLogs>
<!--
! There seemed to be a problem with the indepance of the IT's
! here. So we can't use more than one thread.
! TODO: Dive more deeply into this problem.
-->
<parallelThreads>1</parallelThreads>
<pomIncludes>
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
Expand Down
4 changes: 0 additions & 4 deletions versions-maven-plugin/src/it/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
<releases>
<enabled>true</enabled>
<checksumPolicy>ignore</checksumPolicy>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<checksumPolicy>ignore</checksumPolicy>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
Expand All @@ -37,12 +35,10 @@
<releases>
<enabled>true</enabled>
<checksumPolicy>ignore</checksumPolicy>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<checksumPolicy>ignore</checksumPolicy>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
Expand Down

0 comments on commit 94affba

Please sign in to comment.