Skip to content

[SPARK-52290][SQL][BUILD] Fix the Maven compilation and testing issues for sql/pipelines module #51008

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
wants to merge 1 commit into from

Conversation

LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented May 24, 2025

What changes were proposed in this pull request?

The following modifications are mainly made in this PR:

  1. Add the dependency org.scala-lang:scala-library to fix:
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.9.2:doc-jar (attach-scaladocs) on project spark-pipelines_2.13: MavenReportException: Error while creating archive: wrap: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :spark-pipelines_2.13
  1. Add the dependency org.apache.spark:spark-core to fix:
*** RUN ABORTED ***
A needed class was not found. This could be due to an error in your runpath. Missing class: org/apache/spark/internal/config/Tests$
  java.lang.NoClassDefFoundError: org/apache/spark/internal/config/Tests$
  at org.apache.spark.SparkFunSuite.beforeAll(SparkFunSuite.scala:94)
  at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:212)
  at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
  at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
  at org.apache.spark.SparkFunSuite.run(SparkFunSuite.scala:69)
  at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1178)
  at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1225)
  at scala.collection.ArrayOps$.foreach$extension(ArrayOps.scala:1324)
  at org.scalatest.Suite.runNestedSuites(Suite.scala:1223)
  at org.scalatest.Suite.runNestedSuites$(Suite.scala:1156)
  ...
  Cause: java.lang.ClassNotFoundException: org.apache.spark.internal.config.Tests$
  at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
  at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
  at org.apache.spark.SparkFunSuite.beforeAll(SparkFunSuite.scala:94)
  at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:212)
  at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
  at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
  at org.apache.spark.SparkFunSuite.run(SparkFunSuite.scala:69)
  at org.scalatest.Suite.callExecuteOnSuite$1(Suite.scala:1178)
  at org.scalatest.Suite.$anonfun$runNestedSuites$1(Suite.scala:1225)

Why are the changes needed?

Fix the Maven compilation and testing issues for sql/pipelines module, maven daily test failed after SPARK-52166

image

Does this PR introduce any user-facing change?

No

How was this patch tested?

  • Pass GitHub Actions
  • Local check:
 build/mvn clean install -pl sql/pipelines -am -DskipTests
 build/mvn test -pl sql/pipelines
Run completed in 356 milliseconds.
Total number of tests run: 9
Suites: completed 3, aborted 0
Tests: succeeded 9, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

Was this patch authored or co-authored using generative AI tooling?

No

@LuciferYang LuciferYang changed the title Fix the Maven compilation and testing issues for sql/pipelines module [SPARK-52290][BUILD][SDP] Fix the Maven compilation and testing issues for sql/pipelines module May 24, 2025
@LuciferYang LuciferYang changed the title [SPARK-52290][BUILD][SDP] Fix the Maven compilation and testing issues for sql/pipelines module [SPARK-52290][SQL][BUILD] Fix the Maven compilation and testing issues for sql/pipelines module May 24, 2025
@LuciferYang
Copy link
Contributor Author

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @LuciferYang .

@LuciferYang
Copy link
Contributor Author

Merge into master to see if the Maven daily tests have resumed. Thanks @dongjoon-hyun

@LuciferYang
Copy link
Contributor Author

LuciferYang commented May 24, 2025

manually triggered an execution: https://github.com/apache/spark/actions/runs/15228255125

all passed:

image

@jonmio
Copy link

jonmio commented May 27, 2025

Thank you for fixing @LuciferYang

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.

3 participants