-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add more spotbugs checks and fix existing issues #1392
Conversation
src/main/java/org/csanchez/jenkins/plugins/kubernetes/ContainerEnvVar.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesFolderProperty.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesLauncher.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesSlave.java
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesSlave.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesSlave.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesSlave.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodTemplate.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerLogStepExecution.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerStepExecution.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/PodTemplateStepExecution.java
Outdated
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/pod/retention/Reaper.java
Outdated
Show resolved
Hide resolved
Looks good though some of the spotbugs check seem overkill. |
Thank you for the PR @aneveux ! |
src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesFolderProperty.java
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesFolderProperty.java
Show resolved
Hide resolved
src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesFolderProperty.java
Show resolved
Hide resolved
Test failures don't look like flakes (at least look at the ones under |
Test failures are now fixed. I thought I could put that |
New test failures, I am looking at it. |
@Vlatombe I finally got some time to fix the remaining issues here and merge with master. LMK if that PR is fine for you ❤️ |
@@ -87,7 +87,7 @@ public KubernetesLauncher() { | |||
} | |||
|
|||
@Override | |||
public boolean isLaunchSupported() { | |||
public synchronized boolean isLaunchSupported() { |
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 found a problem here: if this method is called from another thread used synchronously during launch (JnlpConnectionState.fireAfterChannel
) while launch(…)
is running, you can get a deadlock.
Hello folks 👋
I'm currently following the Improve a Plugin documentation for
Jenkins plugins modernization, and noticed we could add more spotbugs checks for this plugin.
Adding additional Spotbugs checks did raise quite a bunch of warnings which I tried to fix in that PR.
For some of them, I was a bit uncertain about either the expected outcome, or the risk of changing things, so I instead ignored the warning, as it is the current state of the source code.
So here's a PR doing that. I checked that everything is running fine with
mvn verify
.Thanks for your review!
Let me know if there is anything you would like me to take care of in that PR. If you believe it is not worth for the project, feel free to close it.
Testing done
Submitter checklist