You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by GitBox <gi...@apache.org> on 2021/02/08 15:55:02 UTC

[GitHub] [incubator-ratis] adoroszlai opened a new pull request #421: RATIS-1308. Findbugs check is failing silently

adoroszlai opened a new pull request #421:
URL: https://github.com/apache/incubator-ratis/pull/421


   ## What changes were proposed in this pull request?
   
   1. Findbugs 3.0.0 does not work with Maven 3.4+, so it should be upgraded to 3.0.5.  But because Findbugs is no longer under development, switch to Spotbugs (its successor) instead.
   2. Fix or suppress warnings that have been introduced while Findbugs was failing silently.  `SuppressFBWarnings` annotation is used instead of XML-based exclusion (except for protobuf generated source) for the following reasons:
      * it can be applied closer to the problem spot, in the same source file
      * easier to use
      * harder to break accidentally (by renaming, etc.)
   
   https://issues.apache.org/jira/browse/RATIS-1308
   
   ## How was this patch tested?
   
   ```
   $ ./dev-support/checks/findbugs.sh
   ...
   [INFO] BUILD SUCCESS
   
   $ cat target/findbugs/failures
   0
   ```
   
   Findbugs is now successful in CI:
   https://github.com/adoroszlai/incubator-ratis/runs/1855897307#step:4:798


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-ratis] szetszwo merged pull request #421: RATIS-1308. Findbugs check is failing silently

Posted by GitBox <gi...@apache.org>.
szetszwo merged pull request #421:
URL: https://github.com/apache/incubator-ratis/pull/421


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-ratis] adoroszlai commented on pull request #421: RATIS-1308. Findbugs check is failing silently

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #421:
URL: https://github.com/apache/incubator-ratis/pull/421#issuecomment-783465472


   Thanks @runzhiwang and @szetszwo for the review.
   
   > Some of the warnings should be fixed in stead of suppressed. Let's fix them separately.
   
   Agree.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-ratis] adoroszlai commented on pull request #421: RATIS-1308. Findbugs check is failing silently

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #421:
URL: https://github.com/apache/incubator-ratis/pull/421#issuecomment-783228007


   @szetszwo @runzhiwang @lokeshj1703 can you please review?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org