[SPARK-43830][BUILD][FOLLOWUP] Update scalatest and scalatestplus related dependencies to newest version#41364
[SPARK-43830][BUILD][FOLLOWUP] Update scalatest and scalatestplus related dependencies to newest version#41364panbingkun wants to merge 7 commits intoapache:masterfrom
Conversation
…ated dependencies to newest version
…ated dependencies to newest version
pom.xml
Outdated
| <groupId>org.scalatestplus</groupId> | ||
| <artifactId>mockito-4-11_${scala.binary.version}</artifactId> | ||
| <version>3.2.16.0</version> | ||
| <exclusions> |
There was a problem hiding this comment.
Are these exclusions needed, if we're manually managing the dependency version?
There was a problem hiding this comment.
I think it's unnecessary, but I think we should copy
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<scope>test</scope>
</dependency>
to the module using mockito-core because there is just configuring dependencyManagement instead of dependencies
There was a problem hiding this comment.
Yeah it feels like one or the other of these changes is needed
…ated dependencies to newest version
|
Wait, do we need a direct dependency? I thought perhaps just managing the dependency would have the desired effect without exclusion. I didn't realize this alternative would change so much. We don't actually directly use this dependnecy. |
|
It appears nowhere in the build, when you do not exclude it, and do not depend on it directly? that seems strange, if it's needed by a third party lib. |
|
This is what happens when you set the new version in dependencyManagement, but don't exclude? hm. I'm thinking it's simpler to go back to your first version if so |
|
Merged to master |
|
I'm checking the AS-IS master branch. Unfortunately, it seems that I found another instance of Could you double-check the above, @panbingkun ? |
Let me check it. |
|
I think this should be a classpath related issue and only affect sbt test. May be we should revert this one(I think using |
|
Can you reproduce it? @LuciferYang |
|
Oh, let me try in a docker again. |
|
Thank you for confirming! I also verified that it succeeds cleanly on docker Java images. Sorry for the false alarm. |
|
No, It ran successfully in my testing environment |
|
I think this issue still exists in the |
…ated dependencies to newest version ### What changes were proposed in this pull request? The pr aims to follow up PR: apache#41341 ### Why are the changes needed? Fix issue which caused by inconsistent versions of `bytebuddy` that `selenium` and `mockito-core` rely on. 1.mockito-core depend on `bytebuddy` 1.12.19 <img width="491" alt="image" src="https://github.com/apache/spark/assets/15246973/62dbed8c-3164-4337-8d67-a4eb371312bd"> https://github.com/mockito/mockito/blob/v4.11.0/gradle/dependencies.gradle#L7 2.selenium depend on `bytebuddy` 1.14.4 https://github.com/SeleniumHQ/selenium/blob/selenium-4.9.1/java/maven_deps.bzl#L81 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? - Manual testing: (base) panbingkun:~/Developer/spark/spark-community$build/sbt "connect/test" ... [info] - function_raise_error (2 milliseconds) [info] - column_when_otherwise (4 milliseconds) [info] - function_date_trunc (4 milliseconds) [info] Run completed in 21 seconds, 249 milliseconds. [info] Total number of tests run: 576 [info] Suites: completed 12, aborted 0 [info] Tests: succeeded 576, failed 0, canceled 0, ignored 0, pending 0 [info] All tests passed. [success] Total time: 77 s (01:17), completed May 29, 2023 4:45:57 PM - Pass GA Closes apache#41364 from panbingkun/SPARK-43830. Authored-by: panbingkun <pbk1982@gmail.com> Signed-off-by: Sean Owen <srowen@gmail.com>








What changes were proposed in this pull request?
The pr aims to follow up PR: #41341
Why are the changes needed?
Fix issue which caused by inconsistent versions of

bytebuddythatseleniumandmockito-corerely on.1.mockito-core depend on
bytebuddy1.12.19https://github.com/mockito/mockito/blob/v4.11.0/gradle/dependencies.gradle#L7
2.selenium depend on
bytebuddy1.14.4https://github.com/SeleniumHQ/selenium/blob/selenium-4.9.1/java/maven_deps.bzl#L81
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual testing:
(base) panbingkun:~/Developer/spark/spark-community$build/sbt "connect/test"
...
[info] - function_raise_error (2 milliseconds)
[info] - column_when_otherwise (4 milliseconds)
[info] - function_date_trunc (4 milliseconds)
[info] Run completed in 21 seconds, 249 milliseconds.
[info] Total number of tests run: 576
[info] Suites: completed 12, aborted 0
[info] Tests: succeeded 576, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 77 s (01:17), completed May 29, 2023 4:45:57 PM
Pass GA