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 2026/09/29 02:36:27 UTC

(spark-kubernetes-operator) branch main updated: [SPARK-59838] Upgrade Mockito to 5.24.0

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

dongjoon-hyun 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 7733e72c [SPARK-59838] Upgrade Mockito to 5.24.0
7733e72c is described below

commit 7733e72c9f5464be615028f19180e14bfe3a1e49
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Mon Sep 28 19:36:19 2026 -0700

    [SPARK-59838] Upgrade Mockito to 5.24.0
    
    ### What changes were proposed in this pull request?
    
    This PR aims to upgrade `Mockito` to 5.24.0.
    
    Since `mockito-core` 5.24.0 declares the same dependencies as 5.23.0 (`byte-buddy` 1.17.7, `byte-buddy-agent` 1.17.7, and `objenesis` 3.3), only the `org.mockito:mockito-core` entry of `gradle/verification-metadata.xml` is changed.
    
    ### Why are the changes needed?
    
    To bring the latest bug fixes.
    - https://github.com/mockito/mockito/releases/tag/v5.24.0 (2026-09-23)
      - Fix data race in `InvocationContainerImpl.invocationForStubbing` (https://github.com/mockito/mockito/pull/3819)
      - Fix non-deterministic `AssertionError` when using `MockMakers.SUBCLASS` (https://github.com/mockito/mockito/pull/3795)
      - Fix `clearInlineMocks` not de-registering singleton mocks (https://github.com/mockito/mockito/pull/3829)
      - Preserve method parameters when clearing inline mocks (https://github.com/mockito/mockito/pull/3847)
    
    ### Does this PR introduce _any_ user-facing change?
    
    No. `Mockito` is a test-only dependency.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Opus 5.5
    
    Closes #903 from dongjoon-hyun/SPARK-59838.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 gradle/libs.versions.toml        |  2 +-
 gradle/verification-metadata.xml | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index edc41cbf..ac8caf5b 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -31,7 +31,7 @@ slf4j = "2.0.19"
 # Test
 junit = "6.1.3"
 jacoco = "0.8.14"
-mockito = "5.23.0"
+mockito = "5.24.0"
 awaitility = "4.3.0"
 
 # Build Analysis
diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml
index 60206a16..1038d52f 100644
--- a/gradle/verification-metadata.xml
+++ b/gradle/verification-metadata.xml
@@ -3456,12 +3456,12 @@
             <sha512 value="d5b1cdb7f6be27857e0ae2095ff045d818e135e834fb5e6bc8dfe4daa04c69312534ecf7881ce2bec97d0b6f0ade8f0358af4df65e918c920e9178da4e0d393c" origin="Generated by Gradle"/>
          </artifact>
       </component>
-      <component group="org.mockito" name="mockito-core" version="5.23.0">
-         <artifact name="mockito-core-5.23.0.jar">
-            <sha512 value="5e6330c84efbdbebeeb2a84b1a0c036ecc9783ed21577f0e8d5cb186a58d2c06a009c36c4c22a8a2263d790bffe3d12e300c597a748860afad8b42dcfd810bfc" origin="Generated by Gradle"/>
+      <component group="org.mockito" name="mockito-core" version="5.24.0">
+         <artifact name="mockito-core-5.24.0.jar">
+            <sha512 value="5ee96160f44f62fa659079c7ed2c84c647ce97b7c5f57d63b164b4eae8c99140b6759cd3995e4dcd50a7f35963094a35578ba36bd6bc5771e6bf397ac80ebc47" origin="Generated by Gradle"/>
          </artifact>
-         <artifact name="mockito-core-5.23.0.pom">
-            <sha512 value="526c89edcc78da512661431367a91466fb544e3d0d6156f9f89411dcb71ddb294d1b325f5ba7f50e711ace1f073aac25157d98df5217764300de08b6ef224735" origin="Generated by Gradle"/>
+         <artifact name="mockito-core-5.24.0.pom">
+            <sha512 value="0aa450c69ae403f10d6dbb01906142035a6756ba35e169e2f702d62f70b6bc221d87e8fc88c1cf544a5070e99cf17c339c767e347360cc342c26b9547e8bac0d" origin="Generated by Gradle"/>
          </artifact>
       </component>
       <component group="org.objenesis" name="objenesis" version="3.3">


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