Return-Path: X-Original-To: apmail-asterixdb-dev-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 51DD518688 for ; Thu, 3 Dec 2015 23:45:30 +0000 (UTC) Received: (qmail 42523 invoked by uid 500); 3 Dec 2015 23:42:08 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 42482 invoked by uid 500); 3 Dec 2015 23:42:08 -0000 Mailing-List: contact dev-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list dev@asterixdb.incubator.apache.org Received: (qmail 41616 invoked by uid 99); 3 Dec 2015 23:41:56 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2015 23:41:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BC17D1A5D5C for ; Thu, 3 Dec 2015 23:29:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=uci-edu.20150623.gappssmtp.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id yr12yzwdmPHA for ; Thu, 3 Dec 2015 23:29:05 +0000 (UTC) Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 3202742AD4 for ; Thu, 3 Dec 2015 23:29:05 +0000 (UTC) Received: by qkdt187 with SMTP id t187so3837344qkd.0 for ; Thu, 03 Dec 2015 15:28:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uci-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=jhlHoHtKKG+kqBpuvuIlHGCIBPMVcz2dncTrG9jv60c=; b=LbpAxMmtfCTkxtYxB/V/LiSXVslVDvjxBNjp5Y42Bj5nZC7LpfIEfi77EkyAFWmfAt YKuAV0gdKvtkSoVY7b9KQ5jxRSyOACOUIT0Cl9hvUBThdYm1f15Gd9+wSHya9C6LrcPL KOkFELMAqj81VecgxzziB7mANz5IH+rzcg/Bp5uRTY/6+rEkJIQLUX77mNJEG54SyuYD wySgKU1NAJpn4YFCvTg8WQRstWqrC+LSh3GDttGHSB500fPBAPxE+HRkYjN8qT8nKdwH xKtXuBFkDPAee1Tmu/e71J/qZaCeHtIb6xH+NpFtMIU8rM7q/30A4YWDf68lMBTtjCnE Zo7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=jhlHoHtKKG+kqBpuvuIlHGCIBPMVcz2dncTrG9jv60c=; b=ChJgTrQtwq4zb5oDRHZIwzLDGkyr3KWbkuLI09IsmkVpCRTS20y1HdD2poYTIFYpL4 DU/mto1aNY/ucKuVaCmSj8x1C/D0DSdro+RSK3ACGr8c+WweuPVNvy4lKAv1xJCwKq8u SACyIW8O8YUtcE4L/phiEZVb8GY0EnFOixAfUAo34cSNOJXUH/HpLAWsTZhIYCLgVn5F SExznKKR121QWWZF85wj8nYBv0INvpIdFM/7Y9obXVDQhaLyk/3FenLm32FfsipUzG1g kUUyAUdGJz5I/YfrJbru5cE5eVMsQ1Z7jnKFcQsB5ZTPY8AeoU2L44HalgCm6Jd4LADU 9EhQ== X-Gm-Message-State: ALoCoQm9olx0LFuDJbBhkNnZw9JaFgrpkKYm2e9m+h6bLXDtSPc2cjsZc18qUx3NsVqMh5hLcWbh X-Received: by 10.55.74.205 with SMTP id x196mr14330690qka.92.1449185339366; Thu, 03 Dec 2015 15:28:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.99.102 with HTTP; Thu, 3 Dec 2015 15:28:40 -0800 (PST) In-Reply-To: References: From: Ian Maxon Date: Thu, 3 Dec 2015 15:28:40 -0800 Message-ID: Subject: Re: Undetected failed test cases To: dev@asterixdb.incubator.apache.org Content-Type: text/plain; charset=UTF-8 Definite +1. We also should (separately) start checking the output of the CC/NC logs or somehow otherwise find a way to detect exceptions that are uncaught there. Right now if the exception doesn't come back to the user as an error in issuing a query, we'd have no way to detect it. On Thu, Dec 3, 2015 at 2:43 PM, Till Westmann wrote: > +1 ! > > > On 3 Dec 2015, at 14:38, Chris Hillery wrote: > >> Yes, please propose the change. I've been looking at overhauling the test >> framework as well so I will review. >> >> For Zorba, I implemented a "known failing" mechanism that allowed you to >> mark a test that was currently broken (associated with a ticket ID) >> without >> disabling it. The framework would continue to execute it and expect it to >> fail. It would also cause the test run to fail if the test started to >> succeed (ie, the bug was fixed) which ensured that the "known failing" >> mark >> would get removed in a timely fashion. To be clear, this is completely >> distinct from a negative test case - it was a way to not worry about >> forgetting tests that had to be disabled due to known bugs, and to ensure >> that all such known bugs had an associated tracking ticket. It was quite >> useful there and I was planning to re-introduce it here. >> >> Ceej >> aka Chris Hillery >> >> On Thu, Dec 3, 2015 at 2:29 PM, abdullah alamoudi >> wrote: >> >>> Hi All, >>> Today, I implemented a fix for a critical issue that we have and wanted >>> to >>> add a new kind of test cases where the test case has 3 files: >>> >>> 1. Creating the dataset. >>> 2. Fill it with data that have duplicate keys. This is expected to throw >>> a >>> duplicate key exception. >>> 3. Delete the dataset. This is expected to pass (the bug was here where >>> it >>> is not being deleted). >>> >>> With the current way we use the test framework, we are unable to test >>> such >>> case and so I started to improve the test framework starting with >>> actually >>> checking the type of exception thrown and making sure that it matches the >>> expected error. >>> >>> ... and boom. I found that many test cases fail but nobody notices >>> because >>> no one checks the type of exception thrown. Moreover, If a test is >>> expected >>> to fail and it doesn't, the framework doesn't check for that. In >>> addition, >>> sometimes the returned exception is meaningless and that is something we >>> absolutely must avoid. >>> >>> What I propose is that I push to master the improved test framework and >>> disable the failing test cases, create JIRA issues for them and assign >>> each >>> to someone to look at them. >>> >>> Thoughts? >>> >>> Amoudi, Abdullah. >>> >