You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2024/06/19 11:06:41 UTC
(logging-log4j2) branch fix/main/parallel-tests created (now 758a97b020)
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a change to branch fix/main/parallel-tests
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
at 758a97b020 Switch to parallel testing by default
This branch includes the following new commits:
new 758a97b020 Switch to parallel testing by default
The 1 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.
(logging-log4j2) 01/01: Switch to parallel testing by default
Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch fix/main/parallel-tests
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 758a97b0205a5f1286553cbcc6f3ec4035e2f8db
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Wed Jun 19 13:06:34 2024 +0200
Switch to parallel testing by default
Since `main` tests were more fragile, we kept the tests in `main` to run sequentially, while those in `2.x` run in parallel.
This PR switches `main` testing back to parallel mode (1 test per JVM).
---
log4j-parent/pom.xml | 31 +------------------------------
pom.xml | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 30 deletions(-)
diff --git a/log4j-parent/pom.xml b/log4j-parent/pom.xml
index 2c3961b316..9bc102fb72 100644
--- a/log4j-parent/pom.xml
+++ b/log4j-parent/pom.xml
@@ -995,40 +995,12 @@
</executions>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <forkCount>1</forkCount>
- <reuseForks>false</reuseForks>
- <runOrder>alphabetical</runOrder>
- <systemPropertyVariables>
- <java.awt.headless>true</java.awt.headless>
- </systemPropertyVariables>
- </configuration>
- </plugin>
-
</plugins>
-
</build>
<profiles>
- <profile>
- <id>parallel-tests</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <forkCount>1C</forkCount>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
-
+ <!-- `plugin-processing` profile containing configuration specific to `@Plugin`-annotated members -->
<profile>
<id>plugin-processing</id>
@@ -1112,7 +1084,6 @@
]]></source>
</configuration>
</execution>
-
</executions>
</plugin>
diff --git a/pom.xml b/pom.xml
index 98d77310d4..01b864727d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -924,6 +924,22 @@
</build>
<profiles>
+
+ <profile>
+ <id>sequential-tests</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <forkCount>1</forkCount>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
<profile>
<id>rewrite</id>