Skip to content

Commit 63f9458

Browse files
authored
Isolated execution of MapperFootprintTest (#3678)
1 parent 68ab854 commit 63f9458

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

pom.xml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,37 @@
181181
<groupId>org.apache.maven.plugins</groupId>
182182
<version>${version.plugin.surefire}</version>
183183
<artifactId>maven-surefire-plugin</artifactId>
184+
<executions>
185+
<execution>
186+
<id>default-test</id>
187+
<goals>
188+
<goal>test</goal>
189+
</goals>
190+
<phase>test</phase>
191+
<configuration>
192+
<excludes>
193+
<exclude>com.fasterxml.jackson.databind.MapperFootprintTest</exclude>
194+
<exclude>**/failing/**/*.java</exclude>
195+
</excludes>
196+
</configuration>
197+
</execution>
198+
<execution>
199+
<id>footprint-test</id>
200+
<goals>
201+
<goal>test</goal>
202+
</goals>
203+
<phase>test</phase>
204+
<configuration>
205+
<includes>
206+
<include>com.fasterxml.jackson.databind.MapperFootprintTest</include>
207+
</includes>
208+
</configuration>
209+
</execution>
210+
</executions>
184211
<configuration>
185212
<classpathDependencyExcludes>
186213
<exclude>javax.measure:jsr-275</exclude>
187214
</classpathDependencyExcludes>
188-
<excludes>
189-
<exclude>**/failing/**/*.java</exclude>
190-
</excludes>
191215
<!-- 26-Nov-2019, tatu: moar parallelism! Per-class basis, safe, efficient enough
192216
... although not 100% sure this makes much difference TBH
193217
-->

src/test/java/com/fasterxml/jackson/databind/MapperFootprintTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
import com.google.common.testing.GcFinalization;
44
import org.junit.Assert;
5-
import org.junit.Ignore;
65
import org.junit.Test;
76
import org.openjdk.jol.info.GraphLayout;
87

98
public class MapperFootprintTest {
9+
/*
10+
* Note: this class is run in an isolated execution in surefire. The test is too flaky with all the other tests
11+
* running in the same JVM.
12+
*/
13+
1014
@Test
11-
@Ignore
1215
public void testMapperFootprint() throws InterruptedException {
1316
// memory footprint limit for the ObjectMapper
1417

0 commit comments

Comments
 (0)