Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4ED7E200CF3 for ; Wed, 13 Sep 2017 10:50:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4D9331609C9; Wed, 13 Sep 2017 08:50:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 91CF21609CA for ; Wed, 13 Sep 2017 10:50:50 +0200 (CEST) Received: (qmail 98591 invoked by uid 500); 13 Sep 2017 08:50:49 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 98243 invoked by uid 99); 13 Sep 2017 08:50:49 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2017 08:50:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3698FF57D4; Wed, 13 Sep 2017 08:50:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: stefania@apache.org To: commits@cassandra.apache.org Date: Wed, 13 Sep 2017 08:50:50 -0000 Message-Id: In-Reply-To: <6393920d09314c81bd1d40a8493742c6@git.apache.org> References: <6393920d09314c81bd1d40a8493742c6@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/6] cassandra git commit: Ignore large IndexSummaryTest tests on Circle CI archived-at: Wed, 13 Sep 2017 08:50:51 -0000 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/trunk Commit: 9882cd825ff95c88264c78dfcdc481aad6fc3522 Parents: a08a816 Author: Stefania Alborghetti Authored: Wed Sep 13 10:23:48 2017 +0800 Committer: Stefania Alborghetti 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