-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[BEAM-6554] Migrate from findbugs to spotbugs #7704
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
|
@iemejia @adude3141 opening this for discussion |
| reports { | ||
| html.enabled = false | ||
| xml.enabled = true | ||
| html { enabled = true } |
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.
Oops. I'll revert this. I think we should default to settings that are good for a developer and have Jenkins jobs set things like -PxmlSpotbugs or some such. But later.
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.
definitely+1 on having decent developer defaults.
Unfortunately the Jenkins plugin requires xml output. And as findbugs/spotbugs support only single report format and I further was under the impression that findbugs should be removed, I simply switch to xml. Of course, this is a different story now.
Regarding that parameter, do we have other places where we have different configuration on jenkins? If so, would it make sense to extract some Jenkins-plugin which collects all this differences, so that we only either autodetect, we run on Jenkins (by checking some Jenkins env-var) or set only a single parameter, ciBuild=true or such.
|
LGTM anything I could do to help pushing this forward? |
|
@adude3141 thanks! There's not much more to review. I noticed the same problem with the reports. I will set it to xml. Spotbugs itself in the build configuration has been no problem. I haven't had any minutes to spend on the second issue in the PR description. I think that is the main blocker, unless it is masking further errors. |
|
This needs a rebase, in principle looks ok also to me, will LGTM once the xml change is done and green. |
|
OK. I got spotbugs happy. Now the blocker is adjusting the Jenkins job to either be flexible or to be OK with missing data. |
I do not understand what is meant by that? Could you elaborate a bit? |
|
@adude3141 I got an error something about |
|
run java precommit |
|
ah, yes. we need to change https://github.com/apache/beam/blob/master/.test-infra/jenkins/job_PreCommit_Java.groovy#L44-L46 |
15f558b to
e43f0e6
Compare
|
Finally got the right stuff in place for the dependency analysis plugin. Looks like Jira was down/ or rebooting when the website checker ran. |
This migrate dependencies from findbugs to spotbugs, with some fixes. There appear to be issues introduced in spotbugs.
continuationparameter toSplittableProcessElementInvoker$Resultis marked nullable, which is not the case. I have not yet decompiled to debug.Follow this checklist to help us incorporate your contribution quickly and easily:
[BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replaceBEAM-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.It will help us expedite review of your Pull Request if you tag someone (e.g.
@username) to look at it.Post-Commit Tests Status (on master branch)