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 81FE0200B53 for ; Tue, 12 Jul 2016 09:58:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 80719160A6A; Tue, 12 Jul 2016 07:58: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 C70BF160A56 for ; Tue, 12 Jul 2016 09:58:50 +0200 (CEST) Received: (qmail 39075 invoked by uid 500); 12 Jul 2016 07:58:50 -0000 Mailing-List: contact dev-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list dev@hawq.incubator.apache.org Received: (qmail 39064 invoked by uid 99); 12 Jul 2016 07:58:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2016 07:58:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 48E9F1805EA for ; Tue, 12 Jul 2016 07:58:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.446 X-Spam-Level: X-Spam-Status: No, score=-3.446 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id qEONW9Xyefud for ; Tue, 12 Jul 2016 07:58:47 +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 29A245F4E5 for ; Tue, 12 Jul 2016 07:58:46 +0000 (UTC) Received: (qmail 38572 invoked by uid 99); 12 Jul 2016 07:58:40 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2016 07:58:40 +0000 Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 281941A0156 for ; Tue, 12 Jul 2016 07:58:40 +0000 (UTC) Received: by mail-io0-f177.google.com with SMTP id q83so9528127iod.1 for ; Tue, 12 Jul 2016 00:58:40 -0700 (PDT) X-Gm-Message-State: ALyK8tIS33t9D702sOkVVfQna46MlBpNzrhwWwSIIQWdIKQTkI00WyHUdCP3907/UkaaHARg1crloHNa9uwDdw== X-Received: by 10.107.185.67 with SMTP id j64mr1376671iof.32.1468310319484; Tue, 12 Jul 2016 00:58:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.16.233 with HTTP; Tue, 12 Jul 2016 00:58:38 -0700 (PDT) In-Reply-To: References: From: Lili Ma Date: Tue, 12 Jul 2016 15:58:38 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: sanity-check before running cases in feature-test To: dev@hawq.incubator.apache.org Content-Type: multipart/alternative; boundary=94eb2c06d0c20362d205376ba32f archived-at: Tue, 12 Jul 2016 07:58:51 -0000 --94eb2c06d0c20362d205376ba32f Content-Type: text/plain; charset=UTF-8 Agree with @Jiali on the "SKIPPED" solution, but I think we need do some emphasis for the skipped test cases to let the user know. The aim is to avoid the user who run the test thinks all the tests have run successfully, including the skipped tests. 2016-07-12 14:22 GMT+08:00 Jiali Yao : > For the test case checking, I think it should report "SKIPPED" instead of > ERROR. > The test case should check whether this feature is supported or not. If > supported, run the case; otherwise skipped it. > Agree on that we should add it in common lib. > > On the other topic, I think source greenplum_path.sh is must. It is env > related. > > Thanks > > Jiali > > > > On Tue, Jul 12, 2016 at 2:19 PM, Lei Chang wrote: > > > I think the better way is to let test cases run under some conditions. > > > > for example, pl/python is optional, if user did not run configure with > > pl/python option, the test about pl/python should not run. > > > > Cheers > > Lei > > > > > > > > On Tue, Jul 12, 2016 at 2:15 PM, Ivan Weng wrote: > > > > > Agree with Hong. Test case should check its environment needed. If the > > > check failed, it should terminate the execution and report the error. > > > > > > On Tue, Jul 12, 2016 at 2:04 PM, Hong Wu > wrote: > > > > > > > It is user/developer themselves that should take care. Say, if you > > write > > > a > > > > test case which is related to plpython, why don't you configure HAWQ > > with > > > > "--with-python" option? We should write a README for feature-test > that > > > > guides user to run this tests. For example, tell them sourcing > > > > "greenplum.sh" before running tests. > > > > > > > > Consequently, I think add such sanity-check is a little bit of > > > > over-engineering which will bring extra problems and complexities. > > > > > > > > Best > > > > xunzhang > > > > > > > > 2016-07-12 13:47 GMT+08:00 Paul Guo : > > > > > > > > > I have >1 times to encounter some feature test failures due to > > reported > > > > > missing stuffs. > > > > > > > > > > e.g. > > > > > > > > > > 1. I did not have pl/python installed in my hawq build so > > > > > UDF/sql/function_set_returning.sql fails to "create language > > > > plpythonu" > > > > > This makes this case fails. > > > > > > > > > > 2. Sometimes I forgot to source a greenplum.sh, then all cases run > > > > > with failures due to missing psql. > > > > > > > > > > We seem to be able to improve. > > > > > > > > > > 1) Sanity-check some file existence in common code, e.g. > > > > > psql, gpdiff.pl, > > > > > > > > > > 2) Some cases could do sanity-check in their own test constructor > > > > > functions, > > > > > e.g. if the case uses the extension plpython, the test case > > should > > > > > check it itself. > > > > > > > > > > More thoughts? > > > > > > > > > > > > > > > --94eb2c06d0c20362d205376ba32f--