-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-16870. Use spotbugs-maven-plugin instead of findbugs-maven-plugin #2454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
(!) A patch to the testing environment has been detected. |
💔 -1 overall
This message was automatically generated. |
(!) A patch to the testing environment has been detected. |
@aajisaka commands of spotbugs installed in Docker container do not have x permission. Could this cause any problem?
|
💔 -1 overall
This message was automatically generated. |
Yes, it caused errors https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2454/2/console
I'll fix it. Thank you. |
@@ -18,6 +18,7 @@ | |||
|
|||
package org.apache.hadoop.conf; | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is to run spotbugs check in the precommit Jenkins job. Yes, I'll commit after reverting this.
dev-support/docker/Dockerfile
Outdated
@@ -92,6 +92,15 @@ ENV MAVEN_HOME /usr | |||
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 | |||
ENV FINDBUGS_HOME /usr | |||
|
|||
####### | |||
# Install SpotBugs 4.1.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance we can make this version number a variables so we keep it consistent with the one in the pom.xml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to make this version number a variable but I don't know how to do this. The Dockerfile itself can be used from many places (start-build-env.sh, Jenkins precommit job, qbt job, ...), so I don't think we can use a variable.
cdcfa18
to
36b7dbb
Compare
(!) A patch to the testing environment has been detected. |
💔 -1 overall
This message was automatically generated. |
(!) A patch to the testing environment has been detected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
💔 -1 overall
This message was automatically generated. |
happy for this to go in once it's rebased and yetus is quiet again |
b90fd98
to
cc780b6
Compare
(!) A patch to the testing environment has been detected. |
630df96
to
12696e4
Compare
(!) A patch to the testing environment has been detected. |
(!) A patch to the testing environment has been detected. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
This reverts commit 32e81cc.
(!) A patch to the testing environment has been detected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aajisaka very useful improvement. +1
Merged. Thank you for your review, @iwasakims @goiri, and @dineshchitlangia. |
…gin (apache#2454) Use spotbugs instead of findbugs. Removed findbugs from the hadoop build images, and added spotbugs in the images instead. Reviewed-by: Masatake Iwasaki <iwasakims@apache.org> Reviewed-by: Inigo Goiri <inigoiri@apache.org> Reviewed-by: Dinesh Chitlangia <dineshc@apache.org>
Reverted because of the build failure in #2701 |
…aven-plugin (apache#2454)" This reverts commit 4cf3531.
JIRA: https://issues.apache.org/jira/browse/HADOOP-16870
mvn compile spotbugs:spotbugs
from project root. Without this change, the command fails by NoPluginFoundForPrefixException: