You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Alex Loddengaard <al...@google.com> on 2008/08/27 11:19:29 UTC

Unit tests + new wiki page

I think I know the answer to this question, but I'll ask just for a sanity
check: should all unit tests pass in a fresh trunk build?

While I'm here, FYI: I'm working on an IDE agnostic development environment
HOWTO on the wiki.  Take a look and contribute what you can:

<http://wiki.apache.org/hadoop/HowToSetupYourDevelopmentEnvironment>

I'm in the middle of getting a local build compiled and running, so I'm
documenting my process in hopes of helping other people down the road.

Thanks.

Alex

Re: Unit tests + new wiki page

Posted by Steve Loughran <st...@apache.org>.
Alex Loddengaard wrote:
> I think I know the answer to this question, but I'll ask just for a sanity
> check: should all unit tests pass in a fresh trunk build?

I'll qualify Owen's "yes" with "yes provided your system is close enough 
to the supported systems".
-if your DNS or /etc/hosts is a mess; don't be surprised when things fail
-if you are running JRocket JVM, you need to switch to a different 
log4j.properties to avoid deadlocks in the JVM.
-there may be other installation-specific issues which you get to debug.

> 
> While I'm here, FYI: I'm working on an IDE agnostic development environment
> HOWTO on the wiki.  Take a look and contribute what you can:
> 
> <http://wiki.apache.org/hadoop/HowToSetupYourDevelopmentEnvironment>

-JPackage ant distros don't ship with a lot of ant; usually better to 
install a version of apache.org, or, if you do want rpm/deb managed ant 
to ask for ant-* to get the extra bits (which is all designed to avoid a 
cycle in the dependency graph), and clearly junit too.

-"ant diagnostics" is your tool for auditing Ant installations.

-it might be best to put the runtime errors into the existing 
troubleshooting page


Steve


Re: Unit tests + new wiki page

Posted by Owen O'Malley <om...@apache.org>.
On Wed, Aug 27, 2008 at 2:19 AM, Alex Loddengaard <al...@google.com>wrote:

> I think I know the answer to this question, but I'll ask just for a sanity
> check: should all unit tests pass in a fresh trunk build?


Yes. If code gets checked in that breaks the regressions, it is a bug and
should be fixed.

-- Owen