-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-50810][BUILD] Enable SBT CI for profiler module #49480
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
connector/profiler/src/main/scala/org/apache/spark/executor/profiler/package.scala
Outdated
Show resolved
Hide resolved
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sounds a little strange because SBT already compiles it like the following.
Currently, the profiler module only supports building via Maven, we should add SBT support too.
$ ./build/sbt -Pjvm-profiler clean "profiler/package"
...
[info] compiling 3 Scala sources to /Users/dongjoon/APACHE/spark-merge/connector/profiler/target/scala-2.13/classes ...
[success] Total time: 38 s, completed Jan 14, 2025, 7:12:50 AM
$ ls -al connector/profiler/target/scala-2.13/classes/org/apache/spark/executor/profiler/
total 128
drwxr-xr-x 8 dongjoon staff 256 Jan 14 07:12 .
drwxr-xr-x 3 dongjoon staff 96 Jan 14 07:12 ..
-rw-r--r-- 1 dongjoon staff 967 Jan 14 07:12 ExecutorJVMProfiler$$anon$1.class
-rw-r--r-- 1 dongjoon staff 26001 Jan 14 07:12 ExecutorJVMProfiler.class
-rw-r--r-- 1 dongjoon staff 1229 Jan 14 07:12 ExecutorProfilerPlugin.class
-rw-r--r-- 1 dongjoon staff 14175 Jan 14 07:12 JVMProfilerExecutorPlugin.class
-rw-r--r-- 1 dongjoon staff 5398 Jan 14 07:12 package$.class
-rw-r--r-- 1 dongjoon staff 1197 Jan 14 07:12 package.class
Could you revise the PR description more accurately?
|
Interesting ... it was not listed in |
|
maybe I should convert the purpose of this PR to "Enable SBT CI for profiler module" |
|
Yes, +1 for re-write the scope. Please describe the problem exactly. Then, I can help you easily. |
project/SparkBuild.scala
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After enabling -Pjvm-profiler, the sbt-pom-reader plugin will complete the import of the SBT configuration for the profiler module. Therefore, if we only wish to trigger the compilation of this module during the GitHub Action execution, there is no need to modify SparkBuild.scala.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuciferYang thanks for the guidance, after some local experiments, I think we must modify SparkBuild.scala to explicitly list the profiler module, otherwise MimaKeys.mimaFailOnNoPrevious := false won't take effect.
|
spark/project/SparkBuild.scala Lines 1468 to 1478 in 2d498d5
Perhaps there is a potential requirement to define the |
dongjoon-hyun
left a comment
There was a problem hiding this 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, @pan3793 .
Merged to master for Apache Spark 4.0.0.
What changes were proposed in this pull request?
Update GitHub workflow files and related scripts to enable SBT CI for the
profilermodule.Why are the changes needed?
Currently, the
profilermodule is not covered in regular PR's SBT CI.Does this PR introduce any user-facing change?
No, dev only.
How was this patch tested?
https://github.com/pan3793/spark/actions/runs/12770426351/job/35595345586
Was this patch authored or co-authored using generative AI tooling?
No.