Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F9D111B0B for ; Sun, 12 May 2013 04:18:30 +0000 (UTC) Received: (qmail 75409 invoked by uid 500); 12 May 2013 04:18:28 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 74940 invoked by uid 500); 12 May 2013 04:18:26 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 74910 invoked by uid 99); 12 May 2013 04:18:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 May 2013 04:18:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 209.85.215.41 as permitted sender) Received: from [209.85.215.41] (HELO mail-la0-f41.google.com) (209.85.215.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 May 2013 04:18:20 +0000 Received: by mail-la0-f41.google.com with SMTP id lx15so2702963lab.14 for ; Sat, 11 May 2013 21:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=5QYQwdmlBJ5LW7L4pBWxE79c21I+Zz3Dzm8HyTDCN+o=; b=biLg5SAWpgemIcKFk13IN40Vg+FNPiN0oSXihXwekdXkkm4Zt9D54bPkiwF0C+GyRU zUyZ4UizTDL3iDF7uGygCoJq6ShmYxI05/RsAu8GAV8bylMk8dFlCY2bODQe5oKkOiYv dcoPt2Md6lRhOliP2fG7Ip38cEs7DB/bflTW+ZF3XubNVBqEyTQ24vMPzsuhPapOjkuO SrfDIhxklExgy8FTocjExgzm2MdpiA23+BnFDSpTbzb3hMjbXFPfdiAabz6S88crPzME SGleVjunOKqNS2w1Vnx11BeP0/03nCxXtZZ3pWwWxcJJdmpwnawEglC0g1XQt5lH12FD SHjQ== MIME-Version: 1.0 X-Received: by 10.112.147.229 with SMTP id tn5mr10511497lbb.112.1368332279328; Sat, 11 May 2013 21:17:59 -0700 (PDT) Received: by 10.112.136.104 with HTTP; Sat, 11 May 2013 21:17:59 -0700 (PDT) In-Reply-To: References: Date: Sat, 11 May 2013 21:17:59 -0700 Message-ID: Subject: Re: test patch fails with -1 findbugs From: Ted Yu To: common-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b3a897a71b46e04dc7daf74 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3a897a71b46e04dc7daf74 Content-Type: text/plain; charset=ISO-8859-1 Here was the command I used (on MacBook): ant test-patch -Dpatch.file=../ted-1.0.txt -Dfindbugs.home=/Users/tyu/findbugs-2.0.2 -Dforrest.home=/Users/tyu/apache-forrest-0.9 But I didn't get very far: [exec] BUILD FAILED [exec] /Users/tyu/apache-forrest-0.9/main/forrest.build.xml:54: /Users/tyu/apache-forrest-0.9/lib/core does not exist. I didn't get missing class error, though. Cheers On Sat, May 11, 2013 at 3:04 PM, Amit Sela wrote: > Following Ted Yu's advice, I created an empty patch and got the same > results... any ideas ? > I do notice findbugs complaining of missing classes: > > [exec] [findbugs] The following classes needed for analysis were > missing: > [exec] [findbugs] org.apache.tools.ant.Task > [exec] [findbugs] org.apache.tools.ant.BuildException > [exec] [findbugs] org.apache.tools.ant.types.FileSet > [exec] [findbugs] org.apache.tools.ant.Project > [exec] [findbugs] org.apache.tools.ant.DirectoryScanner > [exec] [findbugs] Warnings generated: 638 > [exec] [findbugs] Missing classes: 6 > [exec] [findbugs] Calculating exit code... > [exec] [findbugs] Setting 'missing class' flag (2) > [exec] [findbugs] Setting 'bugs found' flag (1) > [exec] [findbugs] Exit code set to: 3 > [exec] [findbugs] Classes needed for analysis were missing > [exec] [findbugs] Output saved to > > /home/amits/Dev/hadoop-working-branch/hadoop-common-1/build/test/findbugs/hadoop-findbugs-report.xml > [exec] [xslt] Processing > > /home/amits/Dev/hadoop-working-branch/hadoop-common-1/build/test/findbugs/hadoop-findbugs-report.xml > to > > /home/amits/Dev/hadoop-working-branch/hadoop-common-1/build/test/findbugs/hadoop-findbugs-report.html > [exec] [xslt] Loading stylesheet > /usr/local/findbugs-1.3.9/src/xsl/default.xsl > [exec] [findbugs] Java Result: 3 > > > > On Sat, May 11, 2013 at 11:44 PM, Ted Yu wrote: > > > As validation step, you can run an empty patch (adding whitespace in any > > file) through test-patch. > > You would have base number of findbugs warnings. > > > > Cheers > > > > On Sat, May 11, 2013 at 12:24 PM, Amit Sela wrote: > > > > > Hi all, > > > > > > I've recently added a patch to branch-1 and I wanted to run test-patch. > > > I run: ant test-patch -Dpatch.file=../HADOOP-6103-branch-1.patch > > > -Dfindbugs.home=/usr/local/findbugs-1.3.9 > > > -Dforrest.home=/usr/local/apache-forrest-0.9 > > > > > > and I get: > > > > > > BUILD SUCCESSFUL > > > [exec] Total time: 3 minutes 16 seconds > > > [exec] > > > [exec] > > > [exec] > > > [exec] > > > [exec] -1 overall. > > > [exec] > > > [exec] +1 @author. The patch does not contain any @author > tags. > > > [exec] > > > [exec] -1 tests included. The patch doesn't appear to include > > any > > > new or modified tests. > > > [exec] Please justify why no tests are > > needed > > > for this patch. > > > [exec] > > > [exec] +1 javadoc. The javadoc tool did not generate any > > warning > > > messages. > > > [exec] > > > [exec] +1 javac. The applied patch does not increase the > total > > > number of javac compiler warnings. > > > [exec] > > > [exec] -1 findbugs. The patch appears to introduce 427 new > > > Findbugs (version 1.3.9) warnings. > > > > > > But I can't seem to understand why findbugs fails (I have a hard > > > time believing that my patch caused it). > > > > > > I'd really appreciate your help on this one, > > > > > > Thanks, > > > Amit. > > > > > > --047d7b3a897a71b46e04dc7daf74--