Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 82861 invoked from network); 6 Apr 2009 15:30:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Apr 2009 15:30:44 -0000 Received: (qmail 89905 invoked by uid 500); 6 Apr 2009 15:30:43 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 89869 invoked by uid 500); 6 Apr 2009 15:30:43 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 89835 invoked by uid 99); 6 Apr 2009 15:30:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 15:30:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael.d.dick@gmail.com designates 209.85.220.222 as permitted sender) Received: from [209.85.220.222] (HELO mail-fx0-f222.google.com) (209.85.220.222) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2009 15:30:36 +0000 Received: by fxm22 with SMTP id 22so1823498fxm.9 for ; Mon, 06 Apr 2009 08:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=XxazHbGeDZrWTbis/ks71FOHZcbMMouS780QZmttE0Y=; b=jZDzwsw6zVmqNGsUbLlW8q9A3NA5ISUWjcXPMr4fiaN4qz66cGEtm082V7b/cATQma jCX1ll3yESZLKVYfdWojy2uUIUMzawA74pijflEjTP7+OAKYDXF4CUiMeiz6CNLvI6Ah 54cqhGFbOJzDkY1EkPhY85otLsYVJUUW7TyxQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fbHtcenTlJ4jFLblp95XazlWNPx7cwerMbTe58DKx9/6d8KFdKn8Fjhov2MAa/DJNw wJoiw5lvB8JhjzDfjO5THtROsvA8iAawE8pKYBve8r26KmdtfIPyjFHbDtqq0Ji34Y3v 5BFmcHxpk5XKGHy9mPGcUZ5Z7EBVaz20iuEWA= MIME-Version: 1.0 Received: by 10.223.108.211 with SMTP id g19mr3849988fap.39.1239031814624; Mon, 06 Apr 2009 08:30:14 -0700 (PDT) Date: Mon, 6 Apr 2009 10:30:14 -0500 Message-ID: <72c1350f0904060830w5f77b33alfe7af79f8a290476@mail.gmail.com> Subject: [DISCUSS] refactor @AllowFailure From: Michael Dick To: dev@openjpa.apache.org Content-Type: multipart/alternative; boundary=001636c5a7172ff0180466e4930a X-Virus-Checked: Checked by ClamAV on apache.org --001636c5a7172ff0180466e4930a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, The AllowFailure annotation is very useful in that it allows specific test methods to be ignored during a typical Maven build. The implementation, however is rather confusing as a "clean" build of OpenJPA will typically contain several stack traces from exceptions. Running these optional tests that currently do not pass just consumes CPU cycles that could be better spent elsewhere. I propose refactoring @AllowFailure to be called @OptionalTest (or just @Optional) and updating the supporting methods in PersistenceTestCase so that test methods (or classes) annotated with @OptionalTest are skipped unless a jvm system property is true (ie -Dopenjpa.optional.tests=true). I think this will save everyone's CPU cycles without violating the intent of @AllowFailure. In addition with this change we could resurrect the changes for OPENJPA-770 and we could clean up the root pom.xml a bit. Anyone else have strong opinions about @AllowFailure? -mike --001636c5a7172ff0180466e4930a--