Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # dev - How to test patch


Copy link to this message
-
Re: How to test patch
Chris Nauroth 2013-04-29, 16:09
Hello Amit,

The build failed while trying to compile the current trunk code.  I
recommend looking in this file mentioned from the build output:
/home/username/tmp/trunkJavacWarnings.txt.  This will contain the output
from attempting to compile current trunk, so I expect this will give you
additional information to help troubleshoot.

Just as a guess, are you working on a Mac?  There is currently a problem
with native code compilation on Mac for branch-1.  If this is the problem,
then you may want to apply the latest patch from HADOOP-8921:

https://issues.apache.org/jira/browse/HADOOP-8921

Also, I noticed that compared to my environment, you have different
versions for Forrest and Findbugs.  I'm using Forrest 0.9 and Findbugs
1.3.9.  I don't recall if our build is compatible with the versions that
you're using.  This isn't the cause of your current problem, but if you get
past this and then see problems with Findbugs and Forrest, then I recommend
changing versions.

Thanks,
Chris Nauroth
Hortonworks
http://hortonworks.com/

On Sun, Apr 28, 2013 at 7:57 AM, Amit Sela <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I submitted my first patch and I was requested to port the unit test, which
> I guess means to execute test-patch.
> The patch is for branch-1 so it runs with ant...
> I checked out a clean branch-1 (svn stat shows nothing) and run the
> following command (From the clean checkout dir) :
> *
> *
> *ant test-patch -Dpatch.file=../HADOOP-6103-branch-1.patch
> -Dfindbugs.home=/usr/local/findbugs-2.0.2/
> -Dforrest.home=/usr/local/apache-forrest-0.8/*
>
> But I get:
>
>
> Buildfile:
> /home/username/Dev/hadoop-working-branch/hadoop-common-1/build.xml
>
> patch.check:
>
> check-for-findbugs:
>
> findbugs.check:
>
> forrest.check:
>
> test-patch:
>      [exec]
>      [exec]
>      [exec]
> =====================================================================>      [exec]
> =====================================================================>      [exec]     Testing patch for HADOOP-6103-branch-1.patch.
>      [exec]
> =====================================================================>      [exec]
> =====================================================================>      [exec]
>      [exec]
>      [exec] Patch file ../HADOOP-6103-branch-1.patch copied to
> /home/username/tmp
>      [exec]
>      [exec]
>      [exec]
> =====================================================================>      [exec]
> =====================================================================>      [exec]  Pre-build trunk to verify trunk stability and javac warnings
>      [exec]
> =====================================================================>      [exec]
> =====================================================================>      [exec]
>      [exec]
>      [exec] /home/username/Dev/tools/apache-ant-1.9.0/bin/ant
> -Djavac.args=-Xlint -Xmaxwarns 1000
>  -Dforrest.home=/usr/local/apache-forrest-0.8/ -DPatchProcess= clean tar >
> /home/username/tmp/trunkJavacWarnings.txt 2>&1
>      [exec] Trunk compilation is broken?
>      [exec]
>      [exec]
>      [exec]
> =====================================================================>      [exec]
> =====================================================================>      [exec]     Finished build.
>      [exec]
> =====================================================================>      [exec]
> =====================================================================>      [exec]
>      [exec]
>
> BUILD FAILED
> /home/username/Dev/hadoop-working-branch/hadoop-common-1/build.xml:2287:
> exec returned: 1
>
>
> Thanks for the help,
>
> Amit.
>