-Re: Extend the Hadoop QA bot to handle dependencies
Nicolas Liochon 2013-07-11, 09:55
Yes, it's a good idea.
It seems feasible. The code executed by HadoopQA is in the hbase repo in
dev-support/test-patch.sh, so we control it. It's easy to add tests there.
One thing to take care about however is how long it takes to do that. maven
plugins are surprising sometimes.
As well, if the plugin outputs cleanly the undeclared dependencies, we
could just fix them all at the beginning instead of doing a diff. We did
this for the javadoc warnings, and it worked.
On Thu, Jul 11, 2013 at 11:27 AM, Lars Francke <[EMAIL PROTECTED]>wrote:
> I don't know much (basically nothing) about how the Hadoop QA bot is
> implemented but I have a suggestion for how it could be improved and
> would like some opinions and maybe pointers.
> Maven and dependency handling is a topic not very many people find
> interesting. Understandably. But that means that often people
> introduce dependencies without declaring them in the pom file (see
> HBASE-8917 for one example but we had this problem before, years
> ago). That often leads to weird errors at some point when an upstream
> dependency changes.
> There's a plugin that can analyze dependencies and their usage and
> report unused dependencies and used but undeclared ones (it's not
> perfect but good enough). I think it'd be great if the Hadoop QA bot
> could analyze a before and after snapshot of the output of this plugin
> and do a -1 if anyone introduces a new dependency without declaring
> Does that sound like a good idea?
>  <https://issues.apache.org/jira/browse/HBASE-8917>
>  <