-
Notifications
You must be signed in to change notification settings - Fork 51
[SPARK-21708][BUILD] Migrate build to sbt 1.x #759
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| -J-Xmx4G | ||
| -J-Xss4m |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -390,7 +390,8 @@ def build_spark_assembly_sbt(extra_profiles, checkstyle=False): | |
| if checkstyle: | ||
| run_java_style_checks(build_profiles) | ||
|
|
||
| build_spark_unidoc_sbt(extra_profiles) | ||
| # TODO(lmartini): removed because broken, checks generated classes | ||
| # build_spark_unidoc_sbt(extra_profiles) | ||
|
||
|
|
||
|
|
||
| def build_apache_spark(build_tool, extra_profiles): | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -288,8 +288,8 @@ object CirclePlugin extends AutoPlugin { | |
| } | ||
| }, | ||
|
|
||
| test := (test, copyTestReportsToCircle) { (test, copy) => | ||
| test.doFinally(copy.map(_ => ())) | ||
| }.value | ||
| test := (test andFinally Def.taskDyn { | ||
| copyTestReportsToCircle | ||
| }).value | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, sbt got stricter. and the fancy tuple plugin stuff removed. This is the equivalent of the above |
||
| )) | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,9 +22,7 @@ import com.typesafe.tools.mima.core._ | |
| import com.typesafe.tools.mima.core.MissingClassProblem | ||
| import com.typesafe.tools.mima.core.MissingTypesProblem | ||
| import com.typesafe.tools.mima.core.ProblemFilters._ | ||
| import com.typesafe.tools.mima.plugin.MimaKeys.{mimaBinaryIssueFilters, mimaPreviousArtifacts} | ||
| import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings | ||
|
|
||
| import com.typesafe.tools.mima.plugin.MimaKeys.{mimaBinaryIssueFilters, mimaPreviousArtifacts, mimaFailOnNoPrevious} | ||
|
|
||
| object MimaBuild { | ||
|
|
||
|
|
@@ -86,14 +84,17 @@ object MimaBuild { | |
| ignoredMembers.flatMap(excludeMember) ++ MimaExcludes.excludes(currentSparkVersion) | ||
| } | ||
|
|
||
| def mimaSettings(sparkHome: File, projectRef: ProjectRef) = { | ||
| def mimaSettings(sparkHome: File, projectRef: ProjectRef): Seq[Setting[_]] = { | ||
| val organization = "org.apache.spark" | ||
| val previousSparkVersion = "2.4.0" | ||
| val previousSparkVersion = "3.0.0" | ||
|
||
| val project = projectRef.project | ||
| val fullId = "spark-" + project + "_2.12" | ||
| mimaDefaultSettings ++ | ||
| Seq(mimaPreviousArtifacts := Set(organization % fullId % previousSparkVersion), | ||
| mimaBinaryIssueFilters ++= ignoredABIProblems(sparkHome, version.value)) | ||
|
|
||
| Seq( | ||
| mimaFailOnNoPrevious := true, | ||
| mimaPreviousArtifacts := Set(organization % fullId % previousSparkVersion), | ||
| mimaBinaryIssueFilters ++= ignoredABIProblems(sparkHome, version.value) | ||
| ) | ||
| } | ||
|
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,44 @@ object MimaExcludes { | |
|
|
||
| // Exclude rules for 3.0.x | ||
| lazy val v30excludes = v24excludes ++ Seq( | ||
| //[SPARK-21708][BUILD] Migrate build to sbt 1.x | ||
| // mima plugin update caused new incompatibilities to be detected | ||
| // core module | ||
| // TODO(lmartini): this group was originally on top of 3.1 but applied on 3.0 because we picked the above commit | ||
| // on top of 3.0 | ||
| ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.shuffle.sort.io.LocalDiskShuffleMapOutputWriter.commitAllPartitions"), | ||
| ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.shuffle.api.ShuffleMapOutputWriter.commitAllPartitions"), | ||
| ProblemFilters.exclude[ReversedMissingMethodProblem]("org.apache.spark.shuffle.api.ShuffleMapOutputWriter.commitAllPartitions"), | ||
| // mllib module | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionTrainingSummary.totalIterations"), | ||
| ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.spark.ml.classification.LogisticRegressionTrainingSummary.$init$"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.labels"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.truePositiveRateByLabel"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.falsePositiveRateByLabel"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.precisionByLabel"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.recallByLabel"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.fMeasureByLabel"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.fMeasureByLabel"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.accuracy"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.weightedTruePositiveRate"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.weightedFalsePositiveRate"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.weightedRecall"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.weightedPrecision"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.weightedFMeasure"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.weightedFMeasure"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.BinaryLogisticRegressionSummary.roc"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.BinaryLogisticRegressionSummary.areaUnderROC"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.BinaryLogisticRegressionSummary.pr"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.BinaryLogisticRegressionSummary.fMeasureByThreshold"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.BinaryLogisticRegressionSummary.precisionByThreshold"), | ||
| ProblemFilters.exclude[NewMixinForwarderProblem]("org.apache.spark.ml.classification.BinaryLogisticRegressionSummary.recallByThreshold"), | ||
| ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.ml.classification.FMClassifier.trainImpl"), | ||
| ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.ml.regression.FMRegressor.trainImpl"), | ||
| // TODO(lmartini): Additional excludes not in upstream but unique to palantir fork | ||
| ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.spark.SparkContext.initializeForcefully"), | ||
| ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.spark.SparkContext.initializeForcefully"), | ||
| ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.spark.broadcast.Broadcast.initializeForcefully"), | ||
|
||
|
|
||
| // [SPARK-23429][CORE] Add executor memory metrics to heartbeat and expose in executors REST API | ||
| ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.spark.scheduler.SparkListenerExecutorMetricsUpdate.apply"), | ||
| ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.spark.scheduler.SparkListenerExecutorMetricsUpdate.copy"), | ||
|
|
||
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.
This had to be removed because it picks up older
build/sbtand doesn't get the updated versions