cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefa...@apache.org
Subject [2/6] cassandra git commit: Ignore large IndexSummaryTest tests on Circle CI
Date Wed, 13 Sep 2017 08:50:49 GMT
Ignore large IndexSummaryTest tests on Circle CI

patch by Stefania Alborghetti; reviewed by marcuse for CASSANDRA-12014 (follow up)


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/9882cd82
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/9882cd82
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/9882cd82

Branch: refs/heads/cassandra-3.11
Commit: 9882cd825ff95c88264c78dfcdc481aad6fc3522
Parents: a08a816
Author: Stefania Alborghetti <stefania.alborghetti@datastax.com>
Authored: Wed Sep 13 10:23:48 2017 +0800
Committer: Stefania Alborghetti <stefania.alborghetti@datastax.com>
Committed: Wed Sep 13 16:44:26 2017 +0800

----------------------------------------------------------------------
 .../apache/cassandra/io/sstable/IndexSummaryTest.java | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/9882cd82/test/unit/org/apache/cassandra/io/sstable/IndexSummaryTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/io/sstable/IndexSummaryTest.java b/test/unit/org/apache/cassandra/io/sstable/IndexSummaryTest.java
index ad08ba0..6f37d8f 100644
--- a/test/unit/org/apache/cassandra/io/sstable/IndexSummaryTest.java
+++ b/test/unit/org/apache/cassandra/io/sstable/IndexSummaryTest.java
@@ -26,6 +26,7 @@ import java.util.*;
 import com.google.common.collect.Lists;
 import org.junit.BeforeClass;
 import org.junit.Test;
+import org.junit.Assume;
 
 import org.apache.cassandra.Util;
 import org.apache.cassandra.db.*;
@@ -58,6 +59,9 @@ public class IndexSummaryTest
     @Test
     public void testIndexSummaryKeySizes() throws IOException
     {
+        // On Circle CI we normally don't have enough off-heap memory for this test so ignore
it
+        Assume.assumeTrue(System.getenv("CIRCLECI") == null);
+
         testIndexSummaryProperties(32, 100);
         testIndexSummaryProperties(64, 100);
         testIndexSummaryProperties(100, 100);
@@ -100,8 +104,11 @@ public class IndexSummaryTest
      * create an index summary, albeit one that does not cover the entire sstable.
      */
     @Test
-    public void tesLargeIndexSummary() throws IOException
+    public void testLargeIndexSummary() throws IOException
     {
+        // On Circle CI we normally don't have enough off-heap memory for this test so ignore
it
+        Assume.assumeTrue(System.getenv("CIRCLECI") == null);
+
         final int numKeys = 1000000;
         final int keySize = 3000;
         final int minIndexInterval = 1;
@@ -131,8 +138,11 @@ public class IndexSummaryTest
      * the index summary should be downsampled automatically.
      */
     @Test
-    public void tesLargeIndexSummaryWithExpectedSizeMatching() throws IOException
+    public void testLargeIndexSummaryWithExpectedSizeMatching() throws IOException
     {
+        // On Circle CI we normally don't have enough off-heap memory for this test so ignore
it
+        Assume.assumeTrue(System.getenv("CIRCLECI") == null);
+
         final int numKeys = 1000000;
         final int keySize = 3000;
         final int minIndexInterval = 1;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message