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 442F1200C6C for ; Fri, 21 Apr 2017 02:40:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 27903160BB5; Fri, 21 Apr 2017 00:40:50 +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 4CDFA160BB0 for ; Fri, 21 Apr 2017 02:40:49 +0200 (CEST) Received: (qmail 29913 invoked by uid 500); 21 Apr 2017 00:40:48 -0000 Mailing-List: contact commits-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list commits@impala.incubator.apache.org Received: (qmail 29893 invoked by uid 99); 21 Apr 2017 00:40:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Apr 2017 00:40:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 249EEC701D for ; Fri, 21 Apr 2017 00:40:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.221 X-Spam-Level: X-Spam-Status: No, score=-4.221 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id u1QuAoefPAhr for ; Fri, 21 Apr 2017 00:40:46 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id BE8705FB40 for ; Fri, 21 Apr 2017 00:40:45 +0000 (UTC) Received: (qmail 29827 invoked by uid 99); 21 Apr 2017 00:40:45 -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; Fri, 21 Apr 2017 00:40:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DBF1BF4A25; Fri, 21 Apr 2017 00:40:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sailesh@apache.org To: commits@impala.incubator.apache.org Date: Fri, 21 Apr 2017 00:40:46 -0000 Message-Id: <84fe020045854828bdff7230cf3100de@git.apache.org> In-Reply-To: <5769302e57af48de9850b1d28c3574cb@git.apache.org> References: <5769302e57af48de9850b1d28c3574cb@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/6] incubator-impala git commit: IMPALA-5231: skip test_explain_level on non-HDFS systems archived-at: Fri, 21 Apr 2017 00:40:50 -0000 IMPALA-5231: skip test_explain_level on non-HDFS systems Some details of the plans change if we're not running against a 3-node minicluster. The point of these tests is to avoid unintended changes to the explain format, so we don't need to run it against all FSes. Change-Id: I604f83695e956ef6bc85b5d1bc754ccb1378eda1 Reviewed-on: http://gerrit.cloudera.org:8080/6703 Reviewed-by: Matthew Jacobs Tested-by: Impala Public Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/fb2a7856 Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/fb2a7856 Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/fb2a7856 Branch: refs/heads/master Commit: fb2a78567a2172a6778da6930aba4ed489d98d72 Parents: 692c6a5 Author: Tim Armstrong Authored: Thu Apr 20 09:16:41 2017 -0700 Committer: Impala Public Jenkins Committed: Thu Apr 20 22:50:52 2017 +0000 ---------------------------------------------------------------------- tests/common/skip.py | 6 ++++++ tests/metadata/test_explain.py | 14 +++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/fb2a7856/tests/common/skip.py ---------------------------------------------------------------------- diff --git a/tests/common/skip.py b/tests/common/skip.py index d477e5c..232eab5 100644 --- a/tests/common/skip.py +++ b/tests/common/skip.py @@ -28,6 +28,7 @@ from tests.common.environ import IMPALAD_BUILD, USING_OLD_AGGS_JOINS from tests.util.filesystem_utils import ( IS_ISILON, IS_LOCAL, + IS_HDFS, IS_S3, SECONDARY_FILESYSTEM) @@ -113,6 +114,11 @@ class SkipIfLocal: root_path = pytest.mark.skipif(IS_LOCAL, reason="Tests rely on the root directory") +class SkipIfNotHdfsMinicluster: + # These ones are skipped when not running against a local HDFS mini-cluster. + plans = pytest.mark.skipif(not IS_HDFS or pytest.config.option.testing_remote_cluster, + reason="Test assumes plans from local HDFS mini-cluster") + class SkipIfBuildType: not_dev_build = pytest.mark.skipif(not IMPALAD_BUILD.is_dev(), reason="Tests depends on debug build startup option.") http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/fb2a7856/tests/metadata/test_explain.py ---------------------------------------------------------------------- diff --git a/tests/metadata/test_explain.py b/tests/metadata/test_explain.py index 3975e38..1ee823f 100644 --- a/tests/metadata/test_explain.py +++ b/tests/metadata/test_explain.py @@ -21,7 +21,7 @@ import pytest import re from tests.common.impala_test_suite import ImpalaTestSuite -from tests.common.skip import SkipIfLocal +from tests.common.skip import SkipIfLocal, SkipIfNotHdfsMinicluster from tests.util.filesystem_utils import WAREHOUSE # Tests the different explain levels [0-3] on a few queries. @@ -46,29 +46,25 @@ class TestExplain(ImpalaTestSuite): v.get_value('exec_option')['disable_codegen'] == False and\ v.get_value('exec_option')['num_nodes'] != 1) - @pytest.mark.skip_if(pytest.config.option.testing_remote_cluster, - reason='Resource profile depends on number of nodes') + @SkipIfNotHdfsMinicluster.plans def test_explain_level0(self, vector): vector.get_value('exec_option')['num_scanner_threads'] = self.NUM_SCANNER_THREADS vector.get_value('exec_option')['explain_level'] = 0 self.run_test_case('QueryTest/explain-level0', vector) - @pytest.mark.skip_if(pytest.config.option.testing_remote_cluster, - reason='Resource profile depends on number of nodes') + @SkipIfNotHdfsMinicluster.plans def test_explain_level1(self, vector): vector.get_value('exec_option')['num_scanner_threads'] = self.NUM_SCANNER_THREADS vector.get_value('exec_option')['explain_level'] = 1 self.run_test_case('QueryTest/explain-level1', vector) - @pytest.mark.skip_if(pytest.config.option.testing_remote_cluster, - reason='Resource profile depends on number of nodes') + @SkipIfNotHdfsMinicluster.plans def test_explain_level2(self, vector): vector.get_value('exec_option')['num_scanner_threads'] = self.NUM_SCANNER_THREADS vector.get_value('exec_option')['explain_level'] = 2 self.run_test_case('QueryTest/explain-level2', vector) - @pytest.mark.skip_if(pytest.config.option.testing_remote_cluster, - reason='Resource profile depends on number of nodes') + @SkipIfNotHdfsMinicluster.plans def test_explain_level3(self, vector): vector.get_value('exec_option')['num_scanner_threads'] = self.NUM_SCANNER_THREADS vector.get_value('exec_option')['explain_level'] = 3