Skip to content

TEZ-4747: Upgrade mockito to 5.23.0 - #529

Open
Aggarwal-Raghav wants to merge 1 commit into
apache:masterfrom
Aggarwal-Raghav:TEZ-4747
Open

TEZ-4747: Upgrade mockito to 5.23.0#529
Aggarwal-Raghav wants to merge 1 commit into
apache:masterfrom
Aggarwal-Raghav:TEZ-4747

Conversation

@Aggarwal-Raghav

Copy link
Copy Markdown
Contributor

No description provided.

verify(client2.sessionAmProxy, times(1)).shutdownSession(any(),
any());
verify(client2.mockYarnClient, times(1)).stop();
verify(client2.mockYarnClient, times(1)).close();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mockito4 couldn't mock final methods and yarnClient.close() was final so it was checking for stop() in AbstractService.java

 @Override
  public final void close() throws IOException {
    stop();
  }

But in Mockito 5 it can mock final method so it will test for close()

}
verify(activeLogger, times(0)).info(anyString());
verify(aggregateLogger, times(1)).info(anyString(), ArgumentMatchers.<Object[]>any());
verify(aggregateLogger, times(1)).info(anyString(), any(), any(), any(), any(), any());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

@tez-yetus

Copy link
Copy Markdown

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 3m 15s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ master Compile Tests _
+0 🆗 mvndep 0m 39s Maven dependency ordering for branch
+1 💚 mvninstall 2m 54s master passed
+1 💚 compile 2m 35s master passed
+1 💚 checkstyle 1m 24s master passed
+1 💚 javadoc 1m 54s master passed
+0 🆗 spotbugs 0m 51s tez-api in master has 92 extant spotbugs warnings.
+0 🆗 spotbugs 0m 42s tez-runtime-library in master has 143 extant spotbugs warnings.
+0 🆗 spotbugs 3m 52s root in master has 1054 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 10s Maven dependency ordering for patch
+1 💚 mvninstall 2m 23s the patch passed
+1 💚 codespell 0m 49s No new issues.
+1 💚 compile 2m 36s the patch passed
+1 💚 javac 2m 36s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 1m 12s the patch passed
+1 💚 javadoc 1m 45s the patch passed
+1 💚 spotbugs 5m 50s the patch passed
_ Other Tests _
-1 ❌ unit 61m 22s /patch-unit-root.txt root in the patch passed.
+1 💚 asflicense 1m 15s The patch does not generate ASF License warnings.
97m 43s
Reason Tests
Failed junit tests tez.dag.history.logging.ats.TestATSHistoryLoggingService
tez.runtime.api.impl.TestProcessorContext
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-529/1/artifact/out/Dockerfile
Optional Tests dupname compile unit asflicense javac javadoc codespell detsecrets xmllint spotbugs checkstyle
uname Linux bed0c3626bb3 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality tez-personality.sh
git revision master / d348bf1
Default Java Eclipse Adoptium-21.0.11+10-LTS
Test Results https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-529/1/testReport/
Max. process+thread count 1408 (vs. ulimit of 5500)
modules C: tez-api tez-runtime-library . U: .
Console output https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-529/1/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.3 codespell=2.4.1
Powered by Apache Yetus 0.15.1 https://yetus.apache.org

This message was automatically generated.

@tez-yetus

Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 10m 46s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 4 new or modified test files.
_ master Compile Tests _
+0 🆗 mvndep 0m 41s Maven dependency ordering for branch
+1 💚 mvninstall 4m 28s master passed
+1 💚 compile 4m 1s master passed
+1 💚 checkstyle 2m 56s master passed
+1 💚 javadoc 3m 41s master passed
+0 🆗 spotbugs 1m 20s tez-api in master has 92 extant spotbugs warnings.
+0 🆗 spotbugs 0m 53s tez-runtime-internals in master has 92 extant spotbugs warnings.
+0 🆗 spotbugs 1m 10s tez-runtime-library in master has 143 extant spotbugs warnings.
+0 🆗 spotbugs 0m 43s tez-plugins/tez-yarn-timeline-history in master has 2 extant spotbugs warnings.
+0 🆗 spotbugs 6m 27s root in master has 1054 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 15s Maven dependency ordering for patch
+1 💚 mvninstall 3m 45s the patch passed
+1 💚 codespell 1m 36s No new issues.
+1 💚 compile 3m 58s the patch passed
+1 💚 javac 3m 58s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 2m 52s the patch passed
+1 💚 javadoc 3m 38s the patch passed
+1 💚 spotbugs 11m 36s the patch passed
_ Other Tests _
+1 💚 unit 77m 33s root in the patch passed.
+1 💚 asflicense 2m 39s The patch does not generate ASF License warnings.
148m 45s
Subsystem Report/Notes
Docker ClientAPI=1.55 ServerAPI=1.55 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-529/3/artifact/out/Dockerfile
Optional Tests dupname compile unit asflicense javac javadoc codespell detsecrets xmllint spotbugs checkstyle
uname Linux bcfbae048548 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality tez-personality.sh
git revision master / d348bf1
Default Java Eclipse Adoptium-21.0.11+10-LTS
Test Results https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-529/3/testReport/
Max. process+thread count 2121 (vs. ulimit of 5500)
modules C: tez-api tez-runtime-internals tez-runtime-library tez-plugins/tez-yarn-timeline-history . U: .
Console output https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-529/3/console
versions git=2.43.0 maven=3.9.15 spotbugs=4.9.3 codespell=2.4.1
Powered by Apache Yetus 0.15.1 https://yetus.apache.org

This message was automatically generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants