-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-42241][CONNECT][TESTS] Fix the find connect jar condition in SparkConnectServerUtils#findSparkConnectJar for maven
#39810
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
Conversation
SparkConnectServerUtils#findSparkConnectJar to find the correct connect server jar for mavenSparkConnectServerUtils#findSparkConnectJar for maven
|
https://github.com/LuciferYang/spark/actions/runs/4046025224/jobs/6958308503 cc @HyukjinKwon when I do some maven test work using GA, I found the original condition may found wrong connect jar for maven |
SparkConnectServerUtils#findSparkConnectJar for mavenSparkConnectServerUtils#findSparkConnectJar for maven
SparkConnectServerUtils#findSparkConnectJar for mavenSparkConnectServerUtils#findSparkConnectJar for maven
|
Merged to master and branch-3.4. @LuciferYang would you mind telling me the order that you want for merging your PRs? |
…SparkConnectServerUtils#findSparkConnectJar` for maven ### What changes were proposed in this pull request? This pr aims to fix the finding connect jar condition in `SparkConnectServerUtils#findSparkConnectJar` to ensure the correct connect jar is found for maven test ### Why are the changes needed? After run ``` build/mvn -DskipTests clean install -pl connector/connect/server ``` or ``` build/mvn -DskipTests clean package -pl connector/connect/server ``` There will be 5 jars that meet the original conditions for maven: ``` spark-connect_2.12-3.5.0-SNAPSHOT-javadoc.jar spark-connect_2.12-3.5.0-SNAPSHOT-sources.jar spark-connect_2.12-3.5.0-SNAPSHOT-test-sources.jar spark-connect_2.12-3.5.0-SNAPSHOT-tests.jar spark-connect_2.12-3.5.0-SNAPSHOT.jar ``` and the head may not `spark-connect_2.12-3.5.0-SNAPSHOT.jar`, so need to make the condition more strictly to ensure that `spark-connect_2.12-3.5.0-SNAPSHOT.jar` is found ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass Github Actions Closes #39810 from LuciferYang/SPARK-42241. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org> (cherry picked from commit a98ac25) Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
|
Thanks @HyukjinKwon I hope #39789 can be merged first, which seems to be blocking version release |
…SparkConnectServerUtils#findSparkConnectJar` for maven ### What changes were proposed in this pull request? This pr aims to fix the finding connect jar condition in `SparkConnectServerUtils#findSparkConnectJar` to ensure the correct connect jar is found for maven test ### Why are the changes needed? After run ``` build/mvn -DskipTests clean install -pl connector/connect/server ``` or ``` build/mvn -DskipTests clean package -pl connector/connect/server ``` There will be 5 jars that meet the original conditions for maven: ``` spark-connect_2.12-3.5.0-SNAPSHOT-javadoc.jar spark-connect_2.12-3.5.0-SNAPSHOT-sources.jar spark-connect_2.12-3.5.0-SNAPSHOT-test-sources.jar spark-connect_2.12-3.5.0-SNAPSHOT-tests.jar spark-connect_2.12-3.5.0-SNAPSHOT.jar ``` and the head may not `spark-connect_2.12-3.5.0-SNAPSHOT.jar`, so need to make the condition more strictly to ensure that `spark-connect_2.12-3.5.0-SNAPSHOT.jar` is found ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass Github Actions Closes apache#39810 from LuciferYang/SPARK-42241. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org> (cherry picked from commit a98ac25) Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>

What changes were proposed in this pull request?
This pr aims to fix the finding connect jar condition in
SparkConnectServerUtils#findSparkConnectJarto ensure the correct connect jar is found for maven testWhy are the changes needed?
After run
or
There will be 5 jars that meet the original conditions for maven:
and the head may not
spark-connect_2.12-3.5.0-SNAPSHOT.jar, so need to make the condition more strictly to ensure thatspark-connect_2.12-3.5.0-SNAPSHOT.jaris foundDoes this PR introduce any user-facing change?
No
How was this patch tested?
Pass Github Actions