-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-33441][BUILD][FOLLOWUP] Make unused-imports check for SBT specific. #30441
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
@@ -27,6 +27,7 @@ import scala.collection.JavaConverters._ | |||
import scala.collection.Map | |||
import scala.collection.immutable | |||
import scala.collection.mutable.HashMap | |||
import scala.collection.mutable.HashSet |
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's for testing right?
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.
Yes
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.
Expect this line to trigger compile error
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.
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.
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.
Looks good, pending tests.
Test build #131403 has finished for PR 30441 at commit
|
Kubernetes integration test starting |
Kubernetes integration test starting |
Kubernetes integration test status failure |
Kubernetes integration test status failure |
Test build #131402 has finished for PR 30441 at commit
|
@HyukjinKwon done ~ waiting tests |
@@ -17,7 +17,6 @@ | |||
|
|||
package org.apache.spark.graphx.impl | |||
|
|||
import scala.language.higherKinds |
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.
checked by Scala 2.13 compiler
@@ -17,7 +17,6 @@ | |||
|
|||
package org.apache.spark.graphx.impl | |||
|
|||
import scala.language.higherKinds |
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.
checked by Scala 2.13 compiler
Test build #131413 has finished for PR 30441 at commit
|
Kubernetes integration test starting |
Kubernetes integration test starting |
Kubernetes integration test status success |
project/SparkBuild.scala
Outdated
@@ -230,6 +231,8 @@ object SparkBuild extends PomBuild { | |||
// see `scalac -Wconf:help` for details | |||
"-Wconf:cat=deprecation:wv,any:e", | |||
// 2.13-specific warning hits to be muted (as narrowly as possible) and addressed separately | |||
// TODO Enable this option when Scala 2.12 is no longer supported. |
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.
@HyukjinKwon A little interesting:
Scala 2.13 think this is a unused import
but Scala 2.12 compile failed without this import, so comments -Wunused:imports
in Scala 2.13 and left a TODO in this pr
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.
Can you file a JIRA under the Scala 2.13 umbrella JIRA? You can make a comment like TODO(SPARK-XXXXX): blah blah
.
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.
OK
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.
Address 911acfe fix this
Kubernetes integration test status success |
Kubernetes integration test starting |
Kubernetes integration test starting |
Kubernetes integration test status success |
Test build #131407 has finished for PR 30441 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status failure |
Kubernetes integration test status success |
Test build #131414 has finished for PR 30441 at commit
|
Test build #131416 has finished for PR 30441 at commit
|
Merged to master. Thanks for working on this @LuciferYang. |
Kubernetes integration test starting |
Kubernetes integration test status failure |
Test build #131421 has finished for PR 30441 at commit
|
What changes were proposed in this pull request?
Move "unused-imports" check config to
SparkBuild.scala
and make it SBT specific.Why are the changes needed?
Make unused-imports check for SBT specific.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Pass the Jenkins or GitHub Action