You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2025/06/30 22:49:12 UTC

(spark-kubernetes-operator) branch main updated: [SPARK-52624] Upgrade `spotbugs-tool` to 4.9.3 and `spotbugs-plugin` to 6.1.13

This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new a50f453  [SPARK-52624] Upgrade `spotbugs-tool` to 4.9.3 and `spotbugs-plugin` to 6.1.13
a50f453 is described below

commit a50f4533225d5e2059796426cdfbdf25747dd56a
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Mon Jun 30 15:49:03 2025 -0700

    [SPARK-52624] Upgrade `spotbugs-tool` to 4.9.3 and `spotbugs-plugin` to 6.1.13
    
    ### What changes were proposed in this pull request?
    
    This PR aims to upgrade
    - `spotbugs-tool` from `4.8.6` to `4.9.3`
    - `spotbugs-plugin` from `6.0.17` to 6.1.13
    
    While updating the above, the following are fixed.
    
    ```
    > Task :spark-operator:spotbugsTest FAILED
    M D US: Suppressing annotation on the class org.apache.spark.k8s.operator.probe.HealthProbeTest is unnecessary  At HealthProbeTest.java:[lines 52-192]
    M D US: Suppressing annotation on the class org.apache.spark.k8s.operator.metrics.source.KubernetesMetricsInterceptorTest is unnecessary  At KubernetesMetricsInterceptorTest.java:[lines 55-153]
    ```
    
    ### Why are the changes needed?
    
    To bring the latest updates.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No behavior change.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #265 from dongjoon-hyun/SPARK-52624.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 gradle/libs.versions.toml                                             | 4 ++--
 .../k8s/operator/metrics/source/KubernetesMetricsInterceptorTest.java | 2 +-
 .../java/org/apache/spark/k8s/operator/probe/HealthProbeTest.java     | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 4be9c35..c4c7f55 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -31,8 +31,8 @@ mockito = "5.18.0"
 # Build Analysis
 checkstyle = "10.23.1"
 pmd = "7.13.0"
-spotbugs-tool = "4.8.6"
-spotbugs-plugin = "6.0.17"
+spotbugs-tool = "4.9.3"
+spotbugs-plugin = "6.1.13"
 spotless-plugin = "6.25.0"
 
 # Packaging
diff --git a/spark-operator/src/test/java/org/apache/spark/k8s/operator/metrics/source/KubernetesMetricsInterceptorTest.java b/spark-operator/src/test/java/org/apache/spark/k8s/operator/metrics/source/KubernetesMetricsInterceptorTest.java
index 9217f44..9cf5681 100644
--- a/spark-operator/src/test/java/org/apache/spark/k8s/operator/metrics/source/KubernetesMetricsInterceptorTest.java
+++ b/spark-operator/src/test/java/org/apache/spark/k8s/operator/metrics/source/KubernetesMetricsInterceptorTest.java
@@ -50,7 +50,7 @@ import org.apache.spark.k8s.operator.spec.ApplicationSpec;
 @EnableKubernetesMockClient(crud = true)
 @TestMethodOrder(MethodOrderer.OrderAnnotation.class)
 @SuppressFBWarnings(
-    value = {"UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "UUF_UNUSED_FIELD"},
+    value = {"UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD"},
     justification = "Unwritten fields are covered by Kubernetes mock client")
 class KubernetesMetricsInterceptorTest {
 
diff --git a/spark-operator/src/test/java/org/apache/spark/k8s/operator/probe/HealthProbeTest.java b/spark-operator/src/test/java/org/apache/spark/k8s/operator/probe/HealthProbeTest.java
index 958a8d2..471c27a 100644
--- a/spark-operator/src/test/java/org/apache/spark/k8s/operator/probe/HealthProbeTest.java
+++ b/spark-operator/src/test/java/org/apache/spark/k8s/operator/probe/HealthProbeTest.java
@@ -47,7 +47,7 @@ import org.apache.spark.k8s.operator.metrics.healthcheck.SentinelManager;
 
 @EnableKubernetesMockClient(crud = true)
 @SuppressFBWarnings(
-    value = {"UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "UUF_UNUSED_FIELD"},
+    value = {"UWF_UNWRITTEN_FIELD"},
     justification = "Unwritten fields are covered by Kubernetes mock client")
 class HealthProbeTest {
   private static Operator operator;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org