Skip to content

Commit ab5a2ce

Browse files
jderegclaude
andcommitted
Gate flaky performance-threshold tests behind performRelease
testAtomicTypesPerformance (100ms threshold) and testSetVsListInsertionPerformance (10x ratio threshold) fail on slower CI hardware. Gate them with @EnabledIfSystemProperty(performRelease) like other performance benchmarks so they run during release builds on known hardware but not on CI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a28b59b commit ab5a2ce

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/test/java/com/cedarsoftware/util/MultiKeyMapAtomicTypesTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ void testAtomicTypeBasedEqualityWhenDisabled() {
210210
}
211211

212212
@Test
213+
@org.junit.jupiter.api.condition.EnabledIfSystemProperty(named = "performRelease", matches = "true")
213214
void testAtomicTypesPerformance() {
214215
MultiKeyMap<String> map = MultiKeyMap.<String>builder().valueBasedEquality(true).build();
215216

src/test/java/com/cedarsoftware/util/MultiKeyMapSetPerformanceTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
class MultiKeyMapSetPerformanceTest {
4040

4141
@Test
42+
@org.junit.jupiter.api.condition.EnabledIfSystemProperty(named = "performRelease", matches = "true")
4243
void testSetVsListInsertionPerformance() {
4344
MultiKeyMap<String> map = new MultiKeyMap<>();
4445
int iterations = 10000;

0 commit comments

Comments
 (0)