Ah, that makes sense, thanks for finding that. We could alternatively use
build/** to avoid everything under build, or include a more complete list
via .gitignore instead (although that would have to be done carefully since
the pattern matching works differently). Unfortunately grgit is required to
filter out files that aren't covered by .gitignore and untracked by git.

-Ewen

On Tue, Jul 7, 2015 at 10:35 PM, Joel Koshy <jjkosh...@gmail.com> wrote:

> > explicitly specify an exclude for build/rat/rat-report.xml
>
> (btw, I went ahead with a trivial commit for the above - let me know
> if there are any concerns)
>
> On Tue, Jul 07, 2015 at 09:44:27PM -0700, Joel Koshy wrote:
> > You can reproduce the rat failure by running: ./gradlew clean &&
> > gradlew test
> >
> > If you run gradlew test again it does not report any error.
> >
> > build.gradle uses Grgit to expand the gitignore files to exclude.  For
> > a clean build, the build directory does not exist (yet). So it is not
> > excluded by rat.  On subsequent builds it does exist, so it is
> > excluded.
> >
> > The easiest fix is to probably explicitly specify an exclude for
> > build/rat/rat-report.xml
> >
> > Thanks,
> >
> > Joel
> >
> > On Tue, Jul 07, 2015 at 05:12:12PM -0700, Jun Rao wrote:
> > > Ewen,
> > >
> > > We did have at least one successful run (
> > > https://builds.apache.org/job/Kafka-trunk/526/console) after the rat
> patch.
> > > Perhaps you can file an Apache infra ticket to figure out why other
> runs
> > > fail?
> > >
> > > Thanks,
> > >
> > > Jun
> > >
> > > On Tue, Jul 7, 2015 at 11:16 AM, Ewen Cheslack-Postava <
> e...@confluent.io>
> > > wrote:
> > >
> > > > Is there a way to run the Jenkins build with more detailed output,
> e.g.
> > > > with one of gradle's debug flags? It looks like in the Jenkins
> environment
> > > > the exclude rules (which should be ignoring the build/ directory)
> aren't
> > > > working like they did for me and the reviewers, but there's not
> enough
> > > > useful info here to figure out why. Although even with those turned
> on, I'm
> > > > not sure the right info is logged...
> > > >
> > > > -Ewen
> > > >
> > > > On Tue, Jul 7, 2015 at 10:39 AM, Apache Jenkins Server <
> > > > jenk...@builds.apache.org> wrote:
> > > >
> > > > > See <https://builds.apache.org/job/KafkaPreCommit/138/changes>
> > > > >
> > > > > Changes:
> > > > >
> > > > > [junrao] kafka-1367; Broker topic metadata not kept in sync with
> > > > > ZooKeeper; patched by Ashish Singh; reviewed by Jun Rao
> > > > >
> > > > > [joe.stein] KAFKA-2304 Supported enabling JMX in Kafka Vagrantfile
> patch
> > > > > by Stevo Slavic reviewed by Ewen Cheslack-Postava
> > > > >
> > > > > ------------------------------------------
> > > > > Started by an SCM change
> > > > > Building remotely on ubuntu-4 (docker Ubuntu ubuntu4 ubuntu) in
> > > > workspace <
> > > > > https://builds.apache.org/job/KafkaPreCommit/ws/>
> > > > >  > git rev-parse --is-inside-work-tree # timeout=10
> > > > > Fetching changes from the remote Git repository
> > > > >  > git config remote.origin.url
> > > > > https://git-wip-us.apache.org/repos/asf/kafka.git # timeout=10
> > > > > Fetching upstream changes from
> > > > > https://git-wip-us.apache.org/repos/asf/kafka.git
> > > > >  > git --version # timeout=10
> > > > >  > git fetch --tags --progress
> > > > > https://git-wip-us.apache.org/repos/asf/kafka.git
> > > > > +refs/heads/*:refs/remotes/origin/*
> > > > >  > git rev-parse refs/remotes/origin/trunk^{commit} # timeout=10
> > > > >  > git rev-parse refs/remotes/origin/origin/trunk^{commit} #
> timeout=10
> > > > > Checking out Revision ad485e148d7ac104abe173687ba27dccff8e4d39
> > > > > (refs/remotes/origin/trunk)
> > > > >  > git config core.sparsecheckout # timeout=10
> > > > >  > git checkout -f ad485e148d7ac104abe173687ba27dccff8e4d39
> > > > >  > git rev-list 271b18d119fdc37952c36c573ba185aa672e3f96 #
> timeout=10
> > > > > Setting
> > > > >
> > > >
> GRADLE_2_1_HOME=/home/jenkins/jenkins-slave/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.1
> > > > > [KafkaPreCommit] $ /bin/bash -xe /tmp/hudson8684664270792626732.sh
> > > > > +
> > > > >
> > > >
> /home/jenkins/jenkins-slave/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.1/bin/gradle
> > > > > To honour the JVM settings for this build a new JVM will be forked.
> > > > Please
> > > > > consider using the daemon:
> > > > > http://gradle.org/docs/2.1/userguide/gradle_daemon.html.
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/org/ajoberstar/grgit/0.2.3/grgit-0.2.3.pom
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit/3.3.0.201403021825-r/org.eclipse.jgit-3.3.0.201403021825-r.pom
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit-parent/3.3.0.201403021825-r/org.eclipse.jgit-parent-3.3.0.201403021825-r.pom
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit.ui/3.3.0.201403021825-r/org.eclipse.jgit.ui-3.3.0.201403021825-r.pom
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.jsch/0.0.7/jsch.agentproxy.jsch-0.0.7.pom
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy/0.0.7/jsch.agentproxy-0.0.7.pom
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.pageant/0.0.7/jsch.agentproxy.pageant-0.0.7.pom
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.sshagent/0.0.7/jsch.agentproxy.sshagent-0.0.7.pom
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.usocket-jna/0.0.7/jsch.agentproxy.usocket-jna-0.0.7.pom
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.usocket-nc/0.0.7/jsch.agentproxy.usocket-nc-0.0.7.pom
> > > > > Download
> > > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch/0.1.46/jsch-0.1.46.pom
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.core/0.0.7/jsch.agentproxy.core-0.0.7.pom
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/org/ajoberstar/grgit/0.2.3/grgit-0.2.3.jar
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit/3.3.0.201403021825-r/org.eclipse.jgit-3.3.0.201403021825-r.jar
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit.ui/3.3.0.201403021825-r/org.eclipse.jgit.ui-3.3.0.201403021825-r.jar
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.jsch/0.0.7/jsch.agentproxy.jsch-0.0.7.jar
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.pageant/0.0.7/jsch.agentproxy.pageant-0.0.7.jar
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.sshagent/0.0.7/jsch.agentproxy.sshagent-0.0.7.jar
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.usocket-jna/0.0.7/jsch.agentproxy.usocket-jna-0.0.7.jar
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.usocket-nc/0.0.7/jsch.agentproxy.usocket-nc-0.0.7.jar
> > > > > Download
> > > > >
> > > >
> https://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.core/0.0.7/jsch.agentproxy.core-0.0.7.jar
> > > > > Building project 'core' with Scala version 2.10.5
> > > > > :downloadWrapper UP-TO-DATE
> > > > >
> > > > > BUILD SUCCESSFUL
> > > > >
> > > > > Total time: 26.723 secs
> > > > > Setting
> > > > >
> > > >
> GRADLE_2_1_HOME=/home/jenkins/jenkins-slave/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.1
> > > > > [KafkaPreCommit] $ /bin/bash -xe /tmp/hudson5373108736072325347.sh
> > > > > + ./gradlew -PscalaVersion=2.10.1 test
> > > > > To honour the JVM settings for this build a new JVM will be forked.
> > > > Please
> > > > > consider using the daemon:
> > > > > http://gradle.org/docs/2.4/userguide/gradle_daemon.html.
> > > > > Building project 'core' with Scala version 2.10.1
> > > > > :compileJava UP-TO-DATE
> > > > > :processResources UP-TO-DATE
> > > > > :classes UP-TO-DATE
> > > > > :rat
> > > > > Unknown license: <
> > > > >
> https://builds.apache.org/job/KafkaPreCommit/ws/build/rat/rat-report.xml
> > > > >
> > > > > :rat FAILED
> > > > >
> > > > > FAILURE: Build failed with an exception.
> > > > >
> > > > > * Where:
> > > > > Script '<
> > > > https://builds.apache.org/job/KafkaPreCommit/ws/gradle/rat.gradle'>
> > > > > line: 63
> > > > >
> > > > > * What went wrong:
> > > > > Execution failed for task ':rat'.
> > > > > > Found 1 files with unknown licenses.
> > > > >
> > > > > * Try:
> > > > > Run with --stacktrace option to get the stack trace. Run with
> --info or
> > > > > --debug option to get more log output.
> > > > >
> > > > > BUILD FAILED
> > > > >
> > > > > Total time: 31.846 secs
> > > > > Build step 'Execute shell' marked build as failure
> > > > > Setting
> > > > >
> > > >
> GRADLE_2_1_HOME=/home/jenkins/jenkins-slave/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.1
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks,
> > > > Ewen
>
>


-- 
Thanks,
Ewen

Reply via email to