Skip to content

YARN-11779. Reset mockito version to 2.18.0 in hadoop-yarn-ui #7440

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

Closed

Conversation

GauthamBanasandra
Copy link
Member

Description of PR

How was this patch tested?

Verified by building locally on Windows 11.

image

For code changes:

  • Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
  • Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

* There was a change to upgrade Mockito to 4.11.0
  in apache#6968.
* This broke the build on Windows in the
  hadoop-yarn-ui module - apache#6968 (comment).
* Thus, we need to revert back to the previous
  stable version (2.18.0) of mockito for
  hadoop-yarn-ui.
@GauthamBanasandra
Copy link
Member Author

@muskan1012 I've attempted to fix the build failure by reverting the mockito version in the hadoop-yarn-ui module. Could you please take a look at this PR?

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 32s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 💚 mvninstall 37m 59s trunk passed
+1 💚 compile 2m 6s trunk passed with JDK Ubuntu-11.0.26+4-post-Ubuntu-1ubuntu120.04
+1 💚 compile 1m 58s trunk passed with JDK Private Build-1.8.0_442-8u442-b06us1-0ubuntu120.04-b06
+1 💚 mvnsite 0m 43s trunk passed
+1 💚 javadoc 0m 27s trunk passed with JDK Ubuntu-11.0.26+4-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 0m 23s trunk passed with JDK Private Build-1.8.0_442-8u442-b06us1-0ubuntu120.04-b06
+1 💚 shadedclient 77m 35s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 14s the patch passed
+1 💚 compile 1m 31s the patch passed with JDK Ubuntu-11.0.26+4-post-Ubuntu-1ubuntu120.04
+1 💚 javac 1m 31s the patch passed
+1 💚 compile 1m 48s the patch passed with JDK Private Build-1.8.0_442-8u442-b06us1-0ubuntu120.04-b06
+1 💚 javac 1m 48s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 mvnsite 0m 32s the patch passed
+1 💚 javadoc 0m 14s the patch passed with JDK Ubuntu-11.0.26+4-post-Ubuntu-1ubuntu120.04
+1 💚 javadoc 0m 14s the patch passed with JDK Private Build-1.8.0_442-8u442-b06us1-0ubuntu120.04-b06
+1 💚 shadedclient 34m 54s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 1m 32s hadoop-yarn-ui in the patch passed.
+1 💚 asflicense 0m 56s The patch does not generate ASF License warnings.
120m 52s
Subsystem Report/Notes
Docker ClientAPI=1.48 ServerAPI=1.48 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7440/1/artifact/out/Dockerfile
GITHUB PR #7440
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint
uname Linux a4ad2c884b68 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 67cd437
Default Java Private Build-1.8.0_442-8u442-b06us1-0ubuntu120.04-b06
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.26+4-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_442-8u442-b06us1-0ubuntu120.04-b06
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7440/1/testReport/
Max. process+thread count 559 (vs. ulimit of 5500)
modules C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7440/1/console
versions git=2.25.1 maven=3.6.3
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@GauthamBanasandra
Copy link
Member Author

Verified that the necessary steps are passing on Windows -
https://ci-hadoop.apache.org/view/Hadoop/job/hadoop-qbt-trunk-java8-win10-x86_64/824/artifact/out/report.html

image

Yetus logs - archive.zip

@GauthamBanasandra GauthamBanasandra requested a review from goiri March 2, 2025 05:39
@ayushtkn
Copy link
Member

ayushtkn commented Mar 2, 2025

@GauthamBanasandra the CI result shows a lot of test failures, can you check if they are related. The previous ticket HADOOP-19243, mentioned JDK-17 as the use case, we should see if this doesn't break that.

Is there a way to fix the compilation while staying on the same mockito version?

cc. @slfan1989 / @steveloughran

@slfan1989
Copy link
Contributor

@GauthamBanasandra the CI result shows a lot of test failures, can you check if they are related. The previous ticket HADOOP-19243, mentioned JDK-17 as the use case, we should see if this doesn't break that.

Is there a way to fix the compilation while staying on the same mockito version?

cc. @slfan1989 / @steveloughran

We indeed need to upgrade HADOOP-19243. I have conducted unit tests offline, and without this PR, some unit tests will fail on JDK17. The Mockito version 4.11.0 is not very recent. After upgrading to JUnit5, we should also update the Mockito version. From a personal perspective, I believe downgrading is not a good approach.

https://mvnrepository.com/artifact/org.mockito/mockito-core.

Can we solve this problem by upgrading the version of the wro4j-maven-plugin ?

<!-- Asset minifier -->
          <plugin>
            <groupId>ro.isdc.wro4j</groupId>
            <artifactId>wro4j-maven-plugin</artifactId>
            <version>1.7.9</version>
            <dependencies>
              <!-- TODO: Remove this dependency after upgrading wro4j-maven-plugin to 1.8.1 or later. -->
              <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-inline</artifactId>
                <version>4.11.0</version>
              </dependency>
            </dependencies>
....

@GauthamBanasandra Can we try upgrading the version of the wro4j-maven-plugin?

https://mvnrepository.com/artifact/ro.isdc.wro4j/wro4j-maven-plugin

cc: @ayushtkn @steveloughran

@GauthamBanasandra
Copy link
Member Author

@GauthamBanasandra the CI result shows a lot of test failures, can you check if they are related. The previous ticket HADOOP-19243, mentioned JDK-17 as the use case, we should see if this doesn't break that.

Is there a way to fix the compilation while staying on the same mockito version?

cc. @slfan1989 / @steveloughran

@ayushtkn the test failures that you're referring to are on Windows and are expected to fail.

@zeekling
Copy link

zeekling commented Mar 2, 2025

2.18.0 is too old, why select this version, the last is 5.15.x

@GauthamBanasandra
Copy link
Member Author

2.18.0 is too old, why select this version, the last is 5.15.x

@zeekling I was just restoring the version back to what it was, prior to the failure.

@GauthamBanasandra
Copy link
Member Author

I've tried to fix this issue by upgrading wro4j to 1.8.0 - #7457. It's building locally on Windows now.
I'll abandon this PR once we merge the fix.

@GauthamBanasandra
Copy link
Member Author

Abandoning this PR since this was fixed by #7457.

@GauthamBanasandra GauthamBanasandra deleted the fix-yarn-ui branch March 4, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants